Skip to main content
Glama

redeem_reward

Redeem a reward by providing a verified token transfer transaction hash. Creates a voucher for the customer.

Input Schema

NameRequiredDescriptionDefault
reward_idYesUUID of the reward to redeem
customer_addressYesWallet address of the customer who transferred tokens
transaction_hashYesOnchain tx hash of the token transfer from customer to merchant

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the write/no-destroy profile is covered; the description adds that a voucher is created and that the transaction must be verified. It does not disclose what happens if the transaction hash is invalid or already used, whether the call is idempotent, or what permissions are required. Useful but incomplete behavioral context for a mutation.

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 short sentences, no filler, with the required input front-loaded ahead of the side effect. Every clause carries information the agent needs.

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?

There is no output schema, so the agent must infer the return value (presumably a voucher identifier) from 'Creates a voucher for the customer'. Failure modes, idempotency, and post-redemption state are unaddressed. Adequate for a 3-parameter mutation but not complete.

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 all three parameters are already documented in the schema. The description reinforces the meaning of transaction_hash as a verified onchain transfer from customer to merchant, but adds no syntax, format, or validation detail beyond the schema. Baseline 3 applies.

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 gives a specific verb ('Redeem') and resource ('a reward'), and adds the distinguishing mechanism: a verified token transfer transaction hash. This separates it from sibling tools such as use_voucher or update_reward_status, though it does not explicitly name those alternatives. The second sentence clarifies the outcome (voucher creation), making the action unambiguous.

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 description implies the prerequisite of a verified token transfer and indicates the result is a voucher, which hints at when to use it. However, it never states when not to use it, nor does it distinguish this redemption path from related sibling flows like check_voucher_status, use_voucher, or update_reward_status. Usage must be inferred.

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.

Resources