Skip to main content
Glama
Magic Lane MCP DevKit Server

Magic Lane MCP DevKit Server

Official
by magiclane

Rename API Key

rename_api_key
DestructiveIdempotent

Change an existing API key’s name within a project, enforcing a 6–64 character unique name; use it only for renaming, not for disabling or deleting keys.

Instructions

Rename an API key of a project, enabled or disabled (name 6–64 characters, unique in the project). Nothing else about a key can be changed here; disabling or deleting keys is only possible in the developer portal. Requires "API keys: Read & write".

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": {
      "projectId": "<projectId>",
      "keyId": "<keyId>",
      "name": "<name>"
    },
    "name": "rename_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAPI key name, 6–64 characters, no line breaks or tabs; unique in the project.
keyIdYesAPI key id, from list_api_keys or create_api_key (the "id" field, not the key itself).
projectIdYesProject id (UUID), from list_projects or create_project.

Output Schema

NameRequiredDescriptionDefault
idYesAPI key id: the keyId of the other tools, not the key itself.
nameYesAPI key name.
tokenNoThe full key: on the local server only, when the call asked to reveal it.
activeNoFalse for a disabled key (single key only).
maskedYesThe last characters of the key.
expiredYesWhether the expiry has passed.
expiresAtYesExpiry, ISO date-time.
tokenSavedToNoAbsolute path the full key was written to: on the local server only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag this as a non-read-only, idempotent, destructive write, so the safety profile is covered. The description adds genuinely new context: the required write permission scope, that the key may be enabled or disabled, and that the rename must yield a name unique within the project. It does not explain why the operation is flagged destructive or what happens to downstream integrations using the old name.

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 with the action and its constraints front-loaded and the operational boundaries and permission requirement packed into the remainder. No filler and nothing redundant with the title.

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 three-parameter mutation with a rich annotation set and an output schema, the description supplies the essential extras: permission scope, name constraints, and where the excluded operations live. Minor gaps remain around the consequences of a rename and whether the old name becomes immediately reusable.

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 schema already documents the 6–64 character name rule, uniqueness, and the id/keyId distinction. The description's "(name 6–64 characters, unique in the project)" only restates what the schema says, adding no new format or edge-case detail.

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 ("Rename an API key of a project"), plus the scope detail that it applies to enabled or disabled keys. The clause "Nothing else about a key can be changed here" cleanly separates it from other key operations an agent might confuse it with.

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 clear when-not guidance: renaming is the only mutation available here, and disabling or deleting must happen in the developer portal. The permission requirement ("API keys: Read & write") is also stated up front. It stops short of naming a specific alternative tool, so it is not a full 5.

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