Skip to main content
Glama

Create API key

create_key

Issues an API key and returns it in plaintext once; only its hash is stored. Specify read, write, or admin scope and live or test mode, limited to the calling key's permissions.

Instructions

Create an API key and return it in plaintext (api_key) once; only its hash is stored, so hand it to the user right away. scope: read (only GET), write (also changes webinars, registrants, live tools) or admin (also keys, webhooks, account settings, approving follow-ups). Default scope and mode: the ones of the key making this call; a key never creates a key above its own scope (insufficient_scope) and only a live key creates a live key. Example: {"label": "Reporting bot", "scope": "read"}.

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": "create_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNolive or test; default the mode of the calling key
labelNoName for the key, e.g. "Zapier" or "Reporting bot"
scopeNoread, write or admin; default the scope of the calling key, never higher
dry_runNotrue: validate and show what would happen without changing anything
idempotency_keyNoAny unique string; retrying with the same key and arguments within 24 h returns the first answer instead of doing it twice

Output Schema

NameRequiredDescriptionDefault
dataNo
resultYes
statusNo
changesNo
dry_runNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does well on the big items: one-time plaintext return, hash-only storage, the insufficient_scope failure, and the live/test lineage rule. It does not cover rate limits, what happens to the key on retry beyond the schema's idempotency note, or what the plaintext response contains beyond api_key.

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?

Front-loaded with the one-time-secret warning, then scope semantics, then defaults/constraints, then a concrete example. Every sentence carries non-redundant information and the whole thing stays compact despite covering four distinct behavioral facts.

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?

An output schema exists so return shape need not be described, yet the description still flags the critical api_key field and the one-shot nature of it. Combined with scope escalation and live/test rules, an agent has what it needs; only edge cases (dry_run interaction, error surface beyond insufficient_scope) are left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema by expanding each scope value into the concrete resource groups it unlocks (GET-only, webinars/registrants/live tools, keys/webhooks/account settings/follow-up approval). The example call and the 'never higher than the calling key' default rule further clarify scope and mode behavior.

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+resource ('Create an API key') and immediately adds the defining trait of this tool: the plaintext secret is returned exactly once while only a hash is persisted. That detail alone distinguishes it from list_keys and revoke_key without naming them.

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 operating context: scope defaults to the calling key's scope, escalation is refused with insufficient_scope, and only a live key can mint a live key. It stops short of explicit routing language (e.g., 'to view existing keys use list_keys'), so the when-to-use framing is implied by the create/revoke/list split rather than stated.

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