Skip to main content
Glama

Save a merchant group

save_group
Destructive

Create, update or delete one of the user's own merchant groups: a named list of merchants, such as a competitive set or a portfolio, kept on their account for later calls.

A saved group is private to this account. Pass its slug as group to query_spend, breakdown, compare_brands, compare_to_benchmark, cross_shop, wallet_migration or cohort_overlap; find_groups lists it with owned true. action is create, update or delete. create needs name and members; slug defaults to the name's words. update and delete name the group by its slug or id in group; on update, members replaces the whole list. members are brand names or merchant_ids, at most 200. A name that matches several merchants comes back with candidates: ask the user which one, then pass its merchant_id. An account keeps at most 50 groups. Costs 0 credits.

Talk to the user in plain words: no tool, parameter or field names. Say "the American Spend model", never "panel" or a data source.

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": {
      "action": "<action>"
    },
    "name": "save_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe group's name.
slugNoLowercase letters, digits and hyphens. Defaults to the name's words.
groupNoupdate and delete: the group's slug or id.
actionYes
membersNoBrand names or merchant_ids, at most 200.
descriptionNoWhat the group is for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the annotations (destructiveHint=true, openWorldHint=false) by disclosing the concrete destruction semantics — on update, members replaces the whole list — plus account-private scope, the 200-member and 50-group caps, the slug-defaulting rule, and 'Costs 0 credits'. It also flags the ambiguous-name path (candidates returned, ask the user, retry with merchant_id), which is exactly the kind of runtime behavior annotations cannot express.

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 purpose, then scope/privacy, then action mechanics, then limits — a logical progression with almost no filler. The closing paragraph about talking to the user in plain words is a communication-style directive rather than tool-selection information, which makes the definition read as two documents stitched together and slightly dilutes focus.

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 6-parameter mutation tool with no output schema, the description covers everything an agent needs: action semantics, required fields per action, identifier resolution, size limits, quota, cost, and the plural-match recovery path. Nothing material is left to inference.

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 already 83%, yet the description still adds meaning the schema lacks: which parameters each action requires, that slug defaults to the name's words, that group accepts a slug or id for update/delete, that members take brand names or merchant_ids, and what to do when a name is ambiguous. This is real semantic enrichment rather than restatement.

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?

Opens with a specific verb set plus resource and a plain-language definition ('a named list of merchants, such as a competitive set or a portfolio'), then distinguishes itself from find_groups (the lister) and from the query tools that consume the slug. An agent can tell exactly what this tool owns without opening a 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?

Routes the agent explicitly: use this to create/update/delete, use find_groups to list (with owned true as the marker), and pass the resulting slug as group to the seven named query tools. Per-action prerequisites are spelled out (create needs name and members; update/delete key off group), so the when-to-use decision is fully determined.

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.