Skip to main content
Glama
rlawogh1005

green-mcp

by rlawogh1005

compare_tokens

Compare token consumption of two programs to identify the more efficient option, assuming both yield equivalent results.

Instructions

Measure two programs' token use and report which uses fewer, by how much. Only meaningful if both produce acceptable equivalent results — verify that separately (fewer tokens with worse answers is not a win).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
upstreamNohttps://api.anthropic.com
command_aYes
command_bYes
base_url_envNoANTHROPIC_BASE_URL
Behavior4/5

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

With no annotations, the description bears full behavioral transparency burden. It clearly describes what the tool does (compares token usage) but does not detail how tokens are counted or if there are any side effects. The behavior is straightforward and non-destructive, so transparency is high.

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?

The description consists of two sentences, each essential. The first states the core function; the second adds critical context. No superfluous content. Perfectly concise and well-structured.

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?

The tool is simple (4 params, no output schema). The description explains the main output (which program uses fewer tokens and by how much) but lacks specifics on the exact format (e.g., token counts, percentage). Close to complete but leaves a minor gap for output details.

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

Parameters1/5

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

Schema description coverage is 0%, yet the description provides no explanation of the parameters (command_a, command_b, upstream, base_url_env). It fails to clarify how programs are specified or the role of optional parameters, leaving the agent without necessary semantic guidance.

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?

The description clearly states the tool's verb (measure/compare) and resource (token use of two programs). It distinguishes it from siblings like 'compare_energy' and 'verify_equivalence' by focusing on token comparison.

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

Usage Guidelines5/5

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

The description explicitly tells when to use the tool (to compare token usage) and provides a critical precondition: programs must produce equivalent results. It warns against using it when results are not equivalent and hints at using 'verify_equivalence' separately.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rlawogh1005/green-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server