Skip to main content
Glama

buy_etf_token

Simulate buying ETF tokens with specified input tokens across multiple EVM chains. Get transaction details including slippage tolerance without executing actual trades.

Instructions

Buy ETF tokens using input tokens (simulation only - no actual transaction).

Args:
    chain_id: Chain ID (1, 10, 56, 100, 137, 8453, 42161)
    etf_token_address: Address of the ETF token to buy
    input_token_address: Address of token to spend (use 'native' for ETH/BNB/MATIC/xDAI)
    input_amount: Amount of input token to spend (in token units, e.g. '1.5')
    slippage: Slippage tolerance as percentage (default: 2.0)

Returns:
    JSON string with transaction simulation details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chain_idYes
etf_token_addressYes
input_token_addressYes
input_amountYes
slippageNo
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: it's a simulation ('no actual transaction'), specifies what it returns ('JSON string with transaction simulation details'), and mentions default values ('slippage: default: 2.0'). However, it doesn't cover potential errors, rate limits, or authentication requirements.

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

Conciseness5/5

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

The description is efficiently structured with a clear purpose statement followed by well-organized parameter explanations. Every sentence adds value, and the information is front-loaded with the most important constraint ('simulation only') stated first.

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?

For a 5-parameter simulation tool with no annotations and no output schema, the description provides good coverage of inputs, behavior, and return format. However, it doesn't explain what the simulation details include or potential failure modes, leaving some gaps for the agent to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by providing clear semantic explanations for all 5 parameters: chain ID options, address meanings, 'native' token convention, amount units, and slippage definition. Each parameter's purpose is explained beyond what the bare schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Buy ETF tokens using input tokens (simulation only - no actual transaction).' It specifies the verb ('buy'), resource ('ETF tokens'), and key constraint ('simulation only'), but doesn't explicitly differentiate from sibling tools like 'sell_etf_token' or 'execute_token_swap' beyond the buy/sell distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context through the 'simulation only' constraint and parameter explanations, but doesn't provide explicit guidance on when to use this tool versus alternatives like 'sell_etf_token' or 'execute_token_swap'. No prerequisites or exclusions are mentioned.

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/VolumeFi/mcpPADEX'

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