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.

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>",
      "credits": "<credits>",
      "price": "<price>"
    },
    "name": "create_pricing_tier"
  }
}

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. Signed in with 1Profile and owning several projects, it picks one)
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. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Cred project ID (optional; the API key already identifies the project)"New value: +"Cred project ID (optional; the API key already identifies the project. Signed in with 1Profile and owning several projects, it picks one)"
  2. First observed

TDQS

A3.7/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 a per-call cost of 1 CRD charged even on rejection, exempts 429 RATE_LIMITED, states that malformed or foreign credit type ids are rejected, and tells the agent to quote request_id to support. It still omits auth/permission requirements and any indication of what a successful call returns.

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?

Three dense sentences, each front-loading a distinct concern: identity and validation, credit-type semantics, and cost/error handling. Minor redundancy with the schema's minimum on credits, but no filler sentences.

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 tool with no annotations and no output schema, the description covers cost, rejection behavior, error reporting, and the parameter semantics that matter most. The notable remaining gap is the absence of any statement about uniqueness constraints or the shape of a successful result.

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 100%, so the baseline is 3, and most of the description's parameter detail (positive credits, [] means all credit types) merely restates schema text. It does add one genuinely new cross-field rule — price must be 0 or between $0.50 and $1.00 per credit — which the flat schema cannot express, keeping this just above baseline but not richly additive.

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+resource ("Create a pricing tier") that is immediately distinguishable from the update/delete/list pricing-tier siblings by verb alone. It does not explicitly name those siblings or state when to create a new tier versus modify an existing one, so it stops short of full differentiation.

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?

Conditional guidance exists for two parameters: use x402_payment only after an x402 PaymentRequired failure, and omit credit_type_ids to cover all active types. There is no guidance on when to use this tool versus update_pricing_tier or the bulk tools, so tool-selection guidance is only implied.

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