Skip to main content
Glama

WhichPortal

Best stacked deal

best_deal
Read-onlyIdempotent

Stack the best verified sale, promo code and portal reward for a basket at a merchant, and show the final cost.

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": {
      "merchant": "<merchant>",
      "basket_value": "<basket_value>"
    },
    "name": "best_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryNoMarket to compare: "US" (default, USD) or "UK" (GBP, points per £1)
merchantYesMerchant name or slug
basket_valueYesBasket value before discounts (USD for US, GBP for UK)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint), so the description only needs to add context beyond that. It does add that the computation combines three distinct discount sources and reports a final cost, but it says nothing about freshness of the underlying deals, what happens when no verified deal exists, or whether the result is a single number versus a breakdown.

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?

A single front-loaded sentence states the action, the three inputs it reconciles, and the output, with no filler. It is tight enough that no sentence needs cutting, though the terseness leaves a couple of terms ("verified") unexplained.

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?

With a three-parameter, fully documented schema and annotations that settle the safety profile, the main remaining gap is what the tool returns, since there is no output schema. "Show the final cost" hints at the result but does not clarify whether the stacked components are itemized or whether failure/no-deal cases are represented.

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%, including the country enum semantics ("USD" vs "GBP, points per £1") and the pre-discount meaning of basket_value, so the schema carries the parameter burden. The description only echoes "basket at a merchant" and adds no currency or formatting detail beyond what is already structured, which is the expected baseline of 3.

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 description names a specific verb ("Stack") and a concrete output ("the best verified sale, promo code and portal reward ... final cost"), so an agent knows this is a deal-optimization computation rather than a listing lookup. It does not explicitly contrast itself with plausible siblings such as best_portal or compare_portals, so differentiation is inferred from the wording rather than stated.

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 only implied: the agent can infer this is the tool for pricing a concrete basket at one merchant, as opposed to browsing deals across merchants. There is no explicit when-to-use, when-not-to-use, or named alternative for cases like comparing portals or checking live listings.

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.