Skip to main content
Glama

Create a key for a customer

create_customer_key
Destructive

Create a key for a customer

Creates a model key for the customer. The secret is in this response only. Calls with it are billed to your balance at our price. At most 50 working keys per customer, and 5,000 new customer keys a day per account: past either, 409 limit_reached.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe customer id.
nameNodefault
allowedModelsNoModels the key may call; null or empty for every model.
idempotencyKeyNoOptional. A unique string so that repeating this call never creates twice.
monthlyLimitUsdNoMonthly cap of this key at our price (what its calls cost you), calendar month; null for none. spendLimitUsd caps the whole customer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Adds behavior the annotations cannot express: the secret appears in this response only, calls made with the key bill to the caller's balance at list price, and there are hard quotas (50 working keys per customer, 5,000 new keys/day per account) that surface as 409 limit_reached. These are exactly the consequences an agent needs before invoking a write tool.

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?

Short and front-loaded: purpose first, then one-time secret, billing, and limits in a single efficient sentence each. The leading line repeats the title almost verbatim, which is the only waste.

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

Completeness5/5

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

No output schema exists, yet the description still tells the agent that the response carries the secret, and it covers cost implications and failure modes for a 5-parameter mutating tool. Nothing essential for a correct first call is missing.

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 80% and the schema already explains id, name, allowedModels, idempotencyKey and monthlyLimitUsd in detail. The description adds nothing parameter-specific beyond the billing framing, so 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 ('Create a key for a customer', 'Creates a model key for the customer') with the scope attached to a customer. It does not distinguish itself from the sibling create_key, so an agent must infer the difference from the parameter set.

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?

Use is implied by the customer-scoped framing, and the quota sentence implies when calls will fail, but there is no explicit statement of when to pick this over create_key or how it relates to revoke_customer_key / set_key_budget.

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.

Resources