Skip to main content
Glama

Rotate a saved key

rotate_supply_credential
Destructive

Rotate a saved key

Replaces a saved key with a new key of the same vendor (an own server: a new address or key): sealed like the first, its offers move to it, the old one stops serving within a minute, and a health test runs on the new one. The same key again is a 400. Sellers only: an account that has not accepted the selling terms gets 403 not_seller. A key another account lists is 409 key_taken; one of this account's other keys is 409 key_already_added. At most 100 new seller keys a day per account, rotations included: past it, 409 limit_reached.

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": {
      "id": "<id>"
    },
    "name": "rotate_supply_credential"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe key id.
keyNoThe new key, of the same vendor (custom: the new bearer key, optional).
baseUrlNocustom only: the server's base URL (the same or a new one).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 goes well beyond them: offers are migrated to the new key, the old key stops serving within a minute, and a health test runs on the replacement. It also enumerates concrete failure contracts (400 for the same key, 403 not_seller, 409 key_taken / key_already_added / limit_reached) and a daily quota of 100 new seller keys including rotations.

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-loaded with the core action, then side effects, then error codes and quota — a sensible order with no filler sentences. The error-code sequence is dense but each clause carries distinct operational information.

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?

For a destructive, non-idempotent mutation with no output schema, the definition covers side effects, preconditions, conflicts, and rate limits thoroughly. The only gap is the return value — whether the response contains the new key id or masked material — which an agent may need after a 409 or to confirm success.

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 coverage is 100%, so all three parameters are already documented in the schema, including the 'custom only' qualifier on baseUrl. The description adds only the framing that the new key must be of the same vendor and that an own-server credential may take a new address, which mostly restates the schema; 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 and resource ('Replaces a saved key with a new key of the same vendor') and describes the replacement semantics, which implicitly separates it from create_supply_credential. It never names a sibling tool, so an agent must still infer the routing from the operation shape rather than from explicit contrast.

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 description gives strong preconditions ('Sellers only: an account that has not accepted the selling terms gets 403 not_seller') and failure modes, which indirectly signal when the call is valid. However it never states when to rotate versus create a new credential or update an existing one, and no alternative tool is named.

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