Skip to main content
Glama
islobodan

Crucher MCP

percentage_reverse

Read-onlyIdempotent

Calculate the base number from a part and its percentage. For example, find what number 30 is 15% of.

Instructions

X is Y% of what? e.g., 30 is 15% of 200

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
percentYes

Implementation Reference

  • Schema definition for percentage_reverse tool: registers the tool name, description ('X is Y% of what?'), and input schema requiring 'value' and 'percent' parameters.
    {
        name: "percentage_reverse",
        annotations: {
            title: "Percentage Reverse",
            readOnlyHint: true,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: false,
        },
        description:
            "X is Y% of what? e.g., 30 is 15% of 200",
        inputSchema: {
            type: "object",
            properties: {
                value: { type: "number" },
                percent: { type: "number" },
            },
            required: ["value", "percent"],
        },
    },
  • Handler function for percentage_reverse: takes {value, percent}, computes (value / percent) * 100, throws error if percent is zero.
    percentage_reverse: ({ value, percent }) => {
        // X is Y% of what: (X / Y) * 100
        if (percent === 0)
            throw new Error("Cannot reverse percentage with zero percent.");
        return (value / percent) * 100;
    },
  • percentage_reverse listed in MAIN_THREAD_TOOLS set, meaning it executes synchronously in the main thread (no worker overhead).
    "percentage_of", "percentage_change", "percentage_reverse",
  • cruncher.js:83-83 (registration)
    percentage_reverse included in the 'standard' tool tier (line 83), making it available in the default tool set.
    "percentage_of", "percentage_change", "percentage_reverse",
Behavior4/5

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

Annotations already indicate read-only and idempotent behavior. The description adds functional context by showing the calculation logic, which is valuable beyond the schema.

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?

The description is a single sentence with an example, no wasted words. Front-loaded with the core question format, it is optimally concise.

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?

For a simple math tool with no output schema, the description completely explains inputs and expected output via example. It could add edge cases but is sufficient.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate. The example clearly explains parameter roles: '30 is 15% of 200' maps value=30, percent=15, output=200. This is effective.

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 tool's purpose: 'X is Y% of what?' with a concrete example (30 is 15% of 200). It is specific, uniquely identifying this tool among sibling math calculators.

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

Usage Guidelines3/5

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

The description implies when to use (given a part and its percentage, find the whole) but provides no explicit guidance on when not to use or alternatives. It is adequate but lacks depth.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/islobodan/cruncher-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server