Skip to main content
Glama

Turn Buy now on or off

configure_buy_now
Idempotent

Show or hide the Buy now button on the store's product cards and product pages. Buy now adds the item and takes the shopper straight to checkout; Add to cart stays either way. It is on by default, so only call this to turn it off (or back on). Applies at once, no publish needed.

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": {
      "site_id": "<site_id>",
      "enabled": "<enabled>"
    },
    "name": "configure_buy_now"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYestrue = product cards and product pages show Buy now (adds the item and goes straight to checkout); false = hide it everywhere, so shoppers use Add to cart. On by default.
site_idYesThe site, from list_sites
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare non-read-only, non-destructive, idempotent, closed-world, so the bar is lower; the description still adds real context by noting the change 'applies at once, no publish needed' and that Add to cart remains available either way. It does not mention permissions or what the response contains, which is a minor gap for a settings mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the effect, then the behavior, then the default-state caveat. Every sentence adds information an agent needs, with no filler or repetition.

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?

This is a simple two-required-parameter toggle with full schema coverage and annotations covering the safety profile, plus no output schema to explain. The description covers effect, timing, default state, and what remains unchanged, so nothing an agent needs in order to call it correctly is missing.

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%, including an explicit meaning for 'enabled' and the note that it is on by default, so the schema does the heavy lifting. The description's default-state cue duplicates rather than extends that, and it says nothing about site_id or user_goal beyond what the schema provides. Baseline 3 applies.

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-plus-resource: showing or hiding the Buy now button on product cards and product pages. It also explains what the feature does ('adds the item and takes the shopper straight to checkout') and distinguishes it from the related Add to cart feature. It stops short of naming or contrasting any sibling configuration tool, so it lands at 4 rather than 5.

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 usage condition and an implicit exclusion: since the setting is on by default, 'only call this to turn it off (or back on).' That prevents needless calls and tells the agent when the tool is warranted. No alternative tool is named for related storefront configuration tasks, so it is not a full 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