Skip to main content
Glama

get_merchant

Read-onlyIdempotent

Get one merchant of a market by its id (from search_deals) with its promotions and their go_path. Merchants in 18+ categories are included and marked age_gate true: the 18+ rule applies to them. Links built from go_path carry the buyer's Hedera account ID and are affiliate links: disclose them, use them for your own or your operator's purchases only, and open them only in the buyer's browser at purchase time.

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": {
      "market": "<market>",
      "merchant_id": "<merchant_id>"
    },
    "name": "get_merchant"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketYes
merchant_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, closed-world safety profile, yet the description still adds real value: 18+ merchants are returned rather than filtered and flagged age_gate=true, and go_path links embed the buyer's Hedera account ID and carry affiliate obligations. It does not say what happens if merchant_id and market are mismatched or invalid.

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?

Three sentences, front-loaded with the purpose before the compliance rules. The affiliate-link sentence is long but each clause (disclose, own purchases only, buyer's browser at purchase time) carries a distinct obligation, so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotation-level detail on returns, the description does the work by naming promotions, go_path, and the age_gate flag. The main residual gap is the unexplained market parameter and absent failure behavior for an unknown or mismatched merchant.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry both parameters. It explains merchant_id well (taken from search_deals) but leaves 'market' entirely undefined — there is no hint that it is a market identifier from list_markets or what form it takes.

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 states a specific verb and resource ('Get one merchant of a market by its id') plus the payload ('with its promotions and their go_path'), and it names search_deals as the source of the id, so an agent can separate it from the search siblings without opening the 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?

It gives concrete call context (obtain merchant_id from search_deals) and explicit handling rules for the returned go_path links. It stops short of stating when not to use it or naming a browsing alternative such as list_markets for enumerating merchants.

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