Skip to main content
Glama

EQVPS — VPS and code sandboxes for AI agents

Refresh the API token

refresh_token
Destructive

Exchange the CURRENT bearer token for a new one before it expires: returns token + token_expires_at (1 year by default, or expires_in_days 1-1825) and REVOKES the old token immediately. Inside this MCP session the new token is used automatically; with raw HTTP save it and stop using the old one. Every REST response carries the header X-Token-Expires-At; get_started shows the expiry and warns 30 days ahead. An already expired token cannot be refreshed — log in again (login) or create a token in the cabinet. Requires: a valid (not yet expired) token. The old token is revoked.

Input Schema

NameRequiredDescriptionDefault
expires_in_daysNoOptional. Lifetime of the NEW token in days, integer 1–1825 (default 365).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / expires_in_days / description
      Added value: +"Optional. Lifetime of the NEW token in days, integer 1–1825 (default 365)."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description adds the crucial concrete consequence: the old token is revoked immediately and the caller must save the new one when using raw HTTP. It also documents the X-Token-Expires-At header and the 30-day warning, well beyond what structured fields convey.

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

Conciseness4/5

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

Front-loads the core exchange-and-revoke behavior and keeps supporting detail (header, session behavior, alternatives) compact. Slight redundancy: 'REVOKES the old token immediately' and the closing 'The old token is revoked' say the same thing twice.

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

Completeness5/5

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

No output schema exists, and the description compensates by naming the returned fields (token, token_expires_at), the default lifetime, and the session-level consumption behavior. An agent has everything needed to call and consume this correctly.

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?

Schema description coverage is 100% and the schema already states range 1-1825 and default 365 for expires_in_days; the description restates the same range and only marginally clarifies that the lifetime applies to the NEW token. Baseline 3 is appropriate since the schema carries the parameter meaning.

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 ('Exchange the CURRENT bearer token for a new one') and immediately disentangles itself from siblings like login and get_started by describing what it does versus what they do when the token is already expired.

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 (before expiry, within the 30-day warning window), the when-not (already expired tokens cannot be refreshed), and names the alternatives for that case ('log in again (login) or create a token in the cabinet').

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.