{"name": "The capability diet: tool pruning for agents", "provider": "TextForAgents LLC", "support": "support@textforagents.com", "slug": "capability-diet-tool-pruning", "what": "Compiles cross-session usage telemetry OFFLINE into per-task-type load manifests for MCP tool stacks: manifests keep the tools a task type actually uses and demote the rest; demotion is reversible in-session via diet_fetch_tool (JIT recovery). Includes exposure accounting (description tokens loaded vs full catalog). Compilation is poisoning-resistant: distinct-session scoring, per-agent contribution capped at 25% of a task type's sessions, promotion floor of >=2 distinct agents (or >=50% of sessions). Manifests are integrity-signed and versioned (version 1).", "features": ["per-task-type load manifests", "reversible JIT demotion/recovery (diet_fetch_tool)", "exposure accounting", "poisoning-resistant compilation", "signed/versioned manifests", "real MCP JSON-RPC surface at POST /mcp", "operator tool pinning: POST /pins pins any catalog tool so it is never demoted for your account; POST /unpin removes a pin; GET /pins lists them"], "limits": ["Manifests are compiled offline from usage telemetry only \u2014 no per-prompt LLM semantic filtering and no per-input embedding retrieval.", "Token-saving figures beyond the lab stack (28 tools; -50.9% description tokens/session at equal task success, 360/360) are not claimed: a real large-stack measurement is a packet item.", "Positioning vs meta-tools is honest: a meta-tool baseline used fewer tokens in the lab (294 vs 718/session) but pays per-session discovery with no planning visibility; the diet keeps the right subset visible in a standard MCP client.", "One fleet per subscription. Trial is one-time per operator account AND per payer wallet.", "Lost-token recovery is a manual support@ step."], "prices": {"fleet_monthly_usd": 9, "trial": "first month free, once per operator account AND per wallet, one fleet", "bundle": "Also sold in the Agent Trust Stack bundle $9/mo per operator (with P13 Caplock + canary watch on <=10 servers); taking the bundle consumes the one-time trial grant for all three bundled products."}, "how_to_start": "POST /register {account_name, payer_wallet, wallet_signature} -> claim_token (wallet_signature = EIP-191 signature by the payer wallet over 'capability-diet-tool-pruning register\\naccount_name:<account_name>\\nwallet:<payer_wallet lowercase>'); POST /trial {claim_token} for the one-time free month, or POST /subscribe with a verified x402 $9 payment (payer must be the account wallet) to start/renew. The claim_token is single-use: it is consumed by the first grant. Then POST /telemetry, POST /compile, and use POST /mcp.", "bundle": {"endpoints": "POST /bundle/subscribe (x402 $9, same lane as the WO-R0 storefront Stripe checkout), POST /bundle/trial, POST /bundle/activate, GET /bundle/status \u2014 Agent Trust Stack: P13 Caplock Watch + capability diet + P15 canary <=10 servers, $9/mo per operator; a bundle purchase or bundle trial consumes the one-time trial grant for all three products.", "card_lane": "Stripe Checkout for this product and the bundle is served by the shared WO-R0 storefront at the same $9 listed price."}, "pinning": {"endpoint": "POST /pins (Bearer token) {\"tool\": \"<catalog tool name>\"} pins a tool; POST /unpin {\"tool\": ...} removes the pin; GET /pins lists your pins.", "effect": "A pinned tool is never demoted for your account: it is added to keep (and removed from demoted) in every manifest served to you, including already-compiled ones, and is callable directly over MCP without diet_fetch_tool. Pins are per-account and survive recompiles until unpinned."}, "telemetry": {"endpoint": "POST /telemetry (Bearer token)", "event_schema": {"type": "object", "required": ["agent", "session", "task_type", "tool"], "additionalProperties": false, "properties": {"agent": {"type": "string", "maxLength": 80, "description": "Stable id of the agent that used the tool."}, "session": {"type": "string", "maxLength": 80, "description": "Session id; one session = one run of one task type."}, "task_type": {"type": "string", "pattern": "^[a-z0-9_-]{1,40}$", "description": "Task type the tool use belongs to, e.g. research, coding."}, "tool": {"type": "string", "enum": ["add_observations", "calculate", "convert_time", "count_words", "create_directory", "create_entities", "create_relations", "decode_base64", "delete_entities", "edit_file", "encode_base64", "fetch_markdown", "fetch_url", "get_current_time", "get_file_info", "git_commit", "git_diff", "git_log", "git_status", "hash_text", "list_directory", "move_file", "open_nodes", "read_file", "search_files", "search_nodes", "sequential_think", "write_file"], "description": "Name of a tool in this product's catalog that was actually called."}}}, "example": {"events": [{"agent": "agent-a", "session": "research-0", "task_type": "research", "tool": "search_nodes"}, {"agent": "agent-a", "session": "research-0", "task_type": "research", "tool": "fetch_url"}, {"agent": "agent-b", "session": "research-1", "task_type": "research", "tool": "search_nodes"}]}, "limits": "events is a list of at most 500 events per call; one event per actual tool call.", "compile_rules": "POST /compile {task_type} compiles ONLY your own account's submitted events for that task type. A tool is kept only with >=3 distinct sessions and (>=2 distinct agents or >=50% of the task type's sessions), with any single agent capped at 25% of sessions per tool. With no telemetry for a task type the manifest keeps nothing (all tools demoted, all still reachable via diet_fetch_tool)."}}