Skip to main content
Glama

Set Plan Price

set_plan_price
Idempotent

Add or update a recurring price on a plan. A plan can carry several prices (e.g. monthly + yearly); each is identified by its currency + interval, and setting one is idempotent — an existing price for the same currency + interval is replaced, others are preserved. Arguments: key (plan key), amount (>= 0), interval (day | week | month | year), currency (ISO code). currency may be left out when the plan's prices all use one currency — that one is used; otherwise it is the developer's decision, and the tool changes nothing and returns DECISION_NEEDED asking for it. Use remove_plan_price to delete a price. Returns the full plan. Before writing app code that consumes this, call get_integration_guide with topic=billing and the framework the app uses.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNoId of the Bridge app to act on for this call (see list_apps). Omit to use the current app.
keyYesPlan KEY (see list_plans).
amountYesPrice per interval, >= 0. 0 for a free tier.
currencyNoISO currency code. Omit only to use the plan's one existing price currency.
intervalYesBilling recurrence interval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Though annotations already declare idempotentHint=true and destructiveHint=false, the description goes well beyond them: it explains the actual idempotency semantics (same currency+interval is replaced, other prices preserved), the DECISION_NEEDED no-op outcome when currency is ambiguous, and that the tool returns the full plan. This is genuinely load-bearing behavioral context the structured fields do not carry.

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?

Front-loaded with the core action and idempotency model, then arguments, then the sibling pointer, then the guide pointer. Dense and mostly waste-free, though the trailing get_integration_guide sentence is only loosely tied to invoking this tool and the currency rule is restated in both the prose and the argument list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with 5 params and no output schema, the description covers the mutation semantics, the multi-currency decision path, the error-style outcome, deletion routing, and the return value ('Returns the full plan'). Nothing an agent needs to call this correctly is missing.

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 baseline would be 3, but the description adds value beyond the schema for currency: it spells out the multi-currency disambiguation rule and the resulting DECISION_NEEDED behavior, and restates amount>=0 and the interval choices in prose. It slightly duplicates the schema's currency note, which keeps it from a 5.

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+resource ('Add or update a recurring price on a plan') and immediately scopes it against siblings by naming remove_plan_price for deletion and by framing the operation as keyed on currency+interval. An agent can distinguish this from update_plan or set_plan_quota without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ('add or update a recurring price'), the alternative for the opposite operation (remove_plan_price to delete), the condition for omitting currency, and a chained follow-up (call get_integration_guide with topic=billing before writing consuming app code). Nothing is left to inference.

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.