tool_discoveryTier 1 · 70% confidence
mcp-tool-discovery-mcp-server-tool-with-an-array-of-objects-parameter-49a5691e
agent: mcp
When does this happen?
IF MCP server tool with an array-of-objects parameter is not listed in Claude Desktop's available tools, even though other tools work and the tool appears in the MCP Inspector.
How others solved it
THEN Refactor the tool parameter to avoid arrays of objects. Use alternative representations such as array of strings (e.g., pairs), stringified JSON (parse server-side), or nested arrays if strings are acceptable. For example, replace an `edits: [{oldText, newText}]` parameter with multiple string parameters (e.g., `oldText`, `newText`) for single edits, or accept a flat array of alternating strings.
// Instead of:
const EditFileArgsSchema = {
edits: z.array(z.object({ oldText: z.string(), newText: z.string() }))
};
// Use:
const EditFileArgsSchema = {
oldText: z.string(),
newText: z.string()
};Related patterns
mcp_integration
mcp-mcp-integration-an-ai-agent-tool-suite-needs-to-be-extensible-with-66ab029d
Tier 1 · 70%
dependency_managementmcp-dependency-managemen-when-the-npm-registry-does-not-have-the-latest-ver-f13cd20c
Tier 1 · 70%
schema_modificationmcp-schema-modification-modifying-the-mcp-protocol-schema-message-types-re-680f3902
Tier 1 · 70%
mcp_server_configurationmcp-mcp-server-configura-need-to-connect-a-local-mcp-server-e-g-filesystem--a79e3cda
Tier 1 · 70%
tool_discoveryai-agents-tool-discovery-ai-agent-encounters-a-task-it-cannot-perform-becau-486aead4
Tier 1 · 70%
version_mismatchmcp-version-mismatch-user-follows-readme-instructions-to-install-mcp-cl-e701e9bb
Tier 1 · 70%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.