Skip to main content
Glama
agent-wallet-advisor

agent-wallet-advisor

by vdelengov

explain_rule

Explains one card's reward rules: category rates, caps, valid dates, point value, fees, unmodeled gaps, and data freshness, so an agent can verify which card earns most before a purchase.

Instructions

Explain one card's reward rules: rates, caps, dates, point value, fee, what isn't modeled, and data freshness.

Args:
    card: Card name, id, or alias (e.g. "Amex Gold").
    stale_after_days: Optional age in days after which card data counts as stale (default 90).
    ending_soon_days: Optional window in days for marking a rule as ending soon (default 30).

`rules` lists every category rule and promotion with valid_from, valid_until and a status:
active, ending_soon, upcoming or expired.

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": {
      "card": "<card>"
    },
    "name": "explain_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardYes
ending_soon_daysNo
stale_after_daysNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses that unmodeled gaps and data freshness are reported, defines the stale and ending-soon thresholds, and enumerates the four status values (active, ending_soon, upcoming, expired) that appear in results. It never states explicitly that the tool is read-only or that it performs no writes.

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?

The core purpose and the return-shape note are front-loaded and earn their place, but the embedded Args block is indented docstring formatting that partly restates schema defaults in prose. It is efficient overall, with a small amount of structural noise.

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?

An output schema exists, so return values need not be spelled out, yet the description still clarifies the shape of the rules array and the meaning of its status field. Combined with full param coverage and freshness/threshold behavior, an agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, and it does: card is described as accepting a name, id, or alias with a concrete example, and both optional integer params are explained with defaults (90 and 30 respectively) and the threshold semantics they control. Only minor edge cases, like format tolerance for aliases, go unaddressed.

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?

"Explain one card's reward rules" gives a specific verb and resource, then enumerates what is covered (rates, caps, dates, point value, fee, unmodeled areas, freshness). That is far more concrete than the bare name, though it never names the siblings best_card or list_cards to delineate the boundary.

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?

The single-card scope implies when to reach for it rather than best_card or list_cards, but that is left to inference. There is no explicit when-to-use statement, no prerequisites, and no stated exclusions or error conditions (e.g. unknown card).

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

Deploy Server

Other Tools