Skip to main content
Glama

capped_refund_guard

Issue customer refunds capped at a verified financial ceiling and restricted to allowlisted payment routes, with each call recorded in a jailed audit journal.

Instructions

Issue bounded customer refunds with host-pinned Z3 financial ceiling, Stripe form-encoded route allowlist, and jailed audit journal

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": {
      "order_id": "<order_id>",
      "amount_cents": "<amount_cents>"
    },
    "name": "capped_refund_guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYes
amount_centsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose real behavior: refunds are capped by a solver-checked financial ceiling, restricted to an allowlisted Stripe route, and written to an audit journal. However, it omits auth/permission requirements, what happens when the ceiling is breached (rejection vs. clamping), and whether a refund can be reversed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with the action first, which is good structure. But the three-item jargon tail ('host-pinned Z3', 'form-encoded route allowlist', 'jailed audit journal') consumes most of the length without helping an agent decide or invoke correctly.

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

Completeness2/5

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

For a financial mutation tool with no annotations, no output schema, and 0% schema coverage, the description is thin: it says nothing about the response, error behavior on ceiling breach, or required permissions. An agent could form a rough call but not predict the outcome.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain both parameters, but it only obliquely gestures at amount_cents via 'bounded ... financial ceiling.' It never clarifies that order_id identifies the refund target, what unit/currency amount_cents uses, or that the ceiling applies to that value.

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 opens with a specific verb+resource: 'Issue bounded customer refunds,' which an agent can immediately map to a refund action. The trailing clause ('host-pinned Z3 financial ceiling, Stripe form-encoded route allowlist, jailed audit journal') is implementation jargon that muddies rather than sharpens the purpose, and no sibling is named for differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives such as quant_order_guard or allowlisted_webhook_sender, and no stated prerequisites or exclusions. The word 'bounded' hints at a precondition (a ceiling) but never says when the tool should be chosen or avoided.

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