Skip to main content
Glama

StackTheDeal Deals

Live deals at one store

list_deals_by_store
Read-onlyIdempotent

All live deals at one store, exact name match — e.g. 'Amazon', 'Walmart', 'Costco', 'B&H'. Use for 'what deals does Walmart have?' questions. An optional sort orders them: 'price_asc' cheapest first, 'price_desc' priciest first, 'discount_desc' biggest percent off first. Results link to each deal's page on stackthedeal.com only.

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": {
      "store": "<store>"
    },
    "name": "list_deals_by_store"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSort order: "relevance" (default — best match / catalog order), "price_asc" (cheapest first — use when the user asks for the cheapest), "price_desc" (priciest first), "discount_desc" (biggest percent off first).
limitNoMax deals to return (1-50, default 20).
storeYesStore name, e.g. Amazon, Walmart, Costco.
offsetNoPagination: skip this many matches (use the next_offset from the previous result to page further).

Output Schema

NameRequiredDescriptionDefault
dealsNo
next_offsetNo
total_matchingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / sort
      Added value: +{
      +  "description": "Sort order: \"relevance\" (default — best match / catalog order), \"price_asc\" (cheapest first — use when the user asks for the cheapest), \"price_desc\" (priciest first), \"discount_desc\" (biggest percent off first).",
      +  "enum": [
      +    "relevance",
      +    "price_asc",
      +    "price_desc",
      +    "discount_desc"
      +  ],
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Pagination: skip this many matches (use the next_offset from the previous result to page further).",
      +  "type": "integer"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "deals": {
      +      "type": "array"
      +    },
      +    "next_offset": {
      +      "type": "number"
      +    },
      +    "total_matching": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, open-world read, so the description's job is to add operational detail — and it does: 'exact name match' warns that near-miss store names will not resolve, and it discloses that results link only to deal pages on stackthedeal.com. It does not say what happens on an unmatched store name, which is the one behavioral gap.

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?

Three tight sentences, front-loaded with scope and the match rule before the usage example. The sort enumeration is redundant with the schema's enum descriptions, so some words are not earning their place, but the structure is clean and scannable.

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, so return shape needn't be covered, and the description handles scope, matching rule, ordering, and where results link. For a four-parameter read tool this is close to complete; only the empty-result / unmatched-store behavior is left unstated.

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 100%, so the baseline is 3, and the description largely restates what the schema already documents — the sort values are enumerated almost verbatim from the enum description. The one genuine addition is that 'store' requires an exact name match, which the schema's 'Store name, e.g. Amazon, Walmart, Costco' does not state.

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

Purpose5/5

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

States a specific verb and resource ('All live deals at one store') plus the critical scoping constraint 'exact name match', with concrete store-name examples. That single-store exact-match framing is enough for an agent to tell it apart from list_deals or search_deals without opening a schema.

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?

Gives an explicit triggering pattern in the user's own phrasing: "Use for 'what deals does Walmart have?' questions." It clearly establishes when to reach for this tool, but names no alternative or exclusion (e.g. use search_deals when the store name is uncertain or the match is fuzzy).

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.