# Microgram: module-complexity-gate

`station__algovigilance__microgram-module-complexity-gate` · native (always callable) · domain `algovigilance` · pv-relevance `pv-core`

Code hygiene gate: classifies Rust modules by public function count. Modules with 10+ pub fns are doing too much.

## Agent metadata

- `idempotent`: true
- `read_only`: true
- `expected_latency_ms`: unknown (not yet contract-tested)
- `cost_tokens_estimate`: unknown

## Input schema

- `pub_fn_count` *number* (required) — Input variable pub_fn_count
- `struct_count` *number* — Input variable struct_count

## Example call

```json
POST /api/mcp
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__algovigilance__microgram-module-complexity-gate",
    "arguments": {
      "pub_fn_count": 0
    }
  }
}
```

## Related

- [/tools](/tools) — all 7718 tools
- [/tools/algovigilance__microgram-module-complexity-gate](/tools/algovigilance__microgram-module-complexity-gate) — HTML page
- [/tools/algovigilance__microgram-module-complexity-gate/json](/tools/algovigilance__microgram-module-complexity-gate/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
