Skip to main content
Glama

StackTheDeal Deals

Deals ending soon

get_expiring_deals
Read-onlyIdempotent

Live deals whose end time falls within the next 48 hours (configurable), soonest-ending first, each with hours_left. Use for 'what deals are ending today / about to expire?' questions. Results link to each deal's page on stackthedeal.com only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_expiring_deals"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax deals to return (1-50, default 20).
offsetNoPagination: skip this many matches (use the next_offset from the previous result to page further).
within_hoursNoOnly deals ending within this many hours from now (default 48, max 720).

Output Schema

NameRequiredDescriptionDefault
dealsNo
next_offsetNo
total_matchingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
      +}
  2. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile needs no restating. The description adds genuinely useful behavior beyond that: result ordering, the per-item hours_left value, and the constraint that links only point to stackthedeal.com pages. It says nothing about the 48-hour default boundary edge cases or paging behavior, so it is additive but not rich.

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 sentences, no filler: the scoping and ordering facts lead, and the usage trigger follows. Every clause carries information an agent would otherwise have to infer.

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?

With an output schema present, the description needn't explain return shapes, and it still volunteers ordering and the hours_left field, plus the link-domain restriction. The only mild gap is that it doesn't characterize how the configurable window interacts with the default or how many results a typical window yields, which matters for a time-sensitive feed.

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 every parameter (limit, offset, within_hours) is fully documented in the schema including defaults, ranges, and the next_offset paging pattern. The description only echoes the configurability of the time window and its 48-hour default, so it adds essentially nothing beyond structured fields. Baseline 3 applies.

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 resource (live deals), a precise filter (end time within the next 48 hours, configurable), an ordering (soonest-ending first), and an extra field returned (hours_left). This clearly separates it from siblings like get_hot_deals, get_newest_deals, and list_deals without the agent needing to open 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 trigger with a quoted user question ('what deals are ending today / about to expire?'), which tells the agent exactly which intent maps here. It stops short of naming when to prefer a sibling instead (e.g., get_newest_deals for recency rather than expiry), so it falls one step below full routing guidance.

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.