Skip to main content
Glama

Merchant groups

find_groups
Read-only

Merchant groups, and one group's members

The merchant groups group takes (in the merchant query, breakdown, compare_to_benchmark, cross_shop, wallet_migration, cohort_overlap) and group_a / group_b take in compare_brands. Without group, lists every public group, then the caller's own (owned: true), with its slug, name, type and how many merchants it lists; q narrows by a word in the name or slug. With group, returns that group's members by name, up to limit. A slug names the caller's own group first, then a public one. Costs the same as a merchant search.

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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoA word in the group's name or slug, such as `ai` or `grocery`.
groupNoA group's slug or UUID, to list its members.
limitNoMembers to return with `group` (1–200, default 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, non-destructive and closed-world, and the description goes further by disclosing returned fields (slug, name, type, merchant count), the visibility rule (public groups plus the caller's own marked `owned: true`), slug resolution order, and cost. That is meaningful behavior beyond the structured fields.

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?

The two modes and their outputs are front-loaded and the wording is dense but waste-free. The trailing instruction about speaking in plain words to the user is useful for output phrasing but is not about tool selection, and the opening fragment listing consumer tools is slightly awkward.

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 must carry the return shape, and it does for both modes (group fields versus member names). Cost, visibility, precedence and limits are all covered for a three-parameter read-only lookup.

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 would be 3, but the description adds real semantics: `group` acts as a mode switch, `limit` only applies in member-listing mode, and a slug resolves to the caller's own group before a public one — a precedence rule absent from the schema.

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 description names the resource (merchant groups) and splits the tool into two clearly stated modes: listing groups versus listing one group's members. It also names the sibling tools whose `group`/`group_a`/`group_b` parameters consume these values (`breakdown`, `compare_brands`, `cross_shop`, etc.), so an agent can place it in the workflow 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?

Mode selection is explicit and conditional: "Without `group`, lists every public group... With `group`, returns that group's members." It adds the narrowing rule for `q`, the resolution precedence for slugs, and a cost note ("same as a merchant search") that lets an agent decide whether to call it casually.

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.