Skip to main content
Glama

Confita

Save a listing

save_listing
DestructiveIdempotent

For shop owners: create a listing, or change one named by listing at its revision. Send only what changes; text merges by language. options, a group's choices and questions are whole lists, each entry kept by its id or name, so one left out is removed. A new listing is a draft until status: "active". Sizes are a group with sizes: true, each choice with its own price. It does not delete a listing: delete_item does. Returns the listing as get_listing shows it.

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": {
      "request_id": "<request_id>"
    },
    "name": "save_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe listing's name, with its unit when it is sold by one, such as "Sourdough loaf" or "Cookies (dozen)". Required for a new listing.
soldNoalways: any day with notice. windowed: only in drops (save_drop).
tagsNoShort lower-case words. The whole list.
priceNoThe price for one unit as the listing names it; put the unit in the name or a size (Dozen, Box of 6). With sizes, each size has its own and this is ignored.
quoteNoPriced per order by quote: no price.
stockNoHow many are left to sell now, in all (always only). 0: sold out. null: not counted.
imagesNoThe whole list of image ids from add_media, the cover first.
statusNodraft: not on the site, which a new listing is until you send active. active: on the site. archived: off the shop, kept for its orders.
depositNoWhat an order pays up front: { "percent": 50 } or { "amount": {...} }. null: none.
listingNoThe listing to change, by name or id; left out, a new one is created.
max_qtyNoMost an order takes. null: no limit.
min_qtyNoLeast an order takes.
on_menuNowindowed: false shows it only while a drop of it is open.
optionsNoThe whole list of option groups (sizes, flavors, extras). Left out: they stay as they are.
categoryNoA category by name, in the shop's main language. A name the shop does not have yet adds it. null: no category.
featuredNoMarked as a best seller.
revisionNoRequired with `listing`: its `revision` as last read.
questionsNoThe whole list of questions a buyer answers. Left out: they stay as they are.
order_modeNonull inherits: the drop's, then the listing's, then the shop's.
request_idYesUnique per call; the same id again returns the first result.
cutoff_timeNoHH:mm: orders for a day close at this time on the last day of notice (always only).
daily_limitNoMost it sells a day (always only). null: no limit.
descriptionNonull clears it.
notice_daysNoDays of notice it needs (always only). null: the shop's default.

Output Schema

NameRequiredDescriptionDefault
nextNo
errorNo
choicesNo
createdNo
listingNo
outcomeNo
timezoneNo
confirmationNo

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 destructiveHint and idempotentHint, and the description adds real substance on top: it pinpoints what destruction means here (whole-list replacement silently drops entries not re-sent), states the lifecycle rule that a new listing stays a draft until `status: "active"`, and bounds the destructive scope by deferring deletion to delete_item. That is exactly the context an agent needs before a high-blast-radius call.

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?

Purpose comes first, then mutation semantics, then the lifecycle rule, then the boundary with delete_item and return shape — a sensible order with no filler sentences. The telegraphic, semicolon-heavy phrasing is dense for a 24-parameter tool and takes a second read, which keeps it just below top marks.

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 24-parameter mutating tool this covers the essentials: create vs update path, merge and replacement semantics, default draft status, sizes modelling, and the return value ('as get_listing shows it'). An output schema exists, so the description does not need to enumerate returned fields, and it doesn't waste effort doing so.

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?

With 100% schema coverage the baseline is 3, and this goes beyond it by explaining cross-parameter behaviour the schema cannot: 'send only what changes', text merging by language, and the whole-list replacement rule for `options`, `choices` and `questions` where a left-out entry is removed. The sizes-group rule (each choice carries its own `price`, base price ignored) is a genuinely useful clarification of an interaction between `price`, `options` and `sizes`.

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 pair (create or change), the resource (a listing, identified by `listing` + `revision`), and explicitly disclaims the neighbouring operation by naming delete_item. An agent can distinguish this from delete_item and get_listing without opening any schema.

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?

Names the audience ('for shop owners'), the create-vs-update trigger (omit `listing` to create, supply it plus `revision` to change), and one explicit exclusion (deletion belongs to delete_item). It does not address how this relates to save_drop for drop-specific configuration, but the supplied siblings suggest that is a separate concern rather than a gap in this description.

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