Skip to main content
Glama

Create API key

apikey_create

Creates another API key for this agent. The key is shown once.

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

Input Schema

NameRequiredDescriptionDefault
labelNoA name for your own reference, e.g. "ci".
expiresAtNoISO 8601 expiry date-time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / label / description
      Added value: +"A name for your own reference, e.g. \"ci\"."
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, so the write/non-idempotent profile is covered. The description adds the single most valuable non-annotated fact: the key is returned once and cannot be retrieved later. It does not mention default expiry behavior or limits, which keeps it from a 5.

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 short sentences, with the action first and the critical one-time-visibility caveat immediately after. Nothing is wasted or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-optional-parameter creation tool the description covers the action and the key-display constraint, but with no output schema it does not say what the response contains (just the secret, or metadata too) or what happens when expiresAt is omitted. Those gaps matter for an agent that must decide whether to persist the returned value.

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%, with both optional parameters (label, expiresAt) fully documented in the schema. The description says nothing about either parameter, so it adds no meaning beyond the schema and 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 and resource ("Creates ... API key") and scopes it to "this agent," which tells an agent what identity the key belongs to. It does not distinguish the operation from siblings like apikey_list or apikey_revoke, so it stops short of 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 guidance on when to create a key versus list or revoke one, no prerequisites (e.g. whether the agent needs existing credentials), and no note on how many keys may exist. The use case is largely inferable from the name, but the description adds none of it.

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.