Skip to main content
Glama
Ethereum MCP
by ETHCF

set_etherscan_key

Sets the Etherscan API key required by Etherscan-based tools; if a query fails due to a missing key, ask the user for their key and submit it to restore access.

Instructions

Set Etherscan API key. When Etherscan tools fail due to missing key, simply ask the user: 'What is your Etherscan API key?' then call this tool with their response.

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": {
      "key": "<key>"
    },
    "name": "set_etherscan_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe user's Etherscan API key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the operational context (a missing key is what breaks Etherscan tools) and the interaction protocol, which is genuinely useful. It does not say whether the key is validated against the API, persisted across sessions, whether it overwrites an existing key, or what happens on an invalid key — meaningful gaps for a configuration-mutating tool.

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?

Two sentences, front-loaded with the action, then the trigger and procedure. Every clause earns its place; nothing is padded.

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 one-parameter configuration tool with no output schema, the description covers what it does, when to invoke it, and how to obtain the argument. What remains missing is post-call behavior — key validation, persistence, overwrite semantics — which an agent would reasonably want to know before storing a credential.

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 100% and the single 'key' parameter is documented as 'The user's Etherscan API key', so the schema already does the work. The description adds only the sourcing detail — the value should come from the user's reply to the prompted question — which is a small but real addition beyond the schema. Baseline 3 applies.

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 opens with the specific verb+resource pair 'Set Etherscan API key', which is immediately distinguishable from the sibling key-setters (set_coingecko_key, set_defillama_key, set_dune_key) by naming the provider. It doesn't spell out those siblings explicitly, but the provider name alone makes misselection unlikely.

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

Usage Guidelines4/5

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

It gives an explicit trigger condition ('When Etherscan tools fail due to missing key') rather than leaving the agent to infer timing, and even prescribes the exact user-facing question to ask before calling. There is no stated when-not guidance (e.g., don't call preemptively if a key may already be configured), which keeps it short of a 5.

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

Deploy Server

Other Tools