@halfords-pro/calculator
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@halfords-pro/calculatorSum 19.99, 4.99, and 8.50 to 2 decimal places"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@halfords-pro/calculator
An MCP (Model Context Protocol) server providing calculator tools with precise decimal arithmetic, suitable for accounting and tax calculations.
Features
Precise decimal arithmetic — uses decimal.js to avoid floating-point errors
Excel-style rounding — round half away from zero (ROUND_HALF_UP), the standard for accounting and tax
MCP protocol — integrates with any MCP-compatible client (Claude Desktop, Claude Code, etc.)
Related MCP server: mcp-abacus
Installation
npm install -g @halfords-pro/calculatorUsage
Claude Desktop
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": ["-y", "@halfords-pro/calculator"]
}
}
}Claude Code
claude mcp add calculator -- npx -y @halfords-pro/calculatorTools
sum
Sum an array of signed decimal numbers and round the result to a specified number of decimal places.
Parameters:
Name | Type | Required | Description |
|
| Yes | Array of signed decimal numbers to sum |
|
| Yes | Number of decimal places to round the result to |
Examples:
sum({ values: [1.00, -2.50, 3.89], decimalPlaces: 2 })
→ "2.39"
sum({ values: [1.00, -2.50, 3.89283829, -539.38390293], decimalPlaces: 4 })
→ "-536.9911"
sum({ values: [0.1, 0.2], decimalPlaces: 2 })
→ "0.30" (not 0.30000000000000004)Rounding behaviour:
Uses "round half away from zero" (equivalent to Excel ROUND()):
Value | Rounded to 2dp |
2.125 | 2.13 |
-2.125 | -2.13 |
2.124 | 2.12 |
Development
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Launch MCP Inspector
npm run inspectorLicense
ISC
Available Tools
1 toolsumA
Sum an array of signed decimal numbers and round the result to a specified number of decimal places. Uses precise decimal arithmetic suitable for accounting and tax calculations. Rounding uses the 'round half away from zero' strategy (equivalent to Excel ROUND).
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Array of signed decimal numbers to sum (e.g. [1.00, -2.50, 3.89]) | |
| decimalPlaces | Yes | Number of decimal places to round the result to (e.g. 2 for 2 decimal places) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure. It reveals that arithmetic is precise decimal, that rounding uses 'round half away from zero', and that the rounding applies to the result. These are meaningful behavioral details beyond the basic sum operation, so an agent can predict the tool's output and limitations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences, no filler. The primary operation and rounding behavior are front-loaded, followed by precision context and a concrete Excel comparison. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple two-parameter math tool, the description covers the operation, precision model, rounding strategy, and typical use case. It does not mention return value or parameter constraints like decimalPlaces being a non-negative integer, but those are inferable and low risk. The description is effectively complete for this complexity level.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already covers 100% of parameters with descriptions and examples. The tool description reinforces these semantics by mentioning signed decimal numbers and rounding the result, but adds no constraints or edge-case handling beyond the schema. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Sum'), the exact resource (an array of signed decimal numbers), and an additional transformation (rounding to a specified number of decimal places). It is unambiguous and fully describes the tool's core function even with no sibling tools to differentiate from.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There are no sibling tools to compare against, but the description provides strong usage context by noting it is 'suitable for accounting and tax calculations' and equivalent to Excel ROUND. This implicitly tells the agent when to prefer it, though it does not explicitly state exclusions or alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.1.1- First observed
sum
TDQS
With only one tool, there is zero ambiguity—the 'sum' tool has a clear, singular purpose that cannot be confused with anything else.
The single tool name 'sum' is simple, descriptive, and perfectly aligned with its operation, presenting no inconsistency issues.
A calculator server exposing only one tool is too sparse for its apparent domain; even a minimal arithmetic toolkit would include multiple basic operations.
The server covers only addition, missing essential operations like subtraction, multiplication, division, or more advanced calculator functions, making the surface severely incomplete.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
High-precision finance & business calculations for AI agents — exact decimals, never floats.
Headless API-first double-entry accounting & bookkeeping engine. 84 MCP tools over HTTP.
Hosted MCP server for Mini Accountant: invoices, expenses, customers, analytics, tax estimates.
MCP server for Quaderno — tax-rate calculation, invoices, contacts, products, receipts & expenses.
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides double-entry accounting ledger creation, transaction recording, and financial reporting capabilities via MCP.7-
- AlicenseAqualityAmaintenancePure-Python MCP server for type-faithful calculation — evaluate expressions under fixed-point, IEEE-754 double, or exact rational arithmetic, with every answer labelled with its precision (exact vs inexact).51GPL 3.0
- AlicenseAqualityDmaintenanceAn MCP server and CLI providing business, financial, and tax calculations including math expressions, income tax estimates, loan amortization, depreciation, and more.102MIT
- AlicenseBqualityCmaintenanceHigh-precision mathematics server for MCP clients, providing exact integer arithmetic, symbolic derivatives, and numerical calculus via LaTeX-style input.6172MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/halfords-pro/calculator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server