Skip to main content
Glama

MCP Endpoint Lint - handshake, tool schemas, JSON-RPC errors

Does it answer JSON-RPC errors, or HTML 500s?

error_conformance
Read-onlyIdempotent

FIRST CALL, needs nothing: {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}} — Send five things a real client eventually sends by accident and check what comes back: an unknown method (expects -32601), tools/call naming a tool that does not exist (expects -32602/-32601 or a result with isError), tools/call with no tool name (expects -32602), a body that is not JSON (expects -32700), and a body missing "jsonrpc":"2.0" (expects -32600). Reports the HTTP status and the error code side by side, and flags an HTML error page or a 5xx where a JSON-RPC error belongs — the failure that makes a client report the wrong cause. Makes 5 requests, 6 s each. Example: url='https://mcp.example.com/mcp' — or {} for the fixture, which fails two of the five.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe MCP endpoint to lint — the URL you POST JSON-RPC to, e.g. https://mcp.example.com/mcp. Not stored anywhere. This server refuses its own publisher, IP literals and private names.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description goes well beyond the annotations: it discloses that the tool makes 5 network requests, waits 6 seconds each, reports HTTP status and JSON-RPC error codes side by side, flags HTML/5xx responses where JSON-RPC errors belong, and supports a fixture that fails two checks. This adds meaningful behavioral context beyond readOnlyHint, idempotentHint, and openWorldHint, and does not contradict them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but efficient; every sentence carries useful operational information and it is front-loaded with the essential first-call payload. However, the long parenthetical list of five test cases with expected codes makes it a wall of text that could be parsed more easily with separate lines or clearer separation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity and the absence of an output schema, the description is remarkably complete: it covers inputs, the exact requests sent, expected JSON-RPC error codes, output behavior (HTTP status vs error code), the HTML/5xx failure condition, request count, timeout, and fixture behavior. An agent can confidently invoke and interpret this tool from the description alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already describes the url parameter fully (100% coverage). The description adds extra value with a concrete example URL and the {} fixture alias with expected failure behavior, which helps an agent select the right input without opening the schema. Slightly more detail on URL edge cases exists in the schema, so this is strong but not a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific verb and resource: it is an error-conformance linter that sends five deliberately malformed JSON-RPC requests to an MCP endpoint and checks the returned HTTP status and JSON-RPC error codes. This makes it distinguishable from siblings like handshake_report or discovery_report, which target different aspects of endpoint behavior.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is clearly conveyed: it explains what to send, the expected error codes for each probe, that it makes 5 requests with 6-second timeout each, and how to choose between an external URL and the fixture via {}. It does not explicitly name when to prefer this tool over sibling alternatives, but the operational context is strong enough to avoid confusion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.2/5.0
Disambiguation4/5

The four individual checks target clearly different protocol surfaces: discovery documents, error responses, handshake behavior, and tool schema validation. The main ambiguities are example, which is essentially a canned score_card result, and whoami, which is an identity/debug tool rather than a lint check.

Naming Consistency4/5

Most names are lowercase snake_case noun phrases, and several follow a *_report pattern. score_card, example, and whoami deviate from that pattern, but the naming is still readable and not internally chaotic.

Tool Count5/5

Seven tools is well-scoped for an MCP endpoint linter: four focused checks, one aggregate score, one worked example, and one client metadata tool. Each tool has a clear place, and none are obviously redundant.

Completeness4/5

The server covers the core MCP handshake, tools/list schema validation, error conformance, and discovery documents, plus an aggregate score. It does not lint resources or prompts, which are other MCP protocol surfaces, but for its stated scope the tool surface is largely complete.

Resources