Skip to main content
Glama

grabmart_products

Read-only

List a page of one GrabMart city's product directory: returns each product's item id, merchant id and page URL from GrabMart's public sitemap, with the shard index validated against the shard count GrabMart publishes. Accepts page, page_size and shard; country and city are required.

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>",
      "city": "<city>"
    },
    "name": "grabmart_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesRequired. City slug from /grabmart/cities.
pageNoOptional. 1-based page within the chunk, 1-100000, default 1.
shardNoOptional. 1-based item sitemap chunk (items-N.xml). Validated against the count GrabMart publishes for this city; default 1. See total_shards in the response.
countryYesRequired. GrabMart market code from /grabmart/locales.
page_sizeNoOptional. Entries per page, 1-500, default 100.

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. Changed1 schema field changed
    • changedInput schema / properties / page / description
      Previous value: -"Optional. 1-based page within the chunk, default 1."New value: +"Optional. 1-based page within the chunk, 1-100000, default 1."
  2. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real context beyond them: data originates from GrabMart's public sitemap, shard values are validated against a published count, and the response carries total_shards. It does not address pagination limits or failure behavior for out-of-range shards.

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 dense sentences that front-load the core action and return shape before the parameter recap. The final clause listing parameters duplicates the schema and is the only real waste.

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?

An output schema exists and the description still names the key returned fields and references total_shards, so an agent knows what comes back. For a read-only paginated listing with full schema coverage, the only gap is guidance on error cases when shard exceeds the published count.

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 all five parameters are already documented in structured fields with ranges and defaults. The description's closing sentence ('Accepts page, page_size and shard; country and city are required') mostly restates the schema rather than adding new meaning, so baseline 3 applies.

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?

States a specific verb and resource — 'List a page of one GrabMart city's product directory' — plus the exact fields returned (item id, merchant id, page URL) and the sitemap source. This clearly separates it from merchant/shop-level siblings, though it never names an alternative tool explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives useful prerequisites: country comes from /grabmart/locales and city from /grabmart/cities, and notes shard is validated against a published count. It does not say when to prefer this over related catalog tools or what happens when a city has no products.

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.