Skip to main content
Glama

Rotate API key

rotate_key
Destructive

Replace your API key with a new one, e.g. if you suspect it leaked. Authenticate with your current key; the old key stops working immediately and the new one is shown only once.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rotate_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoYour equipHive API key (eh_...). Optional if you send it as an Authorization: Bearer header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false; the description goes further by spelling out the actual consequences: the old key stops working immediately and the new key is displayed only once. The one-time-display warning is operationally critical information the agent could not infer from annotations or schema.

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 tight sentences: the action and motive first, then the auth requirement and the two consequences. Nothing is redundant with the name or title.

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 destructive credential operation with no output schema, the description covers everything needed: how to authenticate, that the action is immediate and irreversible, and that the new key must be captured on the spot.

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 the sole parameter is already documented. The description adds the meaningful clarification that the key supplied is the *current* key, not the replacement, but gives no format detail beyond the schema's 'eh_...' example.

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 your API key with a new one'), plus the motive ('if you suspect it leaked'). No sibling tool deals with credentials, so the agent can immediately distinguish this from the question/messaging tools.

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

Usage Guidelines4/5

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

Gives a concrete trigger condition (suspected leak) and states the authentication prerequisite ('Authenticate with your current key'). It does not name any alternative or warning about when not to rotate, but no sibling overlaps, so the guidance is clear in context.

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