Skip to main content
Glama

get_nearby_stores

Find nearby stores that carry a specified flyer by postal code to see where its deals are available.

Instructions

Stores near a postal code carrying a given flyer.

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": {
      "flyer_id": "<flyer_id>",
      "postal_code": "<postal_code>"
    },
    "name": "get_nearby_stores"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoen
flyer_idYes
postal_codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the entire burden of behavioral disclosure and falls well short: nothing about result ordering (distance vs. relevance), any radius or result limit, pagination, or what happens when the postal code matches no stores. It also does not mention that the locale parameter changes the language of returned data, which is a behavioral effect an agent would want to know.

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

Conciseness3/5

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

The single sentence is front-loaded with the essential scope and contains no filler, which is good. However, it is a noun-phrase fragment with no verb, and its brevity reflects under-specification rather than disciplined editing given the three undocumented parameters.

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

Completeness2/5

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

For a three-parameter tool with no annotations, no output schema, and zero schema description coverage, the definition leaves major gaps: result ordering, distance/radius behavior, empty-result handling, and the effect of locale are all unstated. It is enough to guess at the call but not enough to use the tool confidently.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description must compensate and does not. It hints that postal_code is a location filter and flyer_id ties results to a flyer, but adds no syntax, format, or semantic detail — notably it never clarifies that locale selects result language (en/fr) or that the postal code pattern accepts both Canadian and US formats.

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 phrase 'stores near a postal code carrying a given flyer' names a specific resource (stores) and the two scoping conditions that determine the result set, so an agent can tell it returns physical store locations rather than flyers, items, or merchants. It lacks an explicit verb and never says whether it is a search or a lookup, but the intent is still unambiguous against siblings like get_flyer_items and list_merchants.

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

Usage Guidelines2/5

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

Nothing states when an agent should choose this over list_merchants or search_items, and no prerequisites or exclusions appear. The only implied usage is 'you have a flyer_id and a postal_code', which is inference from the schema rather than guidance in the definition.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.