Skip to main content
Glama

FreeDailyPro Calculators

percentage

Read-onlyIdempotent

Percentage calculator

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": {
      "operation": "<operation>",
      "a": "<a>",
      "b": "<b>"
    },
    "name": "percentage"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesA as a plain number, for example 10.
bYesB as a plain number, for example 10.
operationYesOperation: one of percentageOf, whatIsPercentOf, percentChange.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / a / description
      Added value: +"A as a plain number, for example 10."
    • addedInput schema / properties / b / description
      Added value: +"B as a plain number, for example 10."
    • addedInput schema / properties / operation / description
      Added value: +"Operation: one of percentageOf, whatIsPercentOf, percentChange."
  2. First observed

TDQS

C2.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered. The description adds nothing beyond that — no note on compute semantics, precision, edge cases (e.g., division by zero in percentChange), or what is returned. With annotations carrying the behavioral load, this minimally passes but contributes no extra context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two words, so there is nothing to trim and the purpose is front-loaded by default. Brevity here reflects under-specification rather than disciplined conciseness, since every informative sentence is missing.

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?

The tool itself is simple (three required params, no output schema), so the description need not be long. However, the ambiguity between the three percentage operations is the primary risk in calling this tool correctly, and the description does not address it at all.

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 description coverage is 100%, so the parameters, enum values, and examples for a and b are already documented in structured data. The description adds no clarifying meaning — notably, it does nothing to disambiguate percentageOf from whatIsPercentOf, where the role of a versus b is genuinely easy to get wrong. Baseline 3 applies because the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Percentage calculator" essentially restates the tool name and title "Percentage"; the only added word is the generic noun "calculator." It conveys a domain but no specific verb, scope, or distinction from the many other numeric/analysis siblings such as analyze_readability.

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

Usage Guidelines1/5

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

There is no guidance at all on when to use this tool, when to prefer a sibling, or how the three operations differ. An agent must infer everything about applicability from the enum in the schema alone.

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