Skip to main content
Glama

fluid_build_token_approve

Approve an ERC20 token for spending by a Fluid contract (fToken, vault, or DEX pool). Builds an unsigned transaction required before deposit or supply.

Instructions

Build an unsigned transaction to approve an ERC20 token for spending by a Fluid contract (fToken, vault, DEX pool). Required before deposit/supply operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesBlockchain network. Supported: ethereum, arbitrum, base, polygon, plasma
amountNoAmount to approve in raw units. Defaults to max uint256 (unlimited).
rpc_urlNo
spenderYesAddress to approve (fToken, vault, or pool address)
token_addressYesERC20 token address to approve
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 that the transaction is unsigned (not sent) and is a prerequisite for deposit/supply, but offers no details about return format, gas implications, or the potentially irreversible nature of the approval. Satisfies minimum transparency but leaves gaps.

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?

Two sentences, front-loaded with the primary purpose and a clear usage prerequisite. Every word earns its place; no redundancy.

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 transaction builder with 5 parameters, no output schema, and no annotations, the description covers the core action and prerequisite. It lacks details about return value or edge cases, but these are less critical for an unsigned tx builder. Overall sufficient context for an agent to select and invoke the 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 description coverage is 80% (4 of 5 parameters have descriptions), so the baseline is 3. The description adds minimal semantic value beyond the schema, merely restating the spender types (fToken, vault, DEX pool) already implied by the spender parameter 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?

Clearly states it builds an unsigned transaction to approve an ERC20 token for spending by Fluid contracts, specifically mentioning fToken, vault, DEX pool. This distinguishes it from sibling getter and other build tools.

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?

Explicitly says it is required before deposit/supply operations, giving clear context for when to use. Does not list alternative tools or exclusions, but the placement among siblings and the 'required before' phrasing provide sufficient guidance.

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/ahmadmardeni1/fluid-mcp-server'

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