Skip to main content
Glama

clear_token_cache

Clears cached OAuth2 and auth tokens so they are re-fetched on the next request. Use when tokens are revoked or credentials rotated.

Instructions

Clear cached OAuth2 / auth tokens so they are re-fetched on the next request. Use when tokens have been revoked or you've rotated credentials.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clear_token_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault
cache_keyNoSpecific cache key to clear (leave blank to clear all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden. It usefully explains the immediate consequence, that tokens are re-fetched on the next request, but it does not disclose permission requirements, whether active sessions are affected, or the default all-cache clearing scope covered only in the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two efficient sentences with the core action and effect front-loaded, followed by the usage trigger. Every sentence adds useful information without repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter cache-clearing tool with no output schema and full schema coverage, the description covers purpose, effect, and intended use. It could mention side effects or default all-clear behavior, but the schema already documents the parameter default.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single optional cache_key parameter has 100% schema description coverage, including the important 'leave blank to clear all' default. The description itself adds no parameter meaning beyond the schema, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States the specific verb 'Clear' and the specific resource 'cached OAuth2 / auth tokens', plus the observable effect that they are re-fetched on the next request. This distinguishes it from sibling tools like clear_cookies by resource rather than relying on the tool name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit trigger conditions: use when tokens have been revoked or credentials have been rotated. It does not state when not to use it or name a specific alternative, so it falls short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.