Skip to main content
Glama

near_agent_gate

Read-onlyIdempotent

Before you pay a NEAR account — will it clear, and is it safe? — The NEAR counterpart of agent-pay-gate. Composes the recipient's account posture (does it exist, is it a contract, control flags) with the NEP-141 transfer preflight into one GO/HOLD/STOP before an agent sends. On NEAR a mistyped account is unrecoverable and a token transfer silently fails unless the recipient has storage_deposit — this catches both ahead of time. Pass token (+amount) for a token transfer, near= for native-amount sizing. Not financial advice. Required input: to. Priced $0.02 per call over x402 on Base; send a prepaid x-credit-token header for unlimited calls, or get 1 free call/day per tool. No wallet or API key required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesNEAR account you are about to pay
nearNoNative NEAR amount (optional, for sizing)
tokenNoNEP-141 token (optional)
amountNoToken amount (optional)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoThe result payload. Shape is service-specific; every field is documented in the tool description.
serviceNoThe service id that answered.
checkedAtNoISO-8601 timestamp of when the underlying reads were taken.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover safety (readOnly, idempotent, non-destructive), and the description goes well beyond them: it explains the two failure modes it catches (unrecoverable mistyped account, silent transfer failure without storage_deposit), plus pricing ($0.02/call over x402 on Base), the prepaid x-credit-token header, the free daily call, and no wallet/API key requirement.

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?

Front-loaded with the decision question and the core mechanic, and most sentences earn their place by carrying behavior or pricing context. It runs long with em-dash asides and the 'Not financial advice' disclaimer, which is marginal filler.

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?

Given an output schema exists, return values need not be spelled out. The description covers purpose, inputs, failure modes, pricing/auth model, and safety profile — nothing an agent needs to invoke it correctly 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 coverage is already 100%, but the description adds real routing semantics: token (+amount) selects a token transfer, while near= is for native-amount sizing. That clarifies the optional parameters beyond their terse schema descriptions.

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 verb and resource (preflight a NEAR payment to an account) and explicitly frames itself as the NEAR counterpart of agent_pay_gate composing account posture with NEP-141 transfer preflight. The GO/HOLD/STOP outcome model makes the tool's function unmistakable and separable from near_transfer_preflight.

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?

Clear trigger context ('Before you pay a NEAR account') and concrete guidance on which inputs to pass for token vs native transfers. It does not, however, name near_transfer_preflight or agent_pay_gate as alternatives or state when to prefer one over the other.

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