Skip to main content
Glama

Check a consumer against a producer

check_compatibility
Read-onlyIdempotent

Check a consumer service's calls against a producer's operations: missing or unused operations, plus stored type verdicts (coverage in type_verdicts). Read status first. It reads compatible, incompatible, partially_checked, or unresolved where nothing was compared, and pairs_compared and pairs_uncompared say how much of the pair the check reached. Call it before removing or changing any route, shape, field, or event. Consumers that reach the producer through a published SDK package have no call site of their own and are listed separately in via_sdk, never merged into the direct pairs. For whole-project topology, use get_service_graph first. To read both sides' types for the operations a verdict names, use get_contract_pair. Reference: https://docs.carrick.tools/mcp-tools

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "consumer_service": "<consumer_service>",
      "producer_service": "<producer_service>"
    },
    "name": "check_compatibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFilter by a route path, or for an RPC procedure its key path (router.procedure), GraphQL field, or socket event name. A `{field=value}` dispatch suffix narrows to one case. On a large pair this is what narrows the answer; paging alone cannot.
repoNoYour repo as owner/repo (git remote) or just the repo name. Resolves which Carrick project to query.
limitNoIssue rows per page (default 50, max 200). Errors come first; issue_counts counts every category. A page is cut further when the response would be too long to read inline.
methodNoFilter by operation label: HTTP method (GET, POST), GraphQL kind (QUERY, MUTATION), or socket direction (CLIENT->SERVER, SERVER->CLIENT, UNKNOWN). UNKNOWN also selects HTTP routes whose verb the scan could not read; each row names its protocol.
offsetNoIssue rows to skip (default 0). Pass the `next_offset` from a previous call to page through.
projectNoCarrick project slug to query. Omit to auto-resolve via `repo`, or omit both when the workspace has one project.
consumer_serviceYesThe service making API calls
producer_serviceYesThe service exposing endpoints

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / path / description
      Previous value: -"Filter by HTTP path, GraphQL field, or socket event name. A `{field=value}` dispatch suffix narrows to one case. On a large pair this is what narrows the answer; paging alone cannot."New value: +"Filter by a route path, or for an RPC procedure its key path (router.procedure), GraphQL field, or socket event name. A `{field=value}` dispatch suffix narrows to one case. On a large pair this is what narrows the answer; paging alone cannot."
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description still adds substantive behavior: the four possible `status` outcomes including `unresolved` when nothing was compared, the meaning of pairs_compared/pairs_uncompared as coverage, and the edge case that SDK-mediated consumers appear in via_sdk and are never merged into direct pairs. With no output schema, this return-shape disclosure is exactly what the description must carry.

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?

Dense and front-loaded: purpose, then how to read the result, then the call-to-action, then exclusions and alternatives. It is on the long side and the trailing documentation URL plus the type_verdicts aside could be trimmed, but nearly every sentence carries actionable information.

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?

For an 8-parameter read tool with no output schema, the description covers purpose, result interpretation, edge cases (SDK consumers), and hand-offs to the two sibling tools an agent would otherwise confuse it with. Nothing essential to selecting or invoking it correctly is left unstated.

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

Parameters3/5

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

Schema description coverage is 100% and the schema itself is unusually rich (path, method, limit, offset, repo, project all documented in detail), so the baseline of 3 applies. The description adds no parameter-level guidance of its own — it never mentions narrowing by `path` or paging via `offset`, even though the schema notes that paging alone cannot narrow a large pair.

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?

Names a specific verb and both resources ('Check a consumer service's calls against a producer's operations') and immediately enumerates what the check produces: missing/unused operations plus stored type verdicts. This is clearly distinguishable from get_service_graph (topology) and get_contract_pair (type detail), which are named.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('Call it before removing or changing any route, shape, field, or event') and routes the agent elsewhere for adjacent needs: get_service_graph for whole-project topology, get_contract_pair for both sides' types. That is when-to-use plus named alternatives, not just implied context.

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.