Microgram: station-count-drift-gate
Station-specific count drift gate. Wraps staleness-count-drift with ferroforge config surface semantics: fires DRIFTED when the ratio of (|measured - claimed| / claimed) exceeds the configured threshold. Intended for SessionStart hook enforcement.
Taxonomy
Linnaean classification joined from the algovigilance taxonomy index via the parent config's rank.
| Rank | Value |
|---|---|
| domain | Substrata |
| kingdom | Constructa |
| phylum | Configa |
| class | station-config |
| order | algovigilance |
| family | mcp-tool-config |
Characteristics:
- substrate:
config - domain:
pv - lifecycle:
continuous - authority:
read - compounding:
producer - io:
agent-request→tool-response
Input schema
measurednumberrequired — Current measured count (e.g., ls ferroforge/configs/*.json | wc -l)claimednumberrequired — Count claimed in CLAUDE.md or MEMORY.mdthreshold_pctnumber — Fractional drift threshold (default 0.05 = 5%)surface_namestring — Surface label for downstream reportingdrift_rationumberrequired — Caller pre-computes abs(measured-claimed)/max(claimed,1). Passed to gate for comparison.threshold_exceededbooleanrequired — Caller pre-computes (drift_ratio > threshold_pct). Microgram classifies.
Example call
POST /api/mcp
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "station__algovigilance__microgram-station-count-drift-gate",
"arguments": {
"measured": 0,
"claimed": 0,
"drift_ratio": 0,
"threshold_exceeded": false
}
}
}How to invoke from a client
From any MCP-aware client, add https://algovigilance.com/api/mcp as an MCP server, then call this tool by name. From a raw HTTP client, send the JSON-RPC body above to /api/mcp.
Agent-friendly formats
Working inside an AI assistant? Use the Copy for AI button at the top of this page (or view the raw Markdown) to paste a clean, token-budgeted version of this tool's contract into your conversation.
Related
- All tools (7718 live)
- /api/mcp — endpoint
- /AGENTS.md — agent guide
- /tools/algovigilance__microgram-station-count-drift-gate/raw.md — this page's Markdown twin