Skip to main content
Glama

TinyFn

percentage_change

Calculate percentage change between two values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
new_valueYesNew value
old_valueYesOriginal value

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
errorNo
directionNo
new_valueNo
old_valueNo
percent_changeNo
absolute_changeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, and the description does not disclose behavior for edge cases (e.g., division by zero if old_value is 0) or the return format (e.g., whether result is 50 for 50% or 0.5).

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?

Extremely concise single sentence, front-loaded with essential information, no wasted words.

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

Completeness2/5

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

Despite simple parameters and presence of output schema, the lack of behavioral transparency and usage guidelines leaves gaps for an AI agent, especially among numerous sibling tools.

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 descriptions are trivial ('New value', 'Original value'), and the tool description adds no extra meaning. High schema coverage (100%) sets baseline at 3.

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 action 'Calculate' and the specific resource 'percentage change between two values', distinguishing it from sibling tools like 'percentage' or 'calculate_margin'.

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

Usage Guidelines2/5

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

No guidance provided on when to use this tool versus alternatives (e.g., 'percentage' or 'calculate_discount'). No mention of appropriate contexts or exclusions.

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.