Skip to main content
Glama

Create API key

create_api_key

Create an API key for REST and SDK access. The token is returned only in this response and never again: hand it to the caller or store it at once, and treat it as a secret. permission is full_access (default) or sending_access; domain_id restricts a key to one verified domain.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
domain_idNo
permissionNofull_access

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

It discloses a critical behavioral trait not captured by annotations: the token is returned only in this response and never again, so the caller must store it immediately and treat it as a secret. Annotations only say readOnlyHint=false and destructiveHint=false; this security-critical, one-time-reveal warning is exactly the extra context the description should carry.

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?

Three tightly written sentences, front-loaded with what the tool does and immediately followed by the time-sensitive secrecy warning. Every sentence earns its place, with no redundancy.

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 create tool with no output schema, the description covers what is created, the one-time return of the token, the permission options, and the domain restriction, while annotations carry the safety profile. It is nearly complete, with only the required 'name' parameter left implicit.

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 description coverage is 0%, so the description must compensate, and it does for the two non-obvious params: permission is clarified as full_access (default) vs sending_access, and domain_id as restricting a key to one verified domain. Only 'name' is left unexplained, though its meaning is self-evident.

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 and resource ('Create an API key for REST and SDK access'), so the agent immediately understands the operation and its scope. It is clearly distinct from siblings like list_api_keys and revoke_api_key, but it does not explicitly differentiate itself from the nearby create_mailbox_agent_key, leaving sibling disambiguation implicit.

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

Usage Guidelines3/5

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

The description frames the key as being for 'REST and SDK access' and explains the permission modes, which implies when it is relevant. However, it offers no explicit when-to-use versus when-not-to-use guidance and does not point to alternatives such as revoke_api_key or the mailbox-key tool, leaving usage largely inferred.

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.