Skip to main content
Glama

StackTheDeal Deals

Search live deals

search_deals
Read-onlyIdempotent

Search StackTheDeal's live deals by keyword(s) — matched against deal titles, summaries, store and category. Use for questions like 'find me a deal on a coffee maker' or 'any LEGO deals?'. Optional filters narrow the matches: store (exact name), category, max_price (dollars), min_discount_pct. Sorting: pass sort — 'price_asc' returns the cheapest matches first (use it when the user asks for the cheapest), 'price_desc' priciest first, 'discount_desc' biggest percent off first; the default is 'relevance'. Results are StackTheDeal's verified site deals; each result links to its deal's page on stackthedeal.com only (results link to our pages only — the retailer's link lives on that page). Travel searches (flights, hotels, car rentals, airport transfers, eSIMs, tours) also return travel_partners: the booking partners StackTheDeal is connected to, grouped by vertical and linked to the matching section of stackthedeal.com/travel/ — surface those when the user wants to actually book, not just browse deals.

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

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).
queryYesSearch words, e.g. 'air fryer' or 'LEGO'.
storeNoOptional: only deals at this store (exact name, e.g. Amazon).
offsetNoPagination: skip this many matches (use the next_offset from the previous result to page further).
categoryNoOptional: only deals in this category, e.g. electronics, home, travel.
max_priceNoOptional: only deals priced at or under this many dollars.
min_discount_pctNoOptional: only deals at least this percent off (0-100).

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. Changed6 schema fields changed
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "Optional: only deals in this category, e.g. electronics, home, travel.",
      +  "type": "string"
      +}
    • addedInput schema / properties / max_price
      Added value: +{
      +  "description": "Optional: only deals priced at or under this many dollars.",
      +  "type": "number"
      +}
    • addedInput schema / properties / min_discount_pct
      Added value: +{
      +  "description": "Optional: only deals at least this percent off (0-100).",
      +  "type": "number"
      +}
    • 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"
      +}
    • addedInput schema / properties / store
      Added value: +{
      +  "description": "Optional: only deals at this store (exact name, e.g. Amazon).",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "deals": {
      +      "type": "array"
      +    },
      +    "next_offset": {
      +      "type": "number"
      +    },
      +    "total_matching": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the bar is lower; the description still adds real value by disclosing that results link only to stackthedeal.com pages (retailer link is one hop away) and that travel queries include an extra travel_partners section. It does not describe pagination or empty-result behavior, though the schema covers offset/next_offset.

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?

Front-loaded with purpose, then filters, then sorting, then return semantics — a sensible order. It is on the long side and the sort enumeration largely duplicates the schema's enum description, which is the main candidate for trimming.

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

Completeness5/5

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

With an output schema present and 100% parameter coverage, the description need not enumerate return fields, and it wisely spends its words on the non-obvious parts: link destinations and travel_partners behavior. An agent has everything needed to select and call it correctly.

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 the schema already documents all eight parameters, including the sort enum and its intent cues. The description restates the sort options and filter meanings (store exact name, max_price in dollars) without adding format or edge-case detail beyond the schema. Baseline 3 applies where the schema does the heavy lifting.

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 ('Search StackTheDeal's live deals') and specifies the match fields (titles, summaries, store, category). The opening line plus example queries makes it immediately distinguishable from catalog-style siblings like list_deals or get_hot_deals.

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 concrete usage cues ('find me a deal on a coffee maker', 'any LEGO deals?') and ties the sort parameter to user intent ('use it when the user asks for the cheapest'). It also says when to surface travel_partners ('when the user wants to actually book, not just browse'). What it lacks is explicit routing against siblings such as get_travel_deals or list_deals_by_store.

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.