Skip to main content
Glama

recover_session

Recover a known session using the secret answer, max 5 attempts/hour. Rotates/revokes the previous session token.

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": {
      "session_id": "<session_id>",
      "secret_answer": "<secret_answer>"
    },
    "name": "recover_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes
secret_answerYes

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

The description adds two traits the annotations do not carry: a rate limit (max 5 attempts/hour) and the side effect that the previous session token is rotated/revoked. That side-effect disclosure is important since an agent could otherwise assume a pure lookup. Revocation is a token-lifecycle effect rather than data destruction, so it does not contradict destructiveHint=false.

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 compact sentences, front-loaded with the action and credential before the operational caveats. No filler or restatement of the tool name.

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 an output schema present, return values need not be explained, and the description covers the credential, the rate limit, and the token rotation. It stops short of describing what happens when the 5-attempt budget is exhausted (lockout duration, error behavior), which would be useful for a recovery tool.

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 0%, so the description must compensate. It clarifies that secret_answer is the recovery secret and that session_id identifies a pre-existing session, but it gives no format, case-sensitivity, or failure semantics for either required field.

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?

"Recover a known session using the secret answer" gives a specific verb (recover) plus resource (session) and names the credential required, which distinguishes it from begin_session and get_session. It does not explicitly contrast itself with those siblings, so it stops short of the top score.

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 phrasing "a known session" and the required secret answer imply the situation (regaining access to an existing session without a valid token), but there is no explicit when-not-to-use guidance and no pointer to get_session or get_recovery_question for the adjacent cases.

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.

Resources