Skip to main content
Glama

Earnstile

Update customer key

update_key

Change stripe_customer_id, monthly_quota or rate_per_minute of an existing key; the key itself stays the same. Applies to requests received afterwards; recorded usage keeps its original customer. Omitted fields keep their value, null clears stripe_customer_id or monthly_quota.

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": {
      "gateway": "<gateway>",
      "key_id": "<key_id>"
    },
    "name": "update_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
key_idYes
gatewayYes
monthly_quotaNo
rate_per_minuteNo
stripe_customer_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does substantial work: it discloses that the key identity is preserved, that changes are not retroactive to recorded usage, and that omitted vs. null fields have different effects. It still omits permissions/auth requirements, what happens if key_id or gateway does not exist, and any validity constraints on rate_per_minute.

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 front-loaded: the mutable-field list comes first, then the identity guarantee, then the temporal and null semantics. Semicolon-chained clauses are dense but each carries distinct information; no filler sentences.

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 mutation tool with no annotations and no output schema, the description covers the field-level semantics and side effects well but leaves out qualification requirements, error behavior for invalid key_id/gateway, and the meaning of the gateway parameter in an update context. Adequate, but an agent could still call it incorrectly on edge cases.

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 0% for 5 parameters, so the description must compensate, and it does for three of them — naming stripe_customer_id, monthly_quota and rate_per_minute and, critically, explaining that null clears the two nullable fields while omitted fields are preserved. key_id and gateway are left entirely to the schema, which is the main gap.

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?

States a specific verb ('Change') plus the exact mutable fields and the resource ('an existing key'), and immediately disambiguates from create/revoke siblings by noting the key itself stays the same. An agent can tell this is an in-place mutation of an existing key without opening the schema.

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?

Usage is only implied: 'of an existing key' hints the key must already exist, and the sibling set (create_key, revoke_key) makes the alternative obvious, but the description never explicitly says when to choose this tool over recreating a key. The temporal clause ('applies to requests received afterwards') is behavioral context rather than selection guidance.

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