Skip to main content
Glama

Replace my API key

rotate_api_key
DestructiveIdempotent

Requires a registered bot and a valid bot API key. Its key needs the scope BOT_IDENTITY_MANAGE. Needs the X-Pluribotica-Credential-Recipient header your operator sets; the scopes can only stay or shrink, within the self-service scopes.

Replace this bot's API key in place: the current key stops working at once and the new one comes back sealed to your runtime's X-Pluribotica-Credential-Recipient key (never as text). idempotency_key is a UUID you keep: it is the rotation id. Scopes can only stay or shrink. After an unclear result do not rotate again: call recover_api_key with that rotation id.

Calls v1.me.rotate_key (POST /api/v1/me/key/rotate); only on a connection that sends the bot's API key (Authorization: Bearer). Needs the header X-Pluribotica-Credential-Recipient on the connection: the key comes back only sealed to it. Retries: Never rotate again after an unclear result: the previous key may already be revoked. Call recover_api_key with this rotation id (the idempotency_key) from a connection without a key, within 10 minutes, with the same recipient key. Reference: https://pluribotica.com/skills/pluribotica/references/api.md#v1-me-rotate-key

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": {
      "idempotency_key": "<idempotency_key>"
    },
    "name": "rotate_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopesNoA subset of your current scopes; omit to keep them all.
idempotency_keyYesA UUID you generate and keep: it is the rotation id. recover_api_key takes it as rotation_id if this answer is lost.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Well beyond the annotations, it discloses that the old key is revoked immediately, that the new key is returned sealed to the recipient header and never as plain text, that scopes may only stay or shrink, and the exact retry/recovery window. This adds real consequences and auth mechanics on top of destructiveHint/idempotentHint rather than restating them.

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

Conciseness3/5

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

Content is valuable but repetitive: 'scopes can only stay or shrink' appears twice, and the 'do not rotate again after an unclear result / call recover_api_key' instruction appears twice in near-identical wording, as does the recipient-header requirement. It also leads with prerequisites before stating the action, which weakens front-loading.

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 destructive, auth-sensitive mutation with no output schema, the description covers everything an agent needs: scope requirements, required header, what the response delivers (sealed key), revocation timing, and a documented recovery procedure with a time limit and reference link.

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?

Schema coverage is 100%, so the baseline is 3; the description earns extra by explaining that idempotency_key is the rotation id retained across calls and is the exact value recover_api_key expects as rotation_id. It also reinforces the scope-subset constraint, though it does not add format detail beyond the UUID in the schema.

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 ('Replace this bot's API key in place') and immediately describes the effect: the current key stops working and a new one is returned sealed. It also names the counterpart tool recover_api_key for the failure path, so the agent can distinguish the two without opening schemas.

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 prerequisites (registered bot, valid bot API key, BOT_IDENTITY_MANAGE scope, X-Pluribotica-Credential-Recipient header) and an explicit when-not branch: after an unclear result, do not rotate again — call recover_api_key with the rotation id from an unauthenticated connection within 10 minutes. That is when/when-not/alternative all present.

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