Skip to main content
Glama

Send a contract call

send_transaction
Destructive

Send a raw contract call from the agent wallet; Holdfast checks it against owner policy before signing.

Instructions

Send a raw contract call from the agent wallet (calldata already encoded). Prefer transfer_token or send_native for simple transfers. Every transaction is checked by Holdfast against the owner's policy before it is signed. If a request is blocked, do not retry it in a different form or split it up; tell the user what was blocked and why.

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": {
      "to": "<to>",
      "data": "<data>"
    },
    "name": "send_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesContract address
dataYes0x-prefixed calldata
valueNoETH to attach, e.g. "0.01" (default 0)
max_spend_usdNoThe most this should cost in USD. Holdfast blocks it if it would cost more. Always set this when the calldata came from an API or website.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is partly covered. The description adds genuinely non-obvious behavior beyond them: every call passes a Holdfast policy check before signing, and blocked requests must be surfaced to the user rather than re-formed. It stops short of covering irreversibility of a sent transaction, network/chain context, or gas/confirmation behavior.

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?

Three sentences, front-loaded with what the tool does, then alternatives, then the safety rule. No filler, and the most consequential instruction (do not split or retry a blocked request) is placed last where it is read before acting.

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 destructive, open-world, non-idempotent tool this covers purpose, alternatives, pre-signing policy gating, and blocked-request handling. It leaves gaps around chain/network selection and what a successful call returns (there is no output schema here), but nothing critical to correct invocation is missing.

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 with types and examples ('0x-prefixed calldata', ETH example value, max_spend_usd blocking semantics). The description adds only the implicit constraint that calldata must be pre-encoded, which is marginal value over the schema; baseline 3 applies.

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?

States a specific verb and resource ('Send a raw contract call from the agent wallet') and immediately disambiguates scope with '(calldata already encoded)', which tells the agent this is not for building calls. It names the sibling alternatives (transfer_token, send_native) for simple transfers, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use-this-instead guidance ('Prefer transfer_token or send_native for simple transfers') and an explicit negative rule for the blocked case ('do not retry it in a different form or split it up'). The alternative-condition pairing is exactly what selection guidance should look like.

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