Skip to main content
Glama

Draft price list for orders

enable_orders
DestructiveIdempotent

Use this tool when the user wants a Convika page (ホームページ, ランディングページ, Webサイト) to take orders: a buy button, an order form, or a request such as 「購入ボタンを付けて」「注文フォームにして」「このページで注文を受け付けたい」.

It saves a DRAFT price list for the page, which the seller confirms on the dashboard; it doesn't start orders. It reads the item names and prices the page's saved HTML shows, and each item's image from the page when one sits beside it (imageUrl, else null). It never confirms a price and never turns orders on. The seller finishes on the dashboard, at setupUrl: checks each item, price and image, chooses how buyers pay and how each item is handed over, enters the seller's details, and agrees to the order terms. Show the user setupUrl and the steps in sellerMustFinish, and don't tell the user the page takes orders yet.

What a call changes: the new draft replaces the page's earlier unconfirmed draft, if there is one, and Convika keeps no copy of it; the currency saved for the page's orders becomes the page's. A list the seller confirmed and a page that takes orders stay as they are.

Each item has its own ways of receiving: pickup, delivery, online (a session the seller holds online), visit (the seller goes to the buyer), or digital (a file or link sent by email). A buyer can only order items together that share a way, and the order page states that way's delivery timing and cancellation terms. Pass itemModes with your reading of the page, by each item's name as the page shows it (a consultation on Zoom → online, a PDF or a download → digital); leave an item out when the page doesn't say. They are saved on the draft only, as suggestions the seller checks in setup; nothing is sold until the seller confirms. Each returned item's fulfilmentModes is what is saved for it (null = none yet).

status: "draft_saved" (a new draft from the page), "no_prices_found" (the page shows no price Convika could read; nothing changed, and the seller adds items in setup), "confirmed_list_kept" (the seller already confirmed a list; nothing changed, itemModes included), "already_taking_orders" (nothing changed).

Buy buttons: give the page's buttons or links the attribute data-convika-order (an empty value opens the whole order form) with save_page_content. They lead to the order form once the seller starts orders; until then they stay as written. Sellers can also take card payments by connecting a Stripe account in the order setup on the dashboard (two-step verification required).

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>"
    },
    "name": "enable_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesThe ID of the page to take orders on
itemModesNoYour reading of how each item is handed over, saved on the draft for the seller to check in setup. Leave an item out when the page doesn't say.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • addedInput schema / properties / itemModes
      Added value: +{
      +  "description": "Your reading of how each item is handed over, saved on the draft for the seller to check in setup. Leave an item out when the page doesn't say.",
      +  "items": {
      +    "properties": {
      +      "modes": {
      +        "description": "How the item is handed over: pickup, delivery, online, visit, or digital (one or more)",
      +        "items": {
      +          "enum": [
      +            "pickup",
      +            "delivery",
      +            "online",
      +            "visit",
      +            "digital"
      +          ],
      +          "type": "string"
      +        },
      +        "maxItems": 5,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "name": {
      +        "description": "The item's name as the page shows it",
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "modes"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
  3. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds real substance: the new draft overwrites the earlier unconfirmed draft and Convika keeps no copy, the confirmed list and any live order page are untouched, and currency becomes the page's. It stops short of stating permission or auth requirements beyond the Stripe two-step note, which is the only meaningful gap.

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-loading the trigger condition before the mechanics is effective, and the status-code and buy-button paragraphs are dense but purposeful. It is longer than necessary, however, and the trailing Stripe/two-step-verification note is tangential to invoking this tool, diluting an otherwise tight structure.

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?

With no output schema, the description carries the return burden itself and does so thoroughly: it enumerates every status value and its meaning, describes the returned itemModes/fulfilmentModes (null = none yet), and points to setupUrl and sellerMustFinish. Combined with the mutation semantics, an agent has everything needed to call it and then explain the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description goes well beyond the schema by explaining what itemModes means operationally — mapping page content to modes (a Zoom consultation → online, a PDF → digital), instructing to omit items the page doesn't describe, and clarifying the values are suggestions stored on the draft that the seller checks. The schema only lists the enum values; the description supplies the judgment needed to populate them.

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?

The definition states a specific verb and resource — it saves a draft price list for a page — and immediately scopes it against what it is not: "it doesn't start orders," "never confirms a price and never turns orders on." This lets an agent distinguish it from siblings like get_orders or save_page_content without opening either 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?

It opens with an explicit trigger condition ("Use this tool when the user wants a Convika page to take orders") and gives concrete user phrasings, including Japanese, that map to that condition. It also describes the boundary cases where a call is pointless or partially pointless through the status values (confirmed_list_kept, already_taking_orders), which is when-not-to-expect-change guidance.

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.