Skip to main content
Glama

create_pricing_tier

Create a pricing tier. credits must be a positive integer; price (USD) must be 0 or at least 0.50, and at most $1.00 per credit. credit_type_ids lists the credit types a tier can be bought for; [] means every active credit type. Omit credit_type_ids for all types; malformed or foreign ids are rejected. Costs 1 CRD (platform credit) per call, charged even when the call is then rejected (a 429 RATE_LIMITED costs nothing). Error results include request_id; quote it to support.

Input Schema

NameRequiredDescriptionDefault
nameYesTier name
priceYesPrice in dollars
api_keyNoCred API key (optional if set via the x-api-key header)
creditsYesCredits granted per purchase
currencyNoCurrency code (default USD)
is_popularNoHighlight as popular
project_idNoCred project ID (optional; the API key already identifies the project)
descriptionNoTier description
billing_typeNoWhich checkouts may sell the tier. A subscription is created only when checkout is sent billing: "recurring"; recurring-only tiers cannot be used for saved-card charges or auto top-up. Default one_time.
x402_paymentNoBase64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD
credit_type_idsNoCredit type UUIDs; omit or [] = all

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the 1 CRD charge per call, that the charge applies even to rejected calls, that a 429 RATE_LIMITED is free, and that errors return a request_id to quote to support. It stops short of describing the successful response body and does not state idempotency or retry behavior.

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?

Front-loaded with the action, then value constraints, then cross-cutting cost and error behavior. Every sentence contributes a fact an agent would otherwise have to discover by failing a call; there is no 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 an 11-parameter mutation with no annotations and no output schema, this covers the high-risk unknowns (cost, error shape, id semantics). The gap is the success response: with no output schema, the description should say what a created tier returns so the agent knows what to do with the result.

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 100%, so the baseline is 3, but the description adds genuine meaning the schema lacks: the price band (0 or 0.50–1.00 per credit, which is not expressible in the schema), the equivalence of omitting credit_type_ids and passing [], and the rejection of malformed or foreign ids.

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 pricing tier'. Combined with the name, an agent can distinguish it cleanly from delete_pricing_tier, update_pricing_tier, and list_pricing_tiers without opening a 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 by the domain (creating a sellable credit tier). There is no explicit statement of when to use this versus update_pricing_tier or when a tier is the right model, and no stated prerequisites beyond the value constraints.

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