[analysis]
Gets detailed information about a method signature (parameters, return type, docs, and location). Supports fully qualified method names when containingTypeName is omitted.
Agents need enough source and member detail to act, but whole files are often too much context.
These tools provide bounded, structured slices of types and methods so the model can inspect intent without flooding the prompt.
| Name | Type | Required | Description |
|---|---|---|---|
| methodName | string | Yes | Method name to analyze. If containingTypeName is omitted, you can pass a fully qualified name like 'Namespace.Type.Method'. |
| containingTypeName | string | No | Optional containing type name filter. |
| projectName | string | No | Optional project name filter. |
| pathStyle | string | No | Path style: 'absolute' (default) or 'relative' (to solution root). |
Get method signature
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_method_signature",
"arguments": {
"methodName": "GetUserById"
}
}
}{
"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
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_method_signature",
"arguments": {
"methodName": "MyApp.Services.UserService.GetUserById"
}
}
}{
"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
}Returns method signature with parameters