Skip to main content
Glama

Lookup Kit

percentage

Read-only

Percentage calculator, percent change, discount and tax. Percentages, exactly: what is P% of X (mode=of), X is what % of Y (mode=is_what), % change from X to Y (mode=change), add or remove P% to X (mode=add, remove, e.g. tax or discount). Price: $0.001 per call (x402, USDC on Base).

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": {
      "mode": "<mode>",
      "x": "<x>"
    },
    "name": "percentage"
  }
}

Input Schema

NameRequiredDescriptionDefault
pNo
xYes
yNo
modeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered by structured data. The description's real value-add is disclosing that this is a paid call ($0.001 per call, x402, USDC on Base), which is meaningful non-inferable operational context. It still omits anything about precision, rounding, or what the returned number represents.

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 the tool's identity, then a dense mode-to-formula mapping, then pricing. Nearly every clause carries information. The parenthetical '(mode=add, remove, e.g. tax or discount)' is slightly compressed into ambiguity but not wasteful.

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

Completeness3/5

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

For a four-parameter computational tool with no output schema and only safety annotations, the definition covers invocation well but not the result: nothing says whether the answer is a percentage, an absolute value, or how modes differ in output units. That is the main residual gap for a calculator.

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 0%, so the description must carry the load — and it does decode all five enum values of 'mode' with concrete formulas, which is the single biggest semantic gap. But it never states that p/x/y are passed as numeric strings matching a decimal pattern (negatives allowed), nor which of p/x/y each mode consumes or ignores, leaving required-parameter semantics partly unclear.

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?

Specific verb+resource ('percentage calculator') with an explicit enumeration of the five computations it supports (P% of X, X is what % of Y, % change, add/remove P%, tax/discount). An agent knows exactly what it computes. However, it never distinguishes itself from nearby siblings like compound_interest or currency_convert, which is the only thing keeping it from a 5.

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?

The description effectively provides per-mode when-to-use guidance by mapping each scenario (tax, discount, percent change) to a concrete mode value. What is missing is any exclusion or alternative routing — it does not say when another tool would be a better choice.

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