Skip to main content
Glama

Turn AI shopping on or off

set_ai_shopping
DestructiveIdempotent

Turns "Let AI assistants shop here" on or off for a site — the OWNER's choice, off by default. Part of Pro: on a Free site turning it on is refused with why. On: the shop joins a public directory AI assistants read (name, address, products on show and prices — never the owner's details) once it can sell (published, Stripe taking orders; get_ai_shopping (area store) missing says what is left), and they may start a checkout a person pays on. Off: out of the directory at once; unpublishing also turns it off. Full reference: get_reference {topic:"shop"}.

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": {
      "siteId": "<siteId>",
      "enabled": "<enabled>"
    },
    "name": "set_ai_shopping"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesSite id (from list_sites)
enabledYestrue to let AI assistants shop here, false to stop

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive, openWorld, idempotent and non-readOnly, but the description adds substantially more: which data becomes publicly visible (name, address, products, prices) and what never is (owner details), that enabling grants checkout-initiation capability, that disabling removes the listing immediately, and that unpublishing implicitly turns it off. These are the behavioral consequences an agent needs before writing.

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 default, then consequences, then a reference pointer — good ordering with no filler. The dense nested-parenthetical phrasing in the middle sentence costs it a point on readability.

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 two-parameter, high-impact toggle with no output schema, the definition covers gating, prerequisites, data exposure, failure messaging, and disable side effects. An agent has everything needed to call it correctly or to route to the diagnostic tool when blocked.

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 adds meaning beyond the field labels by defining concretely what the enabled=true and enabled=false states cause. siteId semantics are left to the schema, which already points to list_sites.

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 and resource — turning "Let AI assistants shop here" on or off for a site — and immediately frames it as an owner-level choice with a documented default (off). An agent can tell this is a site-level feature toggle distinct from settings tools by the explicit scope and the named feature.

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 real decision context: off by default, requires Pro (Free is refused), requires the shop to be sellable (published, Stripe taking orders), and points to get_ai_shopping and get_reference {topic:"shop"} for detail. It lacks an explicit named alternative or 'do not use when...' exclusion, which keeps it just below a 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