Skip to main content
Glama

create_api_key

Create a new client API key for account access, label its purpose, optionally restrict it by IP, and receive the secret token once.

Instructions

Create a new client API key on the account (returns the secret token once).

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": {
      "description": "<description>"
    },
    "name": "create_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
allowed_ipsNoOptional CIDR/IP allowlist (leave empty for any IP)
descriptionYesLabel describing what the API key is for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the important disclosure here is behavioral: the secret token is returned once and cannot be re-read, which is a genuine operational caveat an agent could not derive from structured fields. It stops short of noting permission requirements or whether created keys are immediately active.

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?

A single front-loaded sentence with the one-time-secret caveat in a parenthetical; nothing wasted and nothing buried.

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 two-parameter mutation with no output schema, the description covers purpose and the critical one-time return behavior, which is sufficient to invoke it correctly. The only gap is the absence of any permission or quota context.

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 description coverage is 100%, so both parameters (description label and allowed_ips CIDR allowlist) are already documented in the schema. The description adds no extra meaning about parameter interactions or defaults beyond that, so the 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 ('Create') and resource ('client API key') plus scope ('on the account'), so an agent can distinguish it from delete_api_key and list_api_keys without opening a schema. It does not explicitly name a sibling to route against, which keeps it just below a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no stated prerequisites (e.g., account permission level, whether a key limit exists). The agent must infer that this is the creation counterpart to delete_api_key and list_api_keys purely from the name.

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