Skip to main content
Glama

Create API key

create_api_key

Ask the user which permissions the key needs; never choose for them. Creates a key and returns the secret once. Omit tiers for all. mode "test" mints a upapi_test_ key that answers every operation with a sample, never spends units and cannot use account tools.

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
modeNolive (default) or test
nameYesKey name
tiersNo
organizationIdNoApproved workspace id only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "live (default) or test",
      +  "enum": [
      +    "live",
      +    "test"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only say the tool is a non-destructive, non-idempotent write; the description adds real behavior the schema cannot express: the secret is returned exactly once and cannot be retrieved later, test keys never spend units, answer every call with samples, and are barred from account tools. That is exactly the kind of consequence an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Compact and entirely substantive, with the permission-selection rule front-loaded. The opening clause precedes the statement of what the tool does, and the final test-mode sentence is a dense run-on that slightly buries the sandbox caveats.

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?

Covers the critical facts for a no-output-schema mutation: one-time secret exposure and sandbox key behavior. Minor gaps remain around what tier values are valid and whether organizationId is required in multi-workspace contexts, but nothing an agent would likely get wrong.

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 75%, and the description still adds meaning: the tiers default (omit for all), the semantics of mode "test" including key prefix and restrictions, and the guidance that permission tiers must be user-chosen. Only organizationId is left to the schema's terse "Approved workspace id only."

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: "Creates a key and returns the secret once," and adds scope via the test-mode sentence. It doesn't explicitly distinguish itself from create_user_api or other create_* siblings, so an agent must infer the boundary from names alone.

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 concrete operational guidance — ask the user for permissions rather than choosing for them, omit tiers to grant all, and use mode "test" for a non-billing sandbox key. It stops short of stating when to prefer this over sibling creation tools or when creating a key is inappropriate.

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.