Skip to main content
Glama

Check Counterparty

check_counterparty

Evaluate 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

NameRequiredDescriptionDefault
tokenNoNEAR, USDC, USDT or a NEP-141 contract id.NEAR
amountYesAmount in token units (not yoctoNEAR).
intentNoThe agent reasoning, user request or tool output that led to this payment. It is scanned for prompt injection.
networkNotestnet or mainnet.testnet
agent_idNoStable identifier of the calling agent, used for interaction history.unknown-agent
request_idNoOptional idempotency key echoed back in the result.
destinationYesNEAR account id that would receive the funds.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden and delivers almost none of it. It does not say whether the result is advisory or blocking, what criteria are evaluated, whether an allow/deny verdict or a risk score is returned, or whether calling it has any side effects (e.g., logging interaction history referenced by agent_id).

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?

A single short sentence with the triggering condition front-loaded; there is no filler or redundancy. Its brevity is efficient rather than padded, though it flirts with under-specification handled in other dimensions.

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

Completeness2/5

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

With seven parameters, an output schema, and a security-sensitive payment context, one sentence is not enough. The agent cannot learn what the check actually verifies, how to interpret the response in a payment decision, or whether a failed check should halt the transfer.

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 the seven parameters, including defaults and the injection-scanning note on intent, are already fully documented. The description adds no parameter meaning beyond the schema, so the baseline of 3 applies.

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

Purpose3/5

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

The sentence names a verb ("check") and a resource ("counterparty") and anchors it to a moment ("before an agent sends funds"), so the intent is broadly graspable. However, "check" is undefined — risk screening, sanctions/blocklist lookup, reputation, or history are all plausible — and nothing distinguishes it from siblings like get_blocklist or report_address.

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 phrase "before an agent sends funds" implies a clear trigger point, which is real usage guidance. But there is no explicit when-not guidance, no mention of how this relates to get_blocklist (which plausibly performs a related screening), and no indication of whether it must always be called or is optional.

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