Skip to main content
Glama

Create a customer

create_customer

Create a customer

Creates a customer (201): a group of keys with its own monthly limit, balance record and usage. With an externalRef that already exists, returns that one with 200 instead, so a signup webhook can be retried safely. Its usage is debited directly from your balance at our price, so its keys work without any credit. With billingMode limit, or a spendLimitUsd sent alone, spendLimitUsd caps its monthly usage (PATCH sets it for any customer). initialCreditUsd only records a payment for your books. Amounts are at our price. At most 10,000 customers per account: past it, 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": {
      "name": "<name>"
    },
    "name": "create_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
emailNo
billingModeNoprepaid
externalRefNoYour own id. Creating a customer with an externalRef that already exists returns that one (200) instead of a new one, so a signup webhook can be retried safely.
spendLimitUsdNobillingMode limit only: monthly spending cap at our price. PATCH sets it for any customer.
idempotencyKeyNoOptional. A unique string so that repeating this call never creates twice.
initialCreditUsdNobillingMode prepaid only: a payment to record as the opening balanceUsd. Not needed for its keys to work. 0, or from 0.00000001 to less than 1,000,000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare the generic write profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false); the description adds real behavior — 201 vs. 200 on duplicate externalRef, debit-from-balance pricing, and a hard 10,000-customer cap returning 409 limit_reached. It does not cover authorization/scope requirements or what the response body contains, so it is strong but not complete.

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?

Creation fact is front-loaded and each subsequent sentence carries a distinct fact (idempotency, billing, spend limit, credit, cap). It loses a little to run-on clauses and the repeated "at our price" phrasing, but nothing is filler.

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 7-parameter mutation with no output schema, the description covers creation semantics, idempotent retry behavior, billing implications, and the rate/cap failure mode. The notable remaining gap is that the returned customer object's shape is never described despite there being no output schema to fall back on.

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?

With 57% schema coverage, the description earns its place by clarifying the non-obvious interactions: spendLimitUsd applies "with billingMode limit, or a spendLimitUsd sent alone," initialCreditUsd "only records a payment for your books," and amounts are at the platform's price. name/email/idempotencyKey receive no added meaning, which is acceptable since those are self-evident or already documented in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ("Create a customer (201)") and immediately defines what the resource actually is — "a group of keys with its own monthly limit, balance record and usage" — which distinguishes it from create_key, create_customer_key, and create_gateway without ambiguity.

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 selection conditions: use externalRef-retry semantics for signup webhooks, use billingMode limit or a lone spendLimitUsd for capping, and notes "PATCH sets it for any customer," which implicitly routes post-creation changes to update_customer. It stops short of explicit when-not-to-use guidance or naming siblings outright.

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