Skip to main content
Glama

create_api_key

Create a new API key for stage or production access to weather data; production keys require accepted terms, active billing, and positive credits.

Instructions

Create a new API key. Production keys require accepted terms, activated billing, and positive credit balance.

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
nameYesDescriptive name for the key (e.g. 'production-bot')
environmentNoKey environment: 'stage' (free, lower limits) or 'production' (uses credits, higher limits). Default: stage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose meaningful preconditions for production keys, which prevents a predictable failure. However, it never says what the call returns (e.g. whether the secret is shown only once), whether the operation is reversible, or what permissions are required — significant omissions for a credential-minting mutation.

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 sentences, zero filler, with the action stated first and the constraint second. Nothing is repeated from the schema and every sentence contributes information an agent needs.

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-parameter mutation with no annotations and no output schema, the description covers the prerequisite chain well but leaves the response contract unstated. An agent still cannot tell whether the returned key material must be captured immediately or whether repeated calls create duplicate keys.

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 'name' and the 'environment' enum are already fully documented with defaults and meanings. The description adds only indirect context by tying production prerequisites to the environment choice, which is useful but not new parameter-level semantics.

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?

The description opens with a specific verb and resource ('Create a new API key'), which is unambiguous and clearly distinct from catalogue operations like list_api_keys or revoke_api_key. It stops short of naming any sibling to reinforce that distinction, but the core action is unmistakable.

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?

It gives concrete eligibility conditions for the higher-tier path ('Production keys require accepted terms, activated billing, and positive credit balance'), which implicitly routes the agent to accept_terms, activate_billing, or purchase_credits before retrying. It does not state when to prefer stage over production beyond the cost/limit trade-off already in the schema, nor does it mention the revoke/list counterparts.

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