Skip to main content
Glama

Create a price

create_price

Create immutable product prices for one-time, subscription, fixed-term, lifetime, credit-pack, and pay-what-you-want models, with options for trials, caps, tiers, and refund terms.

Instructions

Create a price.

Every model: one_time, pay_what_you_want (with a minimum), fixed_term (N days of access), subscription (interval, trial, grace, prepay), lifetime (optional cap and cohort tiers), credit_pack. Amounts are immutable; make a new price to change one.

Body is one of: model = one_time: needs product, model, unit_amount; model = pay_what_you_want: needs product, model, custom_amount; model = fixed_term: needs product, model, unit_amount, term_days; model = subscription: needs product, model, unit_amount, recurring; model = lifetime: needs product, model; model = credit_pack: needs product, model, unit_amount, credits.

Test keys only: refused with a live key.

Input Schema

NameRequiredDescriptionDefault
modelYes
creditsNoCredits one pack holds.
productYesA product id, `prod_…`.
refundsNoRefund terms the buyer accepts at checkout.
currencyNoUSD or EUR. Default: your account's currency.
lifetimeNo
metadataNoYour own key–value pairs (≤ 50 keys, values ≤ 500 characters). On an update they are merged in; an empty value removes its key.
nicknameNo
recurringNo
term_daysNoDays of access one purchase gives.
unit_amountNo
custom_amountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that amounts are immutable and that test keys are refused with a live key, both operationally important. The annotations already cover readOnly=false, idempotent=false, and destructive=false, so the added constraints are meaningful; the only gap is that the created object's return shape is not described.

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?

The description is dense but well organized: the model list is front-loaded and the per-model required-field mapping follows immediately. It is appropriately sized for a 12-parameter nested tool, though there is minor overlap between the model enumeration and the body-requirements paragraph.

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 complex creation tool with nested objects and no output schema, the description supplies the critical conditional requirements, immutability rule, and key restriction. It leaves the response format and some optional-field semantics to the schema, which is acceptable given the schema's documentation.

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 only 50% schema description coverage across 12 parameters, the description carries important weight by mapping each pricing model to its required fields (e.g., fixed_term needs term_days, subscription needs recurring), which the flat schema cannot express. It does not explain optional parameters like refunds, metadata, or nickname details, but those are partially documented in the schema.

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 states a specific verb and resource ('Create a price') and enumerates the six supported pricing models, which is far more than a tautology. It does not explicitly name sibling tools such as update_price or list_prices, so sibling differentiation is only implied by the immutability sentence.

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 implied through the per-model requirements and the note that amounts are immutable, which tells the agent to create a new price rather than modify one. However, it does not explicitly name alternatives like update_price or explain when to prefer this tool over creating a checkout session or subscription.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.