Skip to main content
Glama

search_items

Find flyer deals by keyword near a Canadian postal code or US ZIP code, with optional locale and result limit for location-specific shopping searches.

Instructions

Search flyer deals by keyword near a postal code (CA A1A1A1 or US ZIP).

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": {
      "query": "<query>",
      "postal_code": "<postal_code>"
    },
    "name": "search_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
localeNoen
postal_codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it delivers little: no statement about result ordering/relevance, search radius, whether results are paginated or truncated, or what happens when the postal code is outside CA/US. Read-only behavior is only inferable from the word 'search'.

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?

One tight sentence with the resource and both required inputs front-loaded; nothing is wasted. It could add a clause of behavioral detail without becoming bloated, but as written it is efficiently structured.

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

Completeness3/5

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

For a four-parameter search with no output schema and no annotations, the definition covers the core invocation but leaves notable gaps: default/max result count, language behavior, and the shape of returned deal objects. Adequate to call correctly, incomplete for predicting results.

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 coverage is 0%, so the description must compensate. It does add real value for two of four parameters by clarifying that query is a keyword match and by spelling out the CA vs US postal-code formats, which the opaque regex does not convey. It says nothing about limit (default 20, max 50) or the en/fr locale parameter.

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?

Specific verb (search), resource (flyer deals), and matching criteria (keyword + proximity to a postal code). It is reasonably distinguishable from siblings like get_item and list_flyers, though it never contrasts itself with them 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?

Usage is implied by the stated inputs – use it when you have a keyword and a location and want matching deals. There is no explicit when-not guidance, no prerequisites, and no routing to alternatives such as get_flyer_items or get_nearby_stores.

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