Skip to main content
Glama

Beliebige Smart-Contract-Funktion lesen (10 Ketten)

vertrag_lesen

Calls any read-only (view/pure) function of a smart contract on Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche, Gnosis, Linea or Base Sepolia — just give the function signature like "balanceOf(address) returns (uint256)" or "getReserves() returns (uint112,uint112,uint32)" and the arguments. Returns decoded values. Optional block number for historical reads. No ABI, no RPC key needed. Read-only. Vertragsfunktion abfragen. Preis $0.01 (x402).

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": {
      "vertrag": "<vertrag>",
      "funktion": "<funktion>"
    },
    "name": "vertrag_lesen"
  }
}

Input Schema

NameRequiredDescriptionDefault
blockNoBlocknummer oder latest
ketteNokette
vertragYesVertragsadresse 0x…
funktionYesSignatur, z. B. "totalSupply() returns (uint256)"
argumenteNoArgumente in Reihenfolge

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 well: it declares the operation read-only, states that values come back decoded, notes the optional block number for historical reads, and discloses the $0.01 x402 payment requirement — a behavioral trait an agent must know before calling. It stops short of describing revert/error behavior or any rate limits, which keeps it out of the top band.

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?

Purpose and supported chains are front-loaded in a single dense paragraph, with examples placed immediately after the instruction. The chain list is long but load-bearing, and 'Read-only' is stated twice (in the opening phrase and again near the end), a minor redundancy that keeps it from a 5.

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 five-parameter read tool with no annotations and no output schema, the description covers the essentials: input format, return shape ('decoded values'), historical-read capability, cost, and absence of ABI/RPC setup. Error handling and failure modes for non-view functions are the main omissions.

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 the schema already documents all five parameters including the chain enum. The description reinforces the function-signature format with concrete examples and clarifies that the block number is optional and used for historical reads, but adds little beyond what the schema's own descriptions provide. 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 — calling any read-only (view/pure) function of a smart contract — and enumerates the ten supported chains. The two worked signature examples make the resource and its scope unmistakable, and no sibling in the list performs contract reads, so the agent can select it without opening the schema.

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 is implied through the call recipe ('just give the function signature ... and the arguments') and the reassurance that no ABI or RPC key is needed. There is no explicit when-not-to-use, no mention of what happens if the function is not view/pure, and no alternative tool is named, so guidance is adequate but not complete.

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