Skip to main content
Glama

grabmart_category

Read-only

List the shops GrabMart shows for one collection id at a latitude/longitude: names, cuisines, halal flag, images and sibling branches, with GrabMart's own total count. The listing is the first page only — it takes no paging parameters.

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>",
      "category_id": "<category_id>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "grabmart_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
langYesRequired. Storefront language from /grabmart/locales.
countryYesRequired. GrabMart market code from /grabmart/locales.
latitudeYesRequired. Delivery latitude, e.g. 1.2919174. The listing is resolved for this location. Not 0,0.
longitudeYesRequired. Delivery longitude, e.g. 103.7923597. Not 0,0.
category_idYesRequired. Collection shortcut id from GET /grabmart/categories (e.g. 6798 Groceries, 23911 Electronics and IT). Department ids (SGITEDP...) are a different id space and answer not_found.

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. Changed2 schema fields changed
    • changedInput schema / properties / latitude / description
      Previous value: -"Required. Delivery latitude, e.g. 1.2919174. The listing is resolved for this location."New value: +"Required. Delivery latitude, e.g. 1.2919174. The listing is resolved for this location. Not 0,0."
    • changedInput schema / properties / longitude / description
      Previous value: -"Required. Delivery longitude, e.g. 103.7923597."New value: +"Required. Delivery longitude, e.g. 103.7923597. Not 0,0."
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint=false, so the safety profile is covered; the description goes further by disclosing the pagination limitation (first page only, no paging params) and that the total count is GrabMart's own rather than the returned-item count. That pagination/total mismatch warning is exactly the kind of behavior an agent cannot get from the annotations, though it does not discuss rate limits, auth, or error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly written sentences, front-loaded with the core action and scope, then the pagination caveat. No filler or repetition.

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 salient return fields plus the total-count caveat, so return semantics are adequately covered for a five-param read tool. The remaining gap is routing: nothing tells the agent when to prefer this over shop search or category listing siblings.

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%, and the schema already covers the subtleties: locale/country sourcing, non-zero lat/long with examples, and the category_id vs department-id id-space trap. The description only restates 'one collection id' and 'latitude/longitude', adding no syntax or format detail beyond the schema, so the 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?

The description states a specific verb and resource ("List the shops GrabMart shows for one collection id at a latitude/longitude") and even enumerates returned fields, so the agent knows exactly what the call produces. It stops short of naming a sibling such as grabmart_shops or grabmart_categories to contrast with, so differentiation is inferred from the collection-id scoping rather than stated.

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?

Usage is implied by the scoping clause: this tool is for browsing shops within one collection at a delivery location. The 'first page only — no paging parameters' note is a useful constraint, but there is no explicit when-to-use/when-not guidance and no alternative named for related needs like shop search or drilling into a merchant.

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.