Skip to main content
Glama
CosmosPay

Cosmos Pay MCP Server

Official
by CosmosPay

Validate a payment

validate_payment
Idempotent

Checks a transaction hash or Solana signature against a payment and settles it if it pays, for cases where the payer sent funds but the payment status has not changed.

Instructions

Check a transaction against a payment and settle it if it pays it. Use it when the payer sent the payment but its status has not changed: pass the transaction hash (or Solana signature) the payer has.

Input Schema

NameRequiredDescriptionDefault
idYesThe payment id, as create_payment_link or list_payments returned it.
tx_hashYesThe transaction to check, in its chain’s form: a Stellar hash, a Solana signature or a Monad 0x hash.

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?

The annotations already declare that this is not read-only, is idempotent, is open-world, and is not destructive. The description adds the important conditional mutation detail that it settles the payment only if the transaction pays it, which is meaningful context beyond the annotations, though it does not describe error behavior or authorization needs.

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, front-loaded with the core action and then the usage condition. There is no wasted framing, and the key settlement behavior is stated immediately.

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?

The description covers what the tool does and when to use it, but for a mutation tool with no output schema it does not explain what happens when the transaction does not pay the payment, nor what result or error the caller should expect. That leaves a meaningful gap for correct invocation.

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 both required parameters are already well documented in the schema. The description mentions the transaction hash/signature but does not add meaning for the id parameter, so the baseline of 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 and resource: check a transaction against a payment and settle it if it pays it. It is clearly a settlement/verification action, though it does not explicitly contrast itself with nearby read-only siblings such as get_payment or get_payment_history.

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?

It states a clear triggering condition: use it when the payer sent the payment but its status has not changed. It also tells the caller what to pass, but does not name when not to use it or which sibling to use for status checks instead.

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