Browse documentation

get_outgoing_calls

[callgraph]

Finds methods called by a given method's body. Requires a symbolKey. Supports depth-limited expansion and paging.

Try it locally in the Glider playground

Parameters

NameTypeRequiredDescription
symbolKeystringYesOpaque symbolKey from search_symbols, resolve_symbol, get_symbol_at_position, or any tool that returns symbolKey. Not a name.
depthnumberNoDepth of expansion. Default is 1 (direct calls). Default: 1
scopejsonNoOptional scope. Omit scope to search the solution. When supplied, set mode to solution, project, document, or pathPrefix. project requires projectName. document requires filePath. pathPrefix requires pathPrefix. Paths can be absolute or relative to solutionRoot. Set includeExternal to true when the tool supports external symbols.
skipnumberNoPagination offset. Default is 0. Default: 0
takenumberNoPagination size. Default is 200. Default: 200
pathStylestringNoPath style: 'absolute' (default) or 'relative' (to solution root). Default: "absolute"
responseDetailstringNocompact returns results and actionable state. full adds diagnostic metadata under responseDiagnostics. Default: "compact"

Examples

Replace sample paths and symbol keys with values from your workspace.

Get outgoing calls for a method

Arguments
{
  "symbolKey": "...",
  "depth": 1
}
Full MCP request
Full MCP request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_outgoing_calls",
    "arguments": {
      "symbolKey": "...",
      "depth": 1
    }
  }
}
Illustrative response
{
  "success": true,
  "symbolKey": "...",
  "callCount": 2,
  "paging": {
    "total": 2
  },
  "calls": [
    {
      "callee": {
        "name": "SaveAsync",
        "fullName": "MyApp.Data.UserRepository.SaveAsync(User)",
        "symbolKey": "..."
      },
      "isExternal": false,
      "depth": 1
    }
  ]
}

Response Notes

Returns outgoing calls (with paging) Results use top-level fields with success. Compact is the default; full adds responseDiagnostics. Both modes retain errors, coverage, partial state, and recovery advice.