Skip to main content
Glama

SweetAI — On-chain AI Agent Intelligence

Should I pay?

should_i_pay
Read-onlyIdempotent

Pre-payment decision for any A2A payment: "should I pay agent X $N?". Call it before every payment to an unknown agent — the agent-facing equivalent of a credit check: pay $0.01 to avoid paying a scammer $N. Answers with action PAY / CAUTION / SKIP, confidence and expected loss in USDC sized to your exact amount, backed by on-chain ERC-8004 evidence (feedbacks, sybil forensics, liveness SLA). Multichain including Solana. Use agent_interact_gate instead when the question is broader than payment. REST: GET /api/v1/should-i-pay ($0.01).

Args: agent_id: ERC-8004 agent id of the payment TARGET (or use solana_asset) solana_asset: Solana 8004 agent pubkey (alternative to agent_id) amount_usd: the USDC amount you are about to pay

Not investment advice.

Input Schema

NameRequiredDescriptionDefault
agent_idNo
amount_usdNo
solana_assetNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / amount_usd / default
      Previous value: -0.05New value: +0.01
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety bar is met; the description adds material context the annotations cannot convey: a $0.01 call cost, the evidence basis (ERC-8004 feedbacks, sybil forensics, liveness SLA), the multichain scope including Solana, and the REST endpoint. That is a genuine value-add beyond structured fields.

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 decision, cost justification, and routing alternative are front-loaded and the Args list is compact. The "pay $0.01 to avoid paying a scammer $N" framing and the REST line are slightly promotional but still earn their space as cost/endpoint facts.

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 enumerated, yet the description still names the decision enum and the expected-loss framing an agent needs to act. For a 3-parameter, zero-required decision tool, nothing material is missing.

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 description coverage is 0%, so the description carries the full burden, and its Args section does define all three parameters, including that solana_asset is a Solana alternative to agent_id. It stops short of stating mutual exclusivity/fallback behavior given both default to 0/"" and gives no bounds on amount_usd, so it is strong but not complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific decision resource ("pre-payment decision for any A2A payment") with a concrete question form and concrete outputs (PAY / CAUTION / SKIP). It also explicitly distinguishes itself from the nearest sibling, agent_interact_gate, so an agent can route without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit trigger ("Call it before every payment to an unknown agent") and an explicit exclusion with the named alternative ("Use agent_interact_gate instead when the question is broader than payment"). Both when-to-use and when-not-to-use are covered.

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