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.

Try this tool in Playground.

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.

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