Skip to content

Commit 6a979d3

Browse files
committed
Update near-swap tools descriptions for clarity
1 parent cc12682 commit 6a979d3

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/long-trams-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@iqai/mcp-near-intent-swaps": patch
3+
---
4+
5+
Updates description to add direction to get tokens tool for qoute enqiry

src/tools/near-swap-full-quote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ type FullQuoteToolParams = z.infer<typeof fullQuoteToolParams>;
9393
export const nearSwapFullQuoteTool = {
9494
name: "GET_NEAR_SWAP_FULL_QUOTE",
9595
description:
96-
"[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.",
96+
"[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.",
9797
parameters: fullQuoteToolParams,
9898
execute: async (params: FullQuoteToolParams) => {
9999
const nearSwapService = new NearSwapService();

src/tools/near-swap-quote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type SimpleQuoteToolParams = z.infer<typeof simpleQuoteToolParams>;
4646
export const nearSwapSimpleQuoteTool = {
4747
name: "GET_NEAR_SWAP_SIMPLE_QUOTE",
4848
description:
49-
"[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.",
49+
"[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.",
5050
parameters: simpleQuoteToolParams,
5151
execute: async (params: SimpleQuoteToolParams) => {
5252
const nearSwapService = new NearSwapService();

0 commit comments

Comments
 (0)