[analysis]
Gets detailed information about a method signature (parameters, return type, docs, and location) by method name or symbolKey. Supports fully qualified method names when containingTypeName is omitted; a symbolKey disambiguates overloads.
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.
Try it locally in the Glider playground
| Name | Type | Required | Description |
|---|---|---|---|
| methodName | string | No | Method name to analyze. If containingTypeName is omitted, you can pass a fully qualified name like 'Namespace.Type.Method'. Provide this or symbolKey. |
| symbolKey | string | No | A symbolKey from search_symbols/resolve_symbol (preferred; precise for overloads). Provide this or methodName. |
| 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