Skip to main content
Glama

near_pre_trade_gate

Read-onlyIdempotent

One call before buying a NEAR token — GO / HOLD / STOP — The call to make before buying a NEP-141 token: who controls it (keys, owner, pause), whether you can get back out — a USDC round trip through NEAR Intents at your trade size, loss measured — and whether a few accounts hold most of the circulating supply. Over 15% lost or no route is STOP or HOLD; HIGH concentration is HOLD. One verdict with the quotes. size is in USD (default 100). Required input: token. Priced $0.05 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
sizeNoTrade size in USD (optional, default 100)
tokenYesNEAR token contract account

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.2/5.0
Behavior4/5

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

With annotations already declaring readOnlyHint and idempotentHint, the description adds meaningful behavior: cost ($0.05/call over x402, prepaid header, free tier), no wallet/API key required, and verdict thresholds (loss >15% or no route -> STOP/HOLD, high concentration -> HOLD). The thresholds are slightly ambiguous in distinguishing STOP vs HOLD, but the description still adds transparency beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is moderately long (~120 words) and front-loaded with the verdict. However, it duplicates schema info ('size is in USD (default 100)', 'Required input: token') and is somewhat repetitive at the start ('One call before buying' and 'The call to make before buying'). It could be tightened without losing value.

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?

Given the output schema exists and the annotations cover safety, the description sufficiently covers input requirements, cost, access (no wallet/API key), and decision logic. It provides enough for an agent to call the tool correctly, with no major gaps.

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 100%, but the description adds semantic meaning by explaining that size is used for a USDC round trip through NEAR Intents to measure loss, giving purpose to the parameter beyond the schema's generic 'trade size in USD' description.

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 explicitly states the tool's purpose: a pre-trade gate that returns GO/HOLD/STOP for NEAR (NEP-141) tokens. It enumerates concrete checks (control, exit liquidity via USDC round trip, supply concentration) and clearly distinguishes itself from the generic sibling pre_trade_gate by scoping to NEAR.

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?

The description says 'The call to make before buying a NEP-141 token,' providing clear when-to-use context. It does not explicitly name alternatives or when not to use it, but the context is sufficient for the agent to select this over generic gate tools.

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