A structural search tool that finds functions based on their shape rather than their name or behavior. Search by parameter count, return type, access modifiers, and name wildcards to find functions that match a structural pattern.
Result<T>)| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
namePattern | string | no | — | Wildcard pattern for function name (e.g., handle*, *Controller, get_*_by_id) |
paramCount | number | no | — | Exact number of parameters |
minParams | number | no | — | Minimum number of parameters |
maxParams | number | no | — | Maximum number of parameters |
returnType | string | no | — | Return type to match (e.g., Promise, Result, void) |
modifiers | array | no | — | Required modifiers: async, static, public, private, protected, abstract, export |
limit | number | no | 50 | Maximum number of results |
Natural language:
Find all async functions in the project
MCP call:
{
"tool": "stellarion_find_by_signature",
"arguments": {
"modifiers": ["async"]
}
}
Natural language:
Find functions that take 5 or more parameters — they might need refactoring
MCP call:
{
"tool": "stellarion_find_by_signature",
"arguments": {
"minParams": 5
}
}
Natural language:
Find all functions starting with "handle" that return a Result
MCP call:
{
"tool": "stellarion_find_by_signature",
"arguments": {
"namePattern": "handle*",
"returnType": "Result"
}
}
Natural language:
Find all public static methods in the codebase
MCP call:
{
"tool": "stellarion_find_by_signature",
"arguments": {
"modifiers": ["public", "static"]
}
}
Natural language:
Find functions that take exactly 2 parameters and return void
MCP call:
{
"tool": "stellarion_find_by_signature",
"arguments": {
"paramCount": 2,
"returnType": "void"
}
}
Returns matching functions:
minParams and maxParams together to define a range (e.g., 3-5 parameters).* for any characters: get* matches getUser, getAll, getById.["async", "public"] finds functions that are both async and public.stellarion_analyze_complexity to find complex functions with specific shapes.