Skip to main content
Glama
anchetadev

AI Impact MCP

by anchetadev

Record consumer chat (estimated)

record_web_chat

Estimate environmental impact of web chat conversations by recording token usage. Accepts structured turns for accuracy, or raw page text as fallback.

Instructions

Record ESTIMATED usage for a Claude desktop/web conversation that doesn't expose token counts. Preferred: pass structured turns (the host extracts them from the page). Fallback: pass raw page_text and it will be parsed best-effort. Tokens are estimated with a BPE proxy and tagged 'estimated'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
turnsNoConversation turns in order (reliable input).
page_textNoRaw flattened transcript text (fallback if turns unavailable).
modelNoModel the chat used; defaults to a Sonnet-class model.
conversation_idNo
Behavior4/5

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

With no annotations, the description does well by disclosing token estimation via BPE proxy, the tagging as 'estimated', the two input modes, and the model default. It does not mention failure behavior or side effects, but for a logging tool this is adequate.

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?

Three sentences, front-loaded with purpose, no wasted words. Every sentence adds value (purpose, preferred input, fallback, estimation detail).

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?

Given the tool's complexity (estimation, two input modes, optional params) and no output schema, the description covers the key aspects. Minor gap: behavior when both turns and page_text are provided is unspecified, and conversation_id is not explained. Otherwise complete.

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 75% (3 of 4 params described), and the description adds significant meaning by explaining the two input methods (preferred vs fallback) and estimation behavior. The conversation_id param lacks description in both schema and description, but overall value is above baseline.

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?

Clearly states it records estimated usage for Claude web chats, distinguishes between structured turns and fallback page_text input, and mentions token estimation. This is specific and distinct from sibling tools that analyze or score data.

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?

Provides clear context on when to use (for conversations without token counts) and gives a preferred method with a fallback. However, no explicit when-not-to-use or alternatives are named.

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/anchetadev/mata'

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