Skip to main content
Glama

GET_NEAR_SWAP_SIMPLE_QUOTE

Get a simple quote for a NEAR intent swap across chains and assets. Use this dry run to check swap rates and fees without providing recipient addresses.

Instructions

[STEP 1] Get a simple quote for a NEAR intent swap between different chains and assets. This is a dry run that doesn't require any addresses - perfect for users who want to check swap rates and fees before committing to a swap. Use this when users want to explore swap options without providing recipient addresses. NOTE: If users provide simple token names (e.g., 'ETH', 'USDC'), first use GET_NEAR_SWAP_TOKENS to discover the exact token IDs required for this API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originAssetYesID of the origin asset (e.g. 'nep141:arb-0xaf88d065e77c8cc2239327c5edb3a432268e5831.omft.near')
destinationAssetYesID of the destination asset (e.g. 'nep141:sol-5ce3bf3a31af18be40ba30f721101b4341690186.omft.near')
amountYesAmount to swap as the base amount, denoted in the smallest unit of the specified currency (e.g., wei for ETH)
swapTypeNo(Optional, defaults to EXACT_INPUT) Whether to use the amount as input or output for the swap calculationEXACT_INPUT
slippageToleranceNo(Optional, defaults to 100) Slippage tolerance in basis points (100 = 1%)
quoteWaitingTimeMsNo(Optional, defaults to 3000) Time in milliseconds to wait for quote from relay
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the dry-run nature and that no addresses are required, but does not mention any behavioral aspects like rate limits, authentication, or error conditions. It is adequate but not exhaustive.

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?

The description front-loads the purpose and provides structured steps. However, it is slightly verbose with a step number and notes; could be more concise without losing clarity.

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 tool's simplicity and lack of output schema, the description covers purpose, usage hints, and parameter clarifications. It does not explain the return value, but that is acceptable for a simple quote tool.

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%, so baseline is 3. The description restates parameter examples (e.g., originAsset format) and defaults (slippage, wait time) but adds little new meaning beyond the schema. The note about token discovery is helpful context but not parameter-specific.

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 clearly states the tool retrieves a simple NEAR intent swap quote as a dry run without needing addresses. It differentiates from siblings by specifying 'simple quote' vs full quote and directing token name discovery to GET_NEAR_SWAP_TOKENS.

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 explicitly says to use this when users want to explore swap options without recipient addresses and includes a note to use GET_NEAR_SWAP_TOKENS for simple token names. However, it does not mention when to prefer a full quote or execution over this simple quote.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IQAIcom/mcp-near-intents'

If you have feedback or need assistance with the MCP directory API, please join our Discord server