Skip to main content
Glama

PageHub

Set checkout

set_checkout
DestructiveIdempotent

Make a collection sellable through Stripe (remove: true stops). Cart Buttons in a Data repeater bound to it then charge via Stripe. Without price_id_field each row charges its numeric price field in minor units (2500 = $25.00) — the collection needs that number field; with price_id_field each row holds a Stripe price id. Needs stripe_connect.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
removeNoStop selling; rows stay.
siteIdNoSite id. Pass it on every call.
price_fieldNoRow field with the display price.
price_id_fieldNoRow field holding a Stripe price id. Omit to charge `price`.
variants_fieldNoRow field with a variants array (each with its own priceId).
collection_slugYesCollection to sell.
inventory_fieldNoRow field with stock count.

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?

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds non-redundant context: what remove:true does, that rows persist, the required stripe_connect auth, and the minor-units charging convention.

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?

Dense and front-loaded: the core action leads, followed by the mode-dependent charging rules. Telegraphic style packs real information per sentence, though the parenthetical and em-dash clauses make it slightly harder to parse on first read.

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 mutation tool with no output schema, it covers prerequisites, the destructive/stop path, and the two primary charging modes. Minor gaps remain around variants_field and inventory_field, which are only defined in the schema, but overall it is complete enough to invoke correctly.

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 genuinely adds semantics beyond the schema — the minor-units convention (2500 = $25.00), the requirement that the collection carry that number field, and the either/or relationship between price and price_id_field.

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?

States a specific verb+resource ('Make a collection sellable through Stripe') and clarifies the remove:true inverse, which effectively distinguishes it from siblings like stripe_connect and create_collection. It doesn't explicitly name a sibling to avoid, but the scope is concrete enough to route correctly.

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

Usage Guidelines4/5

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

Gives a clear prerequisite ('Needs stripe_connect') and a concrete decision rule between the two pricing modes (price field in minor units vs. price_id_field). It lacks explicit when-not guidance and doesn't address variants_field/inventory_field, so it stops short of 5.

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