Skip to main content
Glama

Trustbase Lab · Trusted Data Infrastructure for the AI Era

calculate_recycled_content_gap

calculate_recycled_content_gap
Read-onlyIdempotent

Purpose: compare a given recycled-content figure against the statutory minimum for one material, at both stages. Guidelines: supply material (cobalt / lead / lithium / nickel) and current_pct; thresholds are parsed from the regulation records in the dataset and the source record ID is returned with each row. Limits: one material at a time - this is NOT a compliance finding for a whole battery, and not advice or a declaration basis. Ex: calculate_recycled_content_gap(material='cobalt', current_pct=10).

Input Schema

NameRequiredDescriptionDefault
languageNo输出语言zh
materialYes材料:cobalt=钴 / lead=铅 / lithium=锂 / nickel=镍
current_pctYes当前再生含量(%),由调用方提供
response_formatNoOutput format: 'markdown' (default, human-readable) or 'json' (machine-readable).markdown

Output Schema

NameRequiredDescriptionDefault
textYesHuman-readable result (markdown, or a JSON string when response_format=json).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds useful context beyond them: thresholds are parsed from regulation records, the source record ID is returned with each row, and the tool is deliberately scoped to one material. It doesn't discuss error behavior or precision/rounding, so not a 5.

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?

Front-loaded with labeled Purpose/Guidelines/Limits and a concrete example, so an agent can parse it quickly. It is dense but every sentence earns its place; the embedded example is slightly redundant with the schema but aids invocation.

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?

With an output schema present, return values needn't be explained, and the description covers scope limits plus the returned source record ID. For a read-only calculation tool the description is essentially complete, with only minor gaps around edge cases (e.g. out-of-range current_pct).

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

Parameters3/5

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

Schema coverage is 100% and enums are fully documented, so the schema already carries parameter meaning. The description restates material options and current_pct usage but adds no format or constraint detail beyond the schema; baseline 3 is appropriate.

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 a specific verb (compare/calculate gap) and resource (recycled-content figure vs statutory minimum), scoped to one material and both stages. This is clearly distinguishable from siblings like get_recycled_content_requirements and query_battery_recycling_targets, which fetch requirements rather than compute a gap.

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?

Explicitly says to supply material and current_pct, and adds strong negative guidance: one material at a time, NOT a whole-battery compliance finding, not advice or a declaration basis. It lacks a named alternative sibling (e.g. where to go for whole-battery compliance), which keeps it from a 5.

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