Show the cross-service call graph
get_service_graphReturn 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
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Your repo as owner/repo (git remote) or just the repo name. Resolves which Carrick project to query. | |
| limit | No | 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. | |
| offset | No | Rows to skip in every array (default 0). Pass the `next_offset` from a previous call to page through. | |
| project | No | Carrick project slug to query. Omit to auto-resolve via `repo`, or omit both when the workspace has one project. | |
| service | No | Optional: return only edges that TOUCH this service (as consumer or producer), plus its unmatched calls and orphaned endpoints. Omit for the whole project graph. | |
| sections | No | 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. | |
| unmatched_reasons | No | 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. |