Skip to main content
Glama
islobodan

Crucher MCP

absolute

Read-onlyIdempotent

Returns the absolute value of a given number. Use it to determine magnitude regardless of sign.

Instructions

Absolute value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes

Implementation Reference

  • cruncher.js:498-513 (registration)
    Tool registration/definition for 'absolute' — includes name, annotations, description, and inputSchema (requires a single 'value' of type number).
    {
        name: "absolute",
        annotations: {
            title: "Absolute Value",
            readOnlyHint: true,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: false,
        },
        description: "Absolute value.",
        inputSchema: {
            type: "object",
            properties: { value: { type: "number" } },
            required: ["value"],
        },
    },
  • Input schema for 'absolute': object with one property 'value' (number), required.
    inputSchema: {
        type: "object",
        properties: { value: { type: "number" } },
        required: ["value"],
    },
  • Handler implementation for 'absolute': returns Math.abs(value) — a one-liner delegate to JavaScript's Math.abs.
    /**
     * Absolute value.
     * @param {Object} args - The arguments object.
     * @param {number} args.value - The number.
     * @returns {number} The absolute value of value.
     */
    absolute: ({ value }) => Math.abs(value),
  • The 'absolute' tool is listed in MAIN_THREAD_TOOLS set, meaning it executes synchronously on the main thread (no worker overhead).
    "power", "sqrt", "logarithm", "natural_log", "absolute",
    // Constant lookup
  • The 'absolute' tool is included in the 'standard' tool tier, meaning it is available in both standard and full modes.
    "sqrt", "power", "absolute", "modulo", "factorial",
    "logarithm", "natural_log", "get_constant",
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint, and idempotentHint, so the description adds no further behavioral context. It does not contradict annotations but also does not enhance transparency.

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 extremely concise—a single phrase—with no wasted words. For a simple math function, this is appropriately sized and front-loaded.

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 the tool's simplicity, the description lacks details about return type, special value handling (e.g., NaN), and context for use. No output schema exists to fill gaps, leaving the description incomplete.

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

Parameters2/5

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

Schema description coverage is 0%, and the description 'Absolute value.' does not explain the single required parameter 'value' or its expected format. It fails to compensate for the lack of schema descriptions.

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?

The description 'Absolute value.' clearly indicates the tool computes the absolute value of a number. However, it does not differentiate from sibling math tools like 'sqrt' or 'add', lacking specific context that sets it apart.

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 is provided on when to use this tool versus alternatives (e.g., for handling negative numbers). The description offers no context for appropriate use cases or exclusions.

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