Skip to main content
Glama

Smart-account: approve + call

fuse_smart_approve_and_call

Atomically approves a token and invokes a follow-up call on the spender from the configured smart wallet. Common DeFi pattern.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitNo
amountYesAllowance amount in the token's display unit (or base if `unit: "base"`).
spenderYesContract that will receive the subsequent call.
callDataYesEncoded calldata to invoke on `spender` after approval (0x-prefixed hex).
tokenAddressYesERC-20 token contract address to approve.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavior. It states 'atomically' implying single-transaction execution but lacks details on failure handling, permissions (requires configured smart wallet), or side effects beyond the approval and call.

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 a single sentence that conveys the core functionality without superfluous words. It is well-structured and to the point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has moderate complexity (atomic multi-step with 5 parameters, no output schema). The description omits details about the return value, error scenarios, and prerequisites beyond 'configured smart wallet.' This leaves gaps for the agent.

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 80% (4 of 5 parameters have descriptions). The description adds the context that the call is invoked on the spender after approval, but individual parameter descriptions are already clear. The missing 'unit' parameter has no description, but the description does not compensate.

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 uses specific verbs ('approves' and 'invokes') and identifies the resource ('token' and 'spender'), clearly distinguishing it from siblings like fuse_smart_approve_token (approval only) and fuse_smart_call_contract (call only).

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 mentions 'Common DeFi pattern' which implies a typical use case, but does not explicitly state when to use this tool versus alternatives or provide exclusion criteria.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources