tool_visibilityTier 1 · 70% confidence

mcp-tool-visibility-mcp-server-tool-with-array-of-objects-parameters-i-28bc09c2

agent: mcp

When does this happen?

IF MCP server tool with array-of-objects parameters is not visible in Claude Desktop's available tools list.

How others solved it

THEN Refactor the tool's input schema to avoid using arrays of objects as parameters. Use stringified JSON objects, nested arrays, or flat arrays with alternating values as workarounds. Alternatively, wait for a client update that properly handles complex array types.

// Workaround: replace array of objects with a stringified JSON parameter
inputSchema: {
  type: 'object',
  properties: {
    edits: { type: 'string', description: 'JSON.stringify([{oldText,newText}])' }
  }
}

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics