get_method_signature

[analysis]

Gets detailed information about a method signature (parameters, return type, docs, and location). Supports fully qualified method names when containingTypeName is omitted.

Why this tool exists

Agents need enough source and member detail to act, but whole files are often too much context.

How it helps the agent

These tools provide bounded, structured slices of types and methods so the model can inspect intent without flooding the prompt.

Parameters

NameTypeRequiredDescription
methodNamestringYesMethod name to analyze. If containingTypeName is omitted, you can pass a fully qualified name like 'Namespace.Type.Method'.
containingTypeNamestringNoOptional containing type name filter.
projectNamestringNoOptional project name filter.
pathStylestringNoPath style: 'absolute' (default) or 'relative' (to solution root).

Examples

Get method signature

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_method_signature",
    "arguments": {
      "methodName": "GetUserById"
    }
  }
}
Response
{
  "success": true,
  "data": {
    "name": "LoadSolutionAsync",
    "returnType": "Task",
    "containingType": "ISolutionManager",
    "filePath": "/path/to/SolutionManager.cs",
    "lineNumber": 58,
    "parameters": [
      {
        "name": "solutionPath",
        "type": "string",
        "defaultValue": null,
        "modifiers": []
      }
    ]
  },
  "error": null
}

Get signature with fully qualified name

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_method_signature",
    "arguments": {
      "methodName": "MyApp.Services.UserService.GetUserById"
    }
  }
}
Response
{
  "success": true,
  "data": {
    "name": "LoadSolutionAsync",
    "returnType": "Task",
    "containingType": "ISolutionManager",
    "filePath": "/path/to/SolutionManager.cs",
    "lineNumber": 58,
    "parameters": [
      {
        "name": "solutionPath",
        "type": "string",
        "defaultValue": null,
        "modifiers": []
      }
    ]
  },
  "error": null
}

Response Notes

Returns method signature with parameters

↑/↓ NavigateEnter OpenSpace Expand