Skip to main content
Glama

Refresh Passport

stack_refresh_passport

Refresh a Passport and return a new token. Accepts a token that is still valid or one that expired less than 24 hours ago. The new Passport keeps the session and delegation chain and reflects current permissions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "token": "<token>"
    },
    "name": "stack_refresh_passport"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesThe Passport JWT to refresh
ttl_secondsNoTTL for new passport (default 900, max 3600)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare it is a non-destructive, non-open-world mutation. The description adds real behavioral context: the 24-hour grace window on expired tokens, that session and delegation chain survive the refresh, and that permissions are re-evaluated. It does not say what happens past the 24-hour window or whether the old token is invalidated.

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?

Three short sentences, front-loaded with the action and return value, followed by eligibility then preserved state. No filler and nothing redundant.

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?

With no output schema, the description correctly states the return ('a new token') and covers eligibility and preserved state for a simple 2-parameter tool. The main remaining gap is failure behavior for tokens expired beyond 24 hours, which an agent would want before calling.

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%, so both 'token' and 'ttl_seconds' (including default 900 and max 3600) are already fully documented in the schema. The description adds no format or constraint detail beyond that, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb ('Refresh') and resource ('Passport') plus the outcome ('return a new token'), and the note about preserving the session and delegation chain implicitly separates it from stack_issue_passport or stack_delegate_passport. It stops short of naming any sibling, so an agent must still infer the routing.

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

Usage Guidelines3/5

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

The acceptance window ('still valid or expired less than 24 hours ago') is genuinely useful eligibility guidance, but it describes when the call succeeds rather than when to choose this tool over stack_issue_passport or stack_verify_passport. No explicit exclusions or alternatives are given.

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.