Skip to main content
Glama

Signed verdict for an action (paid)

kya_check_action
Read-only

Check whether an AI agent may perform a requested action under its mandate and whether its credential is active; get a signed verdict with evaluated rules for dispute evidence.

Instructions

$0.01 (x402, USDC on Base; set KYA_PRIVATE_KEY). May this agent perform this action under its mandate, and is its credential active right now? The issuer answers with a signed verdict that lists every rule it evaluated, usable as evidence in a dispute. For a free, unsigned answer use kya_check_mandate on the mandate from kya_verify.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoWhat the agent wants to do, lowercase (order, pay, quote, sign, ...).
amountNoAmount of this operation.
currencyNoBRL, USDC, ...
spent_todayNoWhat this agent already spent today, if you track it; needed for max_per_day (the issuer keeps no record of acts).
counterpartyNoYour CNPJ, domain or wallet address (the other side of the operation).
credential_idYesThe agent's credential_id (the agent sends it with its request, e.g. in the KYA-Credential header).
payment_networkNoPayment network of this operation: visa, mastercard, elo, pix, ...
payment_ref_sha256NoSHA-256 hex of the payment token reference or PAR used, never a card number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say readOnlyHint and openWorldHint, but the description adds material behavior: the call costs $0.01 via x402/USDC on Base, requires KYA_PRIVATE_KEY to be set, and returns a signed verdict enumerating every evaluated rule that can be used as dispute evidence. None of that is recoverable from the annotations or schema, so the description carries real added value.

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?

Three tight sentences, each doing distinct work: pricing/auth, the decision being made, then the fallback sibling. The only weakness is that the dense parenthetical '$0.01 (x402, USDC on Base; set KYA_PRIVATE_KEY)' puts implementation jargon ahead of the purpose statement, so the tool's job is not the very first thing read.

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

Completeness4/5

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

With 8 parameters, no output schema and no destructive/denial semantics in the annotations, the description does the essential work: it explains the payment barrier, the credential prerequisite, and the shape of the returned verdict. It stops short of explaining failure/denial behavior or error responses, which would be useful for a paid, decision-returning call.

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 coverage is 100%, and each parameter (action, amount, spent_today, counterparty, payment_ref_sha256, etc.) already has a clear schema description, including the note that spent_today is needed for max_per_day because the issuer keeps no record of acts. The prose references actions, mandates and credentials conceptually but adds no syntax, format or constraint detail beyond the schema, so the baseline 3 applies.

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?

The description states a precise verb+resource: decide whether an agent may perform a given action under its mandate and whether its credential is currently active. It also distinguishes itself from the sibling kya_check_mandate by delivering a signed, evidentiary verdict rather than a free unsigned answer, so an agent can route between them 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?

It gives an explicit when-to-use rule ('For a free, unsigned answer use kya_check_mandate on the mandate from kya_verify'), which both names the alternative and states the condition that selects it. The paid nature of this tool is stated up front, which is the key selection criterion against its free sibling.

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