near-intent-swaps
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NEAR_SWAP_API_URL | No | Custom API endpoint | https://1click.chaindefuser.com |
| NEAR_SWAP_JWT_TOKEN | Yes | JWT token for Defuse Protocol API authentication |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| logging | {} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| GET_NEAR_SWAP_SIMPLE_QUOTEA | [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. |
| GET_NEAR_SWAP_FULL_QUOTEA | [STEP 2] Get a full quote with deposit address for a NEAR intent swap. This requires recipient and refund addresses and returns a unique deposit address where users can send their funds to initiate the swap. Use this when users are ready to proceed with the swap after checking the simple quote. 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. |
| EXECUTE_NEAR_SWAPA | [STEP 4] Submit a deposit transaction hash to initiate the swap after sending funds to the deposit address. This notifies the 1Click service that funds have been sent and triggers the swap execution process. Use this after users have sent their funds to the deposit address from the full quote response. |
| CHECK_NEAR_SWAP_STATUSA | [STEP 5] Check the current execution status of a NEAR intent swap. Returns the swap state (PENDING_DEPOSIT, PROCESSING, SUCCESS, REFUNDED, FAILED, etc.) along with detailed transaction information. Use this to monitor swap progress after initiating the swap, and continue polling until the swap is complete. |
| GET_NEAR_SWAP_TOKENSA | [DISCOVERY] Get a list of tokens currently supported by the 1Click API for NEAR Intents. Returns token metadata including blockchain, contract address, current USD price, symbol, decimals, and price update timestamp. Use this to help users discover available tokens before requesting quotes. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool has a distinct step in the swap workflow (discovery, simple quote, full quote, execution, status). Descriptions include step numbers, making it impossible to confuse them.
All tool names follow a consistent verb_noun pattern with GET_, EXECUTE_, CHECK_ prefixes, all using snake_case and targeting NEAR_SWAP_* entities.
5 tools is well-scoped for the domain: token discovery, two levels of quotes, execution, and status checking. Each tool serves a clear purpose without redundancy.
Covers the full swap lifecycle from discovery to status monitoring. Lacks a cancel/refund trigger, but the status tool handles post-swap states adequately.