{"serverInfo":{"name":"TokenGuard","version":"1.2.0","displayName":"TokenGuard — Saves tokens by checking stored answers first","description":"Saves tokens and costs by checking stored data first. Flow: check_stored_answer (query) → if no cache, get_active_token → use token for API call → store_answer. Cached hit = no charge. Token delivered = 20% in credits. No token = no charge. 5 free retrievals; $10→$20 credits; $5 referral.","homepage":"https://tokenguard.agenticidaho.workers.dev","icon":"https://tokenguard.agenticidaho.workers.dev/icon.svg"},"capabilities":{"tools":{"listChanged":false}},"authentication":{"required":false},"tools":[{"name":"check_stored_answer","description":"Call FIRST. Check if we already have an answer for this query. If found, use it — no API call, no charge. If not found, then call get_active_token.","inputSchema":{"type":"object","properties":{"query":{"type":"string"},"service_name":{"type":"string"}},"required":["query"]},"annotations":{"readOnlyHint":true,"idempotentHint":true}},{"name":"get_active_token","description":"Call when check_stored_answer returns no cache. Gate for API calls: returns token, charges 20% in credits. No token = no charge. Pass service_name and credits_saved.","inputSchema":{"type":"object","properties":{"service_name":{"type":"string"},"credits_saved":{"type":"number"},"idempotency_key":{"type":"string"}},"required":["service_name"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},{"name":"store_answer","description":"Call AFTER getting API response. Store the answer for this query so future requests use the cache — tokens saved.","inputSchema":{"type":"object","properties":{"query":{"type":"string"},"answer":{"type":"string"},"service_name":{"type":"string"}},"required":["query","answer"]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false}},{"name":"get_account_summary","description":"View your credit balance, total savings, and referral code.","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"idempotentHint":true}},{"name":"check_low_credits","description":"Check if your balance is below the warning threshold.","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"idempotentHint":true}},{"name":"onboard_with_referral","description":"Sign up using a peer's 6-character referral code. When you deposit $10, the person who shared the code gets $5 in credits.","inputSchema":{"type":"object","properties":{"referral_code":{"type":"string"}},"required":["referral_code"]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false}},{"name":"generate_savings_report","description":"See how much you saved: gross market cost, 20% fees paid, net benefit over N days.","inputSchema":{"type":"object","properties":{"days":{"type":"number"}}},"annotations":{"readOnlyHint":true,"idempotentHint":true}},{"name":"list_active_tokens","description":"List active tokens in the vault (values hidden).","inputSchema":{"type":"object","properties":{"limit":{"type":"number"},"page":{"type":"number"}}},"annotations":{"readOnlyHint":true,"idempotentHint":true}},{"name":"generate_temp_key","description":"Create a temporary, expiring access key.","inputSchema":{"type":"object","properties":{"purpose":{"type":"string"},"expiresIn":{"type":"number"}},"required":["purpose","expiresIn"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},{"name":"revoke_access","description":"Immediately deactivate a token by ID.","inputSchema":{"type":"object","properties":{"tokenId":{"type":"string"}},"required":["tokenId"]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false}},{"name":"audit_log","description":"View recent changes to a token. Token values are redacted.","inputSchema":{"type":"object","properties":{"tokenId":{"type":"string"}},"required":["tokenId"]},"annotations":{"readOnlyHint":true,"idempotentHint":true}},{"name":"get_my_usage","description":"View your activity: calls, errors, credits spent, top tools.","inputSchema":{"type":"object","properties":{"days":{"type":"number"}}},"annotations":{"readOnlyHint":true,"idempotentHint":true}}],"resources":[{"uri":"tokenguard://account/summary","name":"Account summary","description":"Your TokenGuard balance, referral code, and free uses remaining.","mimeType":"application/json"},{"uri":"tokenguard://docs/overview","name":"TokenGuard overview","description":"Quick reference: 5 free uses, 20% fee, $10→$20 credits, referral $5.","mimeType":"text/plain"}],"prompts":[{"name":"check_balance","description":"Check my TokenGuard balance and referral code.","arguments":[]},{"name":"savings_report","description":"Generate a savings report for the last N days.","arguments":[{"name":"days","description":"Days to look back (default 30)","required":false}]},{"name":"get_token","description":"Get an API token and use it for your next API call to that service so the user pays 20% in credits.","arguments":[{"name":"service_name","description":"Service name, e.g. openai","required":true}]}]}