MCP Shipyard
← Rules catalog

MCP tool returns isError with valid input: directory review failure and fix

Claude reviewers run every tool and reject any that fail with valid input. Find failing tools, read isError text and fix before submitting.

blockererrors.fixture-failedClaude, ChatGPT

Every tool must return a normal result when called with valid parameters. The rule's fix text says Claude reviewers run every tool and reject any that fail with valid input, and that ChatGPT rejects unreliable tools (1.2).

What you see

  • A scan reports errors.fixture-failed: "<tool> returned an error: <first 120 characters of the text>". It is a blocker.
  • The tool result has isError: true or the call failed at protocol level.
  • This rule depends on fixture calls: sample arguments you mark as safe for each tool. Without fixtures it has nothing to run (see errors.no-fixtures).

Why it happens

The usual causes are an expired or wrong upstream API key in production, a database or network call blocked from the server's runtime, example arguments that the tool does not accept, a tool that works only for an account the reviewer does not have, or a deploy that changed behaviour after you last tested.

Check it yourself

curl -s -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_invoice","arguments":{"invoiceId":"inv_123"}}}' \
 | jq '.result | {isError, text: .content[0].text}'

Use the same arguments you gave the scanner. isError: true means failure. Call it from outside your network, with a fresh token, using the account type a reviewer would have.

Fix

  1. Read the error text first. A good message names the problem; if it is generic, fix that too (errors.unhelpful-message).
  2. Check production secrets and upstream status. Many fixture failures are a missing environment variable in production.
  3. Make the example arguments real: provide a record that exists in a demo account.
  4. Return clear errors for expected failures and reserve isError for real ones:
try {
  return { content: [{ type: "text", text: JSON.stringify(await getInvoice(id)) }] };
} catch (e) {
  return { isError: true, content: [{ type: "text", text: `Invoice ${id} not found. Use list_invoices for valid ids.` }] };
}
  1. Keep tools fast (see latency.tool-call) so a timeout is not the failure.

Verify

Re-run each failing call and confirm isError is false and the result contains the data you expect. Re-scan.

Which clients care

Claude and ChatGPT reviews, per the rule text.

Source

Claude review criteria: https://claude.com/docs/connectors/building/review-criteria

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server