Skip to main content
Glama
MCP Financial Calculator

MCP Financial Calculator

subtract

Calculates the difference between two financial values by removing the second number from the first.

Instructions

Subtract b from a.

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "subtract"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose the one behavior that matters most — that the result is a minus b rather than b minus a — but says nothing about the returned type, numeric precision, or handling of non-numbers.

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?

A single clause, front-loaded with the verb and with zero filler. Nothing could be removed without losing meaning, and the operand order is stated up front.

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 two-number primitive with no output schema and no nested objects, the definition is nearly sufficient; the only real gap is the unspecified return value. It meets the bar for a tool of this low complexity.

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% and both parameters are opaque single letters, so the description must compensate. It gives the essential semantic distinction (a is the minuend, b the subtrahend), but does not otherwise clarify the parameters beyond what the names already imply.

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?

"Subtract b from a" names a specific arithmetic operation and fixes the operand order, which cleanly separates it from siblings like add, multiply, and divide. It stops just short of 5 because it does not reference the sibling family at all, leaving the agent to infer it from the name.

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?

There is no explicit when-to-use, when-not-to-use, or alternative-naming guidance. However, for an unambiguous arithmetic primitive the usage is self-evident from the statement itself, so implied guidance is adequate here.

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