Skip to main content
Glama

Set checkout

set_checkout
DestructiveIdempotent

Make a collection sellable through Stripe (remove: true stops): data-cart="add" buttons inside a {% for row in collections.<slug> %} loop charge each row's price (minor units) or its Stripe price id (priceIdField). Needs stripe_connect. Details: get_style_reference({ topic: "integrations" }).

Input Schema

NameRequiredDescriptionDefault
removeNoStop selling; rows stay.
siteIdNoSite id.
priceFieldNoRow field with the display price.
priceIdFieldNoRow field holding a Stripe price id. Omit to charge `price`.
variantsFieldNoRow field with a variants array (each with its own priceId).
collectionSlugYesCollection to sell.
inventoryFieldNoRow field with stock count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / collectionSlug
      Added value: +{
      +  "description": "Collection to sell.",
      +  "maxLength": 128,
      +  "type": "string"
      +}
    • removedInput schema / properties / collection_slug
      Removed value: -{
      -  "description": "Collection to sell.",
      -  "maxLength": 128,
      -  "type": "string"
      -}
    • addedInput schema / properties / inventoryField
      Added value: +{
      +  "description": "Row field with stock count.",
      +  "maxLength": 128,
      +  "type": "string"
      +}
    • removedInput schema / properties / inventory_field
      Removed value: -{
      -  "description": "Row field with stock count.",
      -  "maxLength": 128,
      -  "type": "string"
      -}
    • addedInput schema / properties / priceField
      Added value: +{
      +  "description": "Row field with the display price.",
      +  "maxLength": 128,
      +  "type": "string"
      +}
    • addedInput schema / properties / priceIdField
      Added value: +{
      +  "description": "Row field holding a Stripe price id. Omit to charge `price`.",
      +  "maxLength": 128,
      +  "type": "string"
      +}
    • removedInput schema / properties / price_field
      Removed value: -{
      -  "description": "Row field with the display price.",
      -  "maxLength": 128,
      -  "type": "string"
      -}
    • removedInput schema / properties / price_id_field
      Removed value: -{
      -  "description": "Row field holding a Stripe price id. Omit to charge `price`.",
      -  "maxLength": 128,
      -  "type": "string"
      -}
    • changedInput schema / properties / siteId / description
      Previous value: -"Site id. Pass it on every call."New value: +"Site id."
    • addedInput schema / properties / variantsField
      Added value: +{
      +  "description": "Row field with a variants array (each with its own priceId).",
      +  "maxLength": 128,
      +  "type": "string"
      +}
    • removedInput schema / properties / variants_field
      Removed value: -{
      -  "description": "Row field with a variants array (each with its own priceId).",
      -  "maxLength": 128,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "collection_slug"
      -]New value: +[
      +  "collectionSlug"
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already flag mutation, destructiveness, and idempotency, so the description adds real value by revealing the mechanism: data-cart add buttons inside a for loop charge each row's price or Stripe price id, and remove:true stops selling while rows stay. That tells the agent what the operation touches and that removal is non-destructive to data. It doesn't fully describe what it modifies on the site or whether checkout config elsewhere is affected.

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?

It is front-loaded with the primary purpose and packs the key mechanism into a single dense sentence with useful parentheticals. The density and inline code syntax make it slightly hard to parse, but every clause earns its place.

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 7-parameter destructive mutation with full schema coverage and no output schema, the description supplies the important operational context: prerequisite integration and the markup pattern that makes checkout work. It is sufficient to call the tool correctly, though it could clarify scope (per-site vs global) and what exactly is modified.

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 description coverage is 100%, so the parameters are already well documented. The description mostly repeats what the schema says (price in minor units, priceIdField, remove behavior) rather than adding new meaning. Baseline 3 is appropriate when the schema carries the detail.

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: it makes a collection sellable through Stripe, and notes that remove:true stops the behavior. It also references the prerequisite stripe_connect, which helps distinguish it from generic collection tools, though there is no direct sibling comparison.

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?

It gives a clear context for when to use it (making a collection sellable) and when to undo (remove:true). The prerequisite 'Needs stripe_connect' and the pointer to get_style_reference({ topic: 'integrations' }) for details are concrete usage guidance. There are no explicit exclusions or alternative tools named.

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