Skip to main content
Glama

apikeys_rotate_api_key

Destructive

Revoke an existing API key and get a replacement. Requires human confirmation. Store the new key immediately and pass it via the X-DataNexus-Key header.

Instructions

⚠️ DESTRUCTIVE — requires human confirmation before use in automated pipelines. Revoke the current API key and issue a replacement. Returns the new key once — store it immediately. Pass keys as the X-DataNexus-Key header.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
current_keyYesExisting active API key (dnx_...) to revoke and replace. Required.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.1.16
    • addedInput schema / properties / current_key / description
      Added value: +"Existing active API key (dnx_...) to revoke and replace. Required."
  2. Addedv2.1.14

TDQS

A4.5/5.0
Behavior5/5

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

Reinforces annotations with clear warning ('DESTRUCTIVE') and adds critical behavior: 'store it immediately' and 'requires human confirmation'. No contradiction with annotations.

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 sentences, front-loaded with critical warning, no wasted words. Every sentence adds value.

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?

Covers the essential: what it does, destructive warning, key storage instruction, and authentication method. Output schema exists, so return value info is adequate.

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% and the single parameter 'current_key' is well-described in the schema. The description adds minimal extra meaning beyond the schema, only noting key format and header.

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?

Description clearly states 'Revoke the current API key and issue a replacement' with specific verb and resource. It distinguishes from sibling tools apikeys_generate_api_key and apikeys_revoke_api_key by combining both actions.

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?

Explicitly warns about destructive nature and need for human confirmation. Mentions passing keys via header. Does not explicitly contrast with alternatives but the context of rotation vs. revoke/generate is implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools