Skip to main content
Glama

web_carbon

Read-only

Website Carbon & Page Weight — Estimate a web page's total weight and carbon footprint per page view. Fetches the HTML plus linked scripts, stylesheets, preloads, images and CSS web fonts from a Cloudflare edge, reports decoded and estimated transfer bytes by type (html/css/js/image/font), request count, the 5 largest assets and an A-F weight grade, then applies the Sustainable Web Design v3 model for grams CO2e per view, first-visit grams, kWh per view and yearly kg at 10k monthly views, plus fixes (oversized images, uncompressed text, heavy JS, too many fonts, no lazy-loading). Optional: green=true for renewable-powered hosting, grid= for a custom grid intensity (default 442 global average). Price: $0.005 USDC (Base, via 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": {
      "url": "<url>"
    },
    "name": "web_carbon"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps://example.com

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnly/openWorld and no destruction, but the description goes further: it discloses that it fetches HTML plus scripts, stylesheets, preloads, images and CSS fonts from a Cloudflare edge (real network cost on the target), states the default grid intensity of 442 g/kWh, and clearly states a price of $0.005 USDC via x402. The only omission is rate limits or failure behavior, so this is strong rather than flawless.

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 purpose is front-loaded in the first clause and the remaining content is dense but all functional — fetched asset types, reported metrics, model used, option defaults, price. It is one long block rather than segmented sentences, which costs readability but not much else.

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

Completeness5/5

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

With no output schema and only one input parameter, the description carries the return-value burden and does so thoroughly: byte breakdowns by type, request count, top 5 assets, A-F grade, CO2e/kWh/yearly projections, and remediation suggestions. Combined with the stated pricing and defaults, an agent has everything needed to call it and interpret the result.

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?

Schema coverage is 100% for the single required 'url' field, so the baseline is 3. The description earns above that by documenting 'green' and 'grid' with the semantics and default value (442 global average) of the latter — information the schema does not carry at all, though the mismatch that these options are absent from the input schema slightly weakens it.

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?

Names a specific verb and resource ('Estimate a web page's total weight and carbon footprint per page view') and enumerates the derived metrics, so the agent can immediately distinguish this measurement tool from sibling analyzers like web_images or web_links. The scope is unambiguous even 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?

Use is only implied: it is clear the tool is for weighing/carbon-scoring a page, but there is no statement of when to prefer it over alternatives, no preconditions, and no exclusions. The 'Optional: green=true...' sentence is parameter guidance rather than when-to-use guidance.

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