Skip to main content
Glama

Polygon gas prices

polygon_gas_prices
Read-onlyIdempotent

Polygon PoS gas price right now: block number, base fee, gas price and priority fee in gwei, and the estimated cost in POL and USD of a native transfer and an ERC-20 transfer (Chainlink POL/USD); plus how the current price ranks against our own samples every 10 minutes over the last 7 days, and the usually cheapest UTC hour. Costs $0.003 USDC on Base via x402.

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": "polygon_gas_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
chainNostring, e.g. "polygon"
blockTimeNostring, e.g. "2026-10-22T15:50:44.000Z"
nativeUsdNonumber, e.g. 0.0905823
baseFeeGweiNostring, e.g. "248.763643361"
blockNumberNonumber, e.g. 95985915
gasPriceGweiNostring, e.g. "276.772562084"
nativeSymbolNostring, e.g. "POL"
estimatedCostNoobject
maxPriorityFeeGweiNostring, e.g. "28.008918723"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "baseFeeGwei": {
      +      "description": "string, e.g. \"248.763643361\""
      +    },
      +    "blockNumber": {
      +      "description": "number, e.g. 95985915"
      +    },
      +    "blockTime": {
      +      "description": "string, e.g. \"2026-10-22T15:50:44.000Z\""
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"polygon\""
      +    },
      +    "estimatedCost": {
      +      "description": "object"
      +    },
      +    "gasPriceGwei": {
      +      "description": "string, e.g. \"276.772562084\""
      +    },
      +    "maxPriorityFeeGwei": {
      +      "description": "string, e.g. \"28.008918723\""
      +    },
      +    "nativeSymbol": {
      +      "description": "string, e.g. \"POL\""
      +    },
      +    "nativeUsd": {
      +      "description": "number, e.g. 0.0905823"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), yet the description adds real value beyond them: the paid-call model ('Costs $0.003 USDC on Base via x402'), the Chainlink POL/USD price source, and the 10-minute/7-day sampling methodology behind the ranking. What it does not disclose is latency, caching/staleness of the 'right now' price, or payment-failure behavior.

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?

The resource and chain are front-loaded, and every clause carries information (fees, cost estimates, ranking window, cheapest hour, price). It is a single very dense run-on sentence, though, and could be split so the payment note does not compete with the data description.

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?

An output schema exists, so the enumerated return fields are somewhat redundant, but for a zero-param paid tool the critical extras are present: cost, payment rail, price oracle, and sampling window. What is missing is any note on result freshness or what happens if the x402 payment fails.

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 no parameter semantics to explain and the baseline of 4 applies. The description correctly spends no words on inputs and instead describes the fixed output shape.

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 the specific resource and chain ('Polygon PoS gas price right now') and enumerates exactly what is returned: block number, base fee, gas price, priority fee in gwei, transfer cost estimates in POL and USD, plus 7-day percentile ranking and cheapest UTC hour. The chain qualifier alone separates it from the arbitrum/base/eth/optimism gas siblings without needing to name them.

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 by the 'right now' framing — an agent can infer this is the current-state snapshot for Polygon. However, there is no explicit when-to-use or when-not guidance, and the sibling gas_compare (cross-chain comparison) is not referenced, so routing between the two is left to inference.

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