MCP Shipyard
← Rules catalog

MCP tool has no inputSchema: required type object fix

Every MCP tool needs an inputSchema with type object, even with no parameters. See the exact JSON for zero-argument tools and how to check.

blockerschema.missingGeneral

Every tool in tools/list needs an inputSchema whose type is "object". For a tool with no parameters, use { "type": "object", "additionalProperties": false }. The rule is a blocker and is backed by the MCP tools specification.

What you see

  • A scan reports schema.missing per tool: "No inputSchema", or "inputSchema type is X, must be "object"".
  • A client may refuse to load the whole tools/list result or drop the tool. Specific client error messages are not verified here; SDK clients that validate the response against the spec schema typically raise a validation error naming inputSchema.

Why it happens

Hand-written JSON-RPC servers and some proxies return tools with only name and description, or return inputSchema: {} or {"type": "string"} for no-argument tools. The spec requires a JSON Schema object for the input.

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":1,"method":"tools/list"}' \
 | jq '.result.tools[] | select(.inputSchema.type != "object") | {name, inputSchema}'

Any output means a failing tool. If the response is an event stream, remove the data: prefix before piping to jq.

Fix

Raw JSON for a no-argument tool:

{
  "name": "list_teams",
  "description": "List all teams with their codes.",
  "inputSchema": { "type": "object", "additionalProperties": false }
}

TypeScript SDK with zod, a tool with parameters:

server.registerTool("get_order", {
  description: "Get one order by id.",
  inputSchema: { orderId: z.string().describe("Order id from search_orders") },
}, handler);

Python FastMCP builds the schema from type hints:

@mcp.tool()
def get_order(order_id: str) -> dict:
    """Get one order by id."""

If a proxy or gateway sits in front of your server, check it does not rewrite or strip schemas.

Verify

Run the jq filter again and expect no output. Then call tools/list from the MCP Inspector or any SDK client and confirm every tool shows a parameter form.

Which clients care

The rule is tagged general: it applies to any client, because it comes from the protocol rather than a directory policy.

Source

MCP tools spec: https://modelcontextprotocol.io/specification/2026-07-28/server/tools

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