Skip to main content
Glama

grabmart_merchant

Read-only

Fetch one GrabMart shop's detail and full product catalog: address, coordinates, currency, rating, opening hours, delivery fee and schedule, the basket minimum, and every menu department with its priced items (name, price, availability, barcode, SKU, description, images). Pass the merchant_id and slug that grabmart_shops returns.

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": {
      "country": "<country>",
      "lang": "<lang>",
      "merchant_id": "<merchant_id>",
      "slug": "<slug>"
    },
    "name": "grabmart_merchant"
  }
}

Input Schema

NameRequiredDescriptionDefault
langYesRequired. Storefront language from /grabmart/locales.
slugYesRequired. Merchant page slug from GET /grabmart/shops: letters, digits, hyphen, dot or underscore, starting with a letter or digit, at most 200 characters.
countryYesRequired. GrabMart market code from /grabmart/locales.
latitudeNoOptional. Delivery latitude, validated when supplied. Currently not applied: the merchant page is resolved per country and locale, not per coordinate.
longitudeNoOptional. Delivery longitude, validated when supplied. Currently not applied: the merchant page is resolved per country and locale, not per coordinate.
merchant_idYesRequired. GrabMart merchant id from GET /grabmart/shops, e.g. 4-C22DCJ5EJ6D3KE.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / latitude / description
      Previous value: -"Required. Delivery latitude the catalogue is priced for, e.g. 1.2919174."New value: +"Optional. Delivery latitude, validated when supplied. Currently not applied: the merchant page is resolved per country and locale, not per coordinate."
    • changedInput schema / properties / longitude / description
      Previous value: -"Required. Delivery longitude the catalogue is priced for, e.g. 103.7923597."New value: +"Optional. Delivery longitude, validated when supplied. Currently not applied: the merchant page is resolved per country and locale, not per coordinate."
    • changedInput schema / properties / slug / description
      Previous value: -"Required. Merchant page slug from GET /grabmart/shops."New value: +"Required. Merchant page slug from GET /grabmart/shops: letters, digits, hyphen, dot or underscore, starting with a letter or digit, at most 200 characters."
    • changedInput schema / required
      Previous value: -[
      -  "country",
      -  "lang",
      -  "merchant_id",
      -  "slug",
      -  "latitude",
      -  "longitude"
      -]New value: +[
      +  "country",
      +  "lang",
      +  "merchant_id",
      +  "slug"
      +]
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds content scope but nothing beyond it — no note on response size for large catalogs, pagination, rate limits, or why the call is non-idempotent (the schema hints lat/long are ignored, which the description never mentions). No contradiction with the annotations.

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?

Two sentences, front-loaded with the action and resource, with the prerequisite instruction last. The long parenthetical listing of returned fields is somewhat padded, especially since an output schema already exists, but nothing is confusing or misplaced.

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 an output schema present, the description need not spell out return values, yet it does so anyway plus names the source tool for identifiers, making the call path complete. The remaining gap is situational — no guidance on catalog size or behavior differences versus the near-named `grabmart_shop`.

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 100%, so every parameter, including the unused latitude/longitude caveat, is already documented in structured data. The description's only parameter remark — that merchant_id and slug come from grabmart_shops — duplicates what the schema fields already state, adding no new meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The definition opens with a specific verb and resource ("Fetch one GrabMart shop's detail and full product catalog") and enumerates the returned content, so the agent knows exactly what it gets. It does not, however, distinguish itself from the sibling `grabmart_shop`, whose name suggests a very similar single-merchant lookup, leaving a real ambiguity unaddressed.

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?

"Pass the merchant_id and slug that grabmart_shops returns" gives an explicit prerequisite call and where the identifiers come from, which is genuine workflow guidance. There is no when-not-to-use statement or routing away from `grabmart_shop`/`grabfood_merchant`, so it stops short of full alternative coverage.

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.