{"record":{"id":"9438488f80cfa9e3","repo":"ruvnet/ruflo","slug":"parameter-name-exceeds-maximum-of-maxitems","errorCode":null,"errorMessage":"Parameter '${name}' exceeds maximum of ${maxItems} items","messagePattern":"Parameter '(.+?)' exceeds maximum of (.+?) items","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/plugins/teammate-plugin/src/mcp-tools.ts","lineNumber":52,"sourceCode":"function validateStringParam(value: unknown, name: string, maxLength: number = MAX_PARAM_LENGTH): string {\n  if (typeof value !== 'string') {\n    throw new Error(`Parameter '${name}' must be a string`);\n  }\n  if (value.length > maxLength) {\n    throw new Error(`Parameter '${name}' exceeds maximum length of ${maxLength}`);\n  }\n  return value;\n}\n\n/**\n * Validate array parameter\n */\nfunction validateArrayParam<T>(value: unknown, name: string, maxItems: number = MAX_ARRAY_ITEMS): T[] {\n  if (!Array.isArray(value)) {\n    throw new Error(`Parameter '${name}' must be an array`);\n  }\n  if (value.length > maxItems) {\n    throw new Error(`Parameter '${name}' exceeds maximum of ${maxItems} items`);\n  }\n  return value as T[];\n}\n\n// ============================================================================\n// Tool Definitions\n// ============================================================================\n\nexport interface MCPTool {\n  name: string;\n  description: string;\n  inputSchema: {\n    type: 'object';\n    properties: Record<string, unknown>;\n    required?: string[];\n  };\n}\n","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/teammate-plugin/src/mcp-tools.ts#L34-L70","documentation":"MCP input-validation helper: validateArrayParam() received an array with more than maxItems (default MAX_ARRAY_ITEMS) entries. The size cap bounds untrusted tool-argument payloads before they reach team/teammate logic.","triggerScenarios":"Thrown at v3/plugins/teammate-plugin/src/mcp-tools.ts:52 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the input size/depth below the documented limit, or batch the input into smaller chunks.","Validate the limit before processing and report the measured versus allowed value to the caller."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}