Skip to main content
Glama

transfer_token

Send ERC20 tokens to a recipient address or ENS name by specifying the token contract, amount, and sender private key for transaction signing.

Instructions

Transfer ERC20 tokens to an address

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "privateKey": "<privateKey>",
      "tokenAddress": "<tokenAddress>",
      "toAddress": "<toAddress>",
      "amount": "<amount>"
    },
    "name": "transfer_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount of tokens to send as a string (e.g., '100' for 100 tokens). This will be adjusted for the token's decimals.
toAddressYesThe recipient address or ENS name that will receive the tokens (e.g., '0x1234...' or 'vitalik.eth')
privateKeyYesPrivate key of the sender account in hex format (with or without 0x prefix). SECURITY: This is used only for transaction signing and is not stored.
tokenAddressYesThe contract address or ENS name of the ERC20 token to transfer (e.g., '0xA0b8...' for USDC or 'uniswap.eth')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.2

TDQS

C2.9/5.0
Behavior2/5

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

Because no annotations are supplied, the description carries the full burden of explaining behavior, yet it provides almost none. It does not say which chain the transfer executes on (there is no chain or network parameter), that the operation is irreversible and costs gas, whether it waits for confirmation, or what it returns. For an irreversible asset-moving operation, these are material omissions.

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

Conciseness4/5

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

The description is a single front-loaded sentence containing no redundant wording and no filler. It is efficient. However, its brevity comes at the cost of content, so it earns credit for structure rather than for completeness.

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?

This is a destructive financial operation with no annotations and no output schema, so the description should explain gas, chain selection, irreversibility, and result shape. It covers none of these, leaving an agent unable to predict the transaction's context or the outcome of the call.

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 100%, so all four parameters are already documented, including the decimals adjustment for 'amount' and the private-key security note. The description adds no meaning beyond the schema, which makes the baseline of 3 appropriate.

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 names a specific verb and resource: 'Transfer ERC20 tokens to an address'. This is unambiguous on its own. However, it never distinguishes itself from the sibling tool 'transfer_erc20', which appears to do the same thing, so an agent has no basis in the text for choosing between them.

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

Usage Guidelines2/5

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

The description gives no guidance on when to use this tool instead of 'transfer_erc20', 'transfer_eth', or 'approve_token_spending'. It states no prerequisites, does not explain which network or chain is targeted, and gives no condition that separates it from closely named alternatives.

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