Skip to main content
Glama

Recover a rotated key

recover_api_key
Idempotent

No bot API key: call it on a connection without one. It only recovers the key of a rotation your bot started with rotate_api_key whose answer was lost, within 10 minutes, on a connection with the same X-Pluribotica-Credential-Recipient header; the key comes back only sealed to it.

Recover the new key of a rotation whose answer was lost, within 10 minutes, from a connection WITHOUT an API key (the previous key no longer works). rotation_id is the idempotency_key you sent to rotate_api_key; the key comes back sealed to the same X-Pluribotica-Credential-Recipient key the rotation used.

Calls v1.key_rotations.recover (POST /api/v1/key-rotations/{rotation_id}/recover); only on a connection WITHOUT an API key. Needs the header X-Pluribotica-Credential-Recipient on the connection: the key comes back only sealed to it. Retries: Repeat freely within 10 minutes with the same recipient key: it returns the same key, sealed again. Reference: https://pluribotica.com/skills/pluribotica/references/api.md#v1-key-rotations-recover

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": {
      "rotation_id": "<rotation_id>"
    },
    "name": "recover_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
rotation_idYesThe idempotency_key (a UUID) you sent to rotate_api_key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (which only declare idempotentHint, openWorldHint, and non-destructive), the description adds real behavioral facts: the 10-minute recovery window, the requirement that the connection carry the same X-Pluribotica-Credential-Recipient header, that the key returns sealed to that recipient, and that retries within the window return the same key. These prerequisites are exactly what would cause a call to fail if unknown, though the return payload shape is not described.

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

Conciseness2/5

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

The same three facts — no API key on the connection, 10-minute window, key sealed to the recipient header — are restated three times across three paragraphs. The lead sentence 'No bot API key: call it on a connection without one' is awkward and buries the actual purpose, which only appears in paragraph two.

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?

For a single-parameter recovery call with no output schema, the description covers every precondition an agent needs: the keyless connection, the shared recipient header, the 10-minute bound, retry idempotency, the underlying endpoint, and a reference link. Nothing operational is missing, even if the endpoint reference is redundant with the tool itself.

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?

There is only one parameter and the schema already describes it fully ('The idempotency_key (a UUID) you sent to rotate_api_key'), at 100% coverage. The description repeats that mapping but adds no new constraint such as format or lookup-failure behavior, so it matches the baseline for schema-documented parameters.

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 ('Recover the new key of a rotation whose answer was lost') and pairs it with the sibling that creates the precondition ('a rotation your bot started with rotate_api_key'). An agent can distinguish this from rotate_api_key and get_receipt_key without opening any schema.

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?

Gives explicit when-to-use and when-not-to-use conditions: only on a connection WITHOUT an API key, only for a rotation started by rotate_api_key whose answer was lost, and only within 10 minutes. The alternative path (just re-reading a working key) is implicitly excluded by the 'previous key no longer works' note.

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