Browse documentation

get_type_dependencies

[architecture]

Analyzes type dependencies (uses / used_by).

Try it locally in the Glider playground

Parameters

NameTypeRequiredDescription
symbolKeystringNoSource type key from discovery. Do not combine with typeName or projectName.
typeNamestringNoType name. Provide this or symbolKey.
projectNamestringNoOptional project name filter.
directionstringNoDirection: 'uses', 'used_by', or 'both' (default). Default: "both"
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.

Analyze dependencies

Arguments
{
  "typeName": "OrderService"
}
Full MCP request
Full MCP request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_type_dependencies",
    "arguments": {
      "typeName": "OrderService"
    }
  }
}
Illustrative response
{
  "success": true,
  "typeName": "OrderService",
  "symbolKey": "<type key from search_symbols>",
  "fullName": "Acme.Orders.Services.OrderService",
  "filePath": "/path/to/OrderService.cs",
  "usesCount": 4,
  "usedByCount": 2,
  "uses": [
    {
      "typeName": "ILogger",
      "symbolKey": null,
      "fullName": "Microsoft.Extensions.Logging.ILogger",
      "namespace": "Microsoft.Extensions.Logging",
      "usageKind": "Field",
      "filePath": null,
      "isExternal": true
    }
  ],
  "usedBy": [
    {
      "typeName": "CheckoutController",
      "symbolKey": "<source dependency key>",
      "fullName": "Acme.Orders.Api.CheckoutController",
      "namespace": "Acme.Orders.Api",
      "usageKind": "Method",
      "filePath": "/path/to/CheckoutController.cs",
      "isExternal": false
    }
  ]
}

Analyze a discovered type

Arguments
{
  "symbolKey": "<type key from search_symbols>",
  "direction": "both"
}
Full MCP request
Full MCP request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_type_dependencies",
    "arguments": {
      "symbolKey": "<type key from search_symbols>",
      "direction": "both"
    }
  }
}

Response Notes

Returns types used by the target and types that reference it. The target and source dependency records include symbolKey. External dependency keys are null. Keys select source types only; stale, metadata, and non-type keys fail. Results use top-level fields with success. Compact is the default; full adds responseDiagnostics. Both modes retain errors, coverage, partial state, and recovery advice.