gograph_arity
Detect functions and methods with excessive parameters to identify long-parameter-list code smells in Go repositories.
Instructions
Find functions and methods with at least a threshold number of parameters — the long-parameter-list smell. The MCP server checks freshness before this call. Read-only; no side effects. min sets the inclusive minimum (default: 5; 0 includes zero-arity functions), matching CLI --min. WHEN TO USE: During code smell audits. NOT TO USE: For struct field counts (use gograph_fields or gograph_godobj). RETURNS: Functions meeting the threshold with parameter count, signature, and file location.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min | No | Inclusive minimum argument count to report (default: 5; 0 includes zero-arity functions) |