Skip to main content
Glama
Ethereum MCP
by ETHCF

get_l2_fees

Compare transaction fees across Layer 2 networks to select a lower-cost chain before sending transactions.

Instructions

Compare transaction fees across Layer 2 networks

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_l2_fees"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3/5.0
Behavior2/5

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

Because there are no annotations and no output schema, the description alone must disclose behavior. It says nothing about which networks are covered, how fees are measured (average, median, transfer vs swap), whether results are live or cached, or what shape the comparison takes.

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?

It is a single tight sentence with no filler, and the scope qualifier is placed correctly. Brevity is appropriate for a tool with no parameters, though the sentence carries no structure beyond the one clause.

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?

With no annotations, no output schema, and no parameters, the description is the only specification an agent gets, and it does not say what comes back or what 'compare' covers. For a zero-argument aggregation tool, a reader needs to know the set of chains and the fee metric before invoking it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is nothing for the description to disambiguate, and the baseline of 4 applies. The 'across Layer 2 networks' phrasing usefully implies the comparison is implicit and unfiltered, but adds nothing beyond what the name suggests.

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, resource, and scope: 'Compare transaction fees across Layer 2 networks.' That is clearly narrower than a generic fee tool, but it does not distinguish itself from siblings such as get_fees or get_protocol_fees, so an agent still has to guess which fee endpoint is the right one.

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?

No when-to-use guidance appears, and no alternative is named even though get_fees and get_protocol_fees sit in the same catalog. The word 'compare' hints at cross-chain aggregation, but the reader must infer that on their own.

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