Skip to main content
Glama

mechacut

eth_abi_encode

Solidity ABI calldata encoder, closed type set (uintM/intM bytesM address bool string bytes + one-level arrays): types + values -> exact 0x calldata. No invented calldata. Capped: free under 32 KB.

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": {
      "types": "<types>",
      "values": "<values>"
    },
    "name": "eth_abi_encode"
  }
}

Input Schema

NameRequiredDescriptionDefault
typesYes
valuesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it enumerates the accepted type vocabulary, commits to deterministic exact output, discloses that it will not fabricate missing calldata, and names a size limit (32 KB free tier). It stops short of saying what happens above 32 KB or how invalid/mismatched inputs fail.

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?

Front-loaded and very short, with no filler sentences. The telegraphic fragments ('No invented calldata. Capped: free under 32 KB.') are efficient but slightly cryptic — 'free' could be read as cost or as a size allowance.

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

Completeness3/5

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

For a pure, two-parameter encoder with no output schema, the description covers the essential transform, accepted type set, determinism, and a quota. Gaps remain around failure modes (type/value length mismatch, unsupported nested arrays, behavior above the cap), which an agent cannot recover from the schema.

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 0% — both parameters are bare arrays with no item documentation — so the description must compensate. It does partly by naming both inputs and constraining the accepted string values for 'types' (uintM/intM bytesM address bool string bytes plus one-level arrays), but it never states that types and values must be positionally aligned and equal-length, nor the expected format of individual values.

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?

States a specific verb+resource ('Solidity ABI calldata encoder') and pins the transform precisely as 'types + values -> exact 0x calldata'. The direction of the transform implicitly distinguishes it from the eth_abi_decode sibling, though no sibling is named explicitly.

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?

Usage constraints are implied rather than stated: 'closed type set' tells the agent it cannot encode arbitrary Solidity objects, and 'No invented calldata' warns that omitted values will not be filled in. There is no explicit when-to-use guidance or mention of the decode counterpart, so an agent must infer routing.

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.