Skip to main content
Glama
Calculator MCP Server

Calculator MCP Server

Percentage

Computes a given percent of a number to determine proportional values, discounts, or tax amounts.

Instructions

Calculates a specified percentage of a given number

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": {
      "value": "<value>",
      "percent": "<percent>"
    },
    "name": "Percentage"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesThe number to calculate percentage of
percentYesThe percent to calculate

Output Schema

NameRequiredDescriptionDefault
valueYesThe number to calculate percentage of
resultYesThe percentage of a given value
percentYesThe percent to calculate
operationYesOperation performed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only restates the computation. It does not disclose that this is a side-effect-free pure computation, how negative values or percentages over 100 are handled, or any rounding behavior. For a calculation tool this is a modest but real gap.

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?

A single front-loaded sentence with no filler; the operation and its two inputs are conveyed immediately. It is slightly thin rather than padded, so conciseness is not the issue.

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 trivial arithmetic nature, a full output schema, and complete input schema coverage, the description is nearly sufficient for correct invocation. Only edge-case handling for unusual inputs is left unstated.

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 both `value` and `percent` are already documented in the schema. The description's phrase 'a specified percentage of a given number' merely mirrors that mapping without adding format or boundary details, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb (Calculates) and a clear resource (a specified percentage of a given number), so the agent knows exactly what it does. It is distinguishable from the Add/Divide/Multiply/Subtract siblings, but the differentiation is implicit rather than stated.

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?

There is no when-to-use guidance, no conditions or exclusions, and no reference to alternatives. An agent must infer from the name alone that this is preferred over manually dividing via Divide.

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

Deploy Server

Other Tools