get_method_signature

[analysis]

Gets detailed information about a method signature (parameters, return type, docs, and location).

Try this tool in Playground.

Parameters

NameTypeRequiredDescription
methodNamestringYesMethod name to analyze.
containingTypeNamestringNoOptional containing type name filter.
projectNamestringNoOptional project name filter.
timeout_msnumberNoTimeout in milliseconds (5 minutes). Use 0 to disable. Default is 300000.

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
}

Response Notes

Returns method signature with parameters