Skip to main content
Glama
islobodan

Crucher MCP

factorial

Read-onlyIdempotent

Calculate the factorial of a non-negative integer (n!). Supports values up to 170. Set custom timeout for server computation.

Instructions

Factorial of non-negative integer (n!). n > 170 overflows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nYes
timeoutNoCustom timeout in ms (100-60000, default: 3000)
Behavior4/5

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

Annotations provide readOnlyHint and idempotentHint. Description adds non-negative integer constraint and overflow at n>170, which is critical behavioral info beyond annotations. No contradictions.

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?

Description is two sentences, front-loaded with purpose, no unnecessary words. Efficiently conveys key info.

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

Completeness5/5

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

Given the tool's simplicity, the description covers purpose, constraint, and overflow. No output schema needed; return value is standard. Timeout parameter is documented in schema. Complete for the context.

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 50% (timeout described). Description adds that n must be non-negative integer, which supplements the schema's type number. However, it does not fully describe parameter behavior (e.g., expected input range beyond overflow).

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?

Description clearly states 'Factorial of non-negative integer (n!)' which specifies the verb (compute factorial) and resource (non-negative integer). It also mentions overflow condition, and since siblings are other math functions, this tool is distinct.

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?

No explicit guidance on when to use vs alternatives, but the purpose is self-explanatory for a factorial tool. The description implies it's for factorial computation, but does not exclude alternative tools or provide context.

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