Check Counterparty
check_counterpartyEvaluate a payment recipient before funds are sent by scoring the counterparty and returning an allow, warn, or block policy decision.
Instructions
Check a counterparty before an agent sends funds.
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": {
"destination": "<destination>",
"amount": "<amount>"
},
"name": "check_counterparty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | NEAR, USDC, USDT or a NEP-141 contract id. | NEAR |
| amount | Yes | Amount in token units (not yoctoNEAR). | |
| intent | No | The agent reasoning, user request or tool output that led to this payment. It is scanned for prompt injection. | |
| network | No | testnet or mainnet. | testnet |
| agent_id | No | Stable identifier of the calling agent, used for interaction history. | unknown-agent |
| request_id | No | Optional idempotency key echoed back in the result. | |
| destination | Yes | NEAR account id that would receive the funds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||