Skip to main content
Glama

Refresh access token

zoodex_refresh_token

Force an access token refresh using the stored refresh token when automatic renewal or 401 retry does not resolve authentication.

Instructions

Force a refresh of the access token using the stored refresh token. Normally not needed: tokens are refreshed automatically before expiry and on any 401.

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": "zoodex_refresh_token"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the mutation/network profile is covered. The description adds real value beyond that by disclosing the dependency on a stored refresh token and the redundancy with automatic refresh. It stops short of saying what happens when no refresh token is stored or when the refresh fails.

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 short sentences with no waste. The action is stated first and the 'normally not needed' caveat follows immediately, so the agent gets the key decision cue before any elaboration.

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 zero-parameter tool with annotations covering its safety profile and no output schema, this is nearly complete. The only gap is failure/edge behavior — what the agent should expect if no refresh token exists or the refresh is rejected.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing for the schema to document and the baseline is 4. The description usefully confirms the refresh token is taken from stored state rather than supplied as an argument, reinforcing that no input is expected.

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 a specific verb and resource ('Force a refresh of the access token') plus the mechanism ('using the stored refresh token'). The 'force' framing makes clear this is a manual override of an otherwise automatic process, which an agent can distinguish from login_start/login_verify.

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

Usage Guidelines5/5

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

Explicitly gives the when-not-to-use case: 'Normally not needed: tokens are refreshed automatically before expiry and on any 401.' This tells the agent to skip this tool in the common path and only reach for it as an exception, which is exactly the routing guidance needed.

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