Skip to main content
Glama

Show the cross-service call graph

get_service_graph
Read-onlyIdempotent

Return the whole cross-service call graph in one call: consumer -> producer edges across every protocol, unmatched calls, orphaned endpoints. Use it first for topology: who depends on a service, what a change ripples into. An edge carrying via_sdk reaches its producer through a published package rather than a call site of its own. An edge carrying same_service has one service at both ends, a service calling its own operation, and is listed after the cross-service ones. For one pair in depth, use check_compatibility. For the types on both sides of one pair's operations, use get_contract_pair. To read only the calls that reach no route, dispatch case or procedure, pass unmatched_reasons and sections: ["unmatched_calls"] instead of paging the whole graph. On a large project, call get_project_map first: it summarises this graph section by section and names the drill-down tool for each.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_service_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNoYour repo as owner/repo (git remote) or just the repo name. Resolves which Carrick project to query.
limitNoRows per array per page (default 40, max 200), cut further when the page would not fit one response; the note says so. The *_count totals are never paged.
offsetNoRows to skip in every array (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.
serviceNoOptional: return only edges that TOUCH this service (as consumer or producer), plus its unmatched calls and orphaned endpoints. Omit for the whole project graph.
sectionsNoOptional: return only the named arrays, from edges, unmatched_calls, model_calls_unplaced, orphaned_endpoints, unread_sites. The others are left out of the page, and the *_count totals stay. Use it with unmatched_reasons to read the calls that reach nothing without paging past the edges and orphans. An unknown name is refused with the valid ones.
unmatched_reasonsNoOptional: list only the unmatched calls whose reason is in this list, such as ["no_matching_producer", "no_case_answers", "procedure_unserved"] for the calls that reach no route, dispatch case or procedure. `offset` and `next_offset` then page this filtered list, and unmatched_calls_filtered_count says how many rows it holds. unmatched_count and unmatched_by_reason still count every unmatched call. An unknown reason is refused with the valid ones.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / sections
      Added value: +{
      +  "description": "Optional: return only the named arrays, from edges, unmatched_calls, model_calls_unplaced, orphaned_endpoints, unread_sites. The others are left out of the page, and the *_count totals stay. Use it with unmatched_reasons to read the calls that reach nothing without paging past the edges and orphans. An unknown name is refused with the valid ones.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / unmatched_reasons
      Added value: +{
      +  "description": "Optional: list only the unmatched calls whose reason is in this list, such as [\"no_matching_producer\", \"no_case_answers\", \"procedure_unserved\"] for the calls that reach no route, dispatch case or procedure. `offset` and `next_offset` then page this filtered list, and unmatched_calls_filtered_count says how many rows it holds. unmatched_count and unmatched_by_reason still count every unmatched call. An unknown reason is refused with the valid ones.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Rows per array per page (default 40, max 200). The *_count totals are never paged."New value: +"Rows per array per page (default 40, max 200), cut further when the page would not fit one response; the note says so. The *_count totals are never paged."
  3. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive, so the safety profile is covered; the description instead adds genuinely non-obvious semantics: what a via_sdk edge means (reaches its producer through a published package rather than a call site) and that same_service edges have one service at both ends and are listed after cross-service ones. It stops short of describing response shape or how large graphs behave in practice, but the edge-type semantics are the higher-value disclosure here.

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?

Purpose and contents are front-loaded in the first sentence, then edge semantics, then sibling routing, then the narrowing recipe. Every sentence carries information, though the routing tail is long enough that an agent must read to the end to find the sections/unmatched_reasons shortcut.

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 a 7-parameter, no-required-param, read-only graph dump with no output schema, the description covers what the tool returns, the meaning of the non-obvious fields, paging behavior, when to narrow, and which sibling to use for each narrower question. Nothing needed to call it correctly is missing.

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?

Schema coverage is 100%, so baseline is 3, but the description adds real usage meaning beyond it: the exact combination of unmatched_reasons with sections: ["unmatched_calls"] to read unrouted calls without paging past edges and orphans, and the reassurance that *_count totals are never paged. That is compositional guidance the schema does not supply.

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?

States a concrete verb and resource ('Return the whole cross-service call graph in one call') and enumerates exactly what comes back: consumer -> producer edges across every protocol, unmatched calls, orphaned endpoints. It is immediately distinguishable from siblings like check_compatibility and get_contract_pair, which are named as the narrower alternatives.

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 explicit ordering guidance ('Use it first for topology: who depends on a service, what a change ripples into'), names two alternatives with the exact condition that selects each ('For one pair in depth, use check_compatibility', 'For the types on both sides... use get_contract_pair'), and adds a large-project escape hatch to get_project_map. It also explains when to narrow instead of page the whole graph.

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.