Skip to main content
Glama

add_numbers

Calculates the arithmetic sum of two integers (a + b). Use for addition only; not subtraction, multiplication, or division.

Instructions

Calculates the arithmetic sum of two integers (a + b). Use this tool when you need to perform addition. Do not use for subtraction (use 'subtract_numbers' instead), multiplication (use 'multiply_numbers' instead), or division (use 'divide_numbers' instead). Deterministic, pure calculation with no side effects.

Input Schema

NameRequiredDescriptionDefault
aYesThe first integer operand (addend). Range: -2,147,483,648 to 2,147,483,647.
bYesThe second integer operand (addend) to add to 'a'. Range: -2,147,483,648 to 2,147,483,647.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • changedInput schema / properties / a / description
      Previous value: -"The first integer operand"New value: +"The first integer operand (addend). Range: -2,147,483,648 to 2,147,483,647."
    • changedInput schema / properties / b / description
      Previous value: -"The second integer operand"New value: +"The second integer operand (addend) to add to 'a'. Range: -2,147,483,648 to 2,147,483,647."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden; it discloses determinism and absence of side effects, which is genuinely useful for an agent deciding whether to batch or retry. It does not mention error conditions (e.g., integer overflow beyond the stated 32-bit range), but the schema documents the range, so this is a minor gap.

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?

Three sentences, front-loaded with the operation and immediately followed by usage and exclusions. Every sentence earns its place; the sibling exclusions are the payload, not filler.

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-integer pure function with a fully documented schema, the description covers purpose, routing, and side-effect profile, which is sufficient to invoke it correctly. No output schema exists, but the return value (the sum) is obvious from the description.

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 100%, so the baseline is 3; the description adds value by restating the operation as 'a + b', clarifying operand roles and ordering beyond the schema's per-field descriptions. With only two self-explanatory operands, no further semantics are needed.

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 states a specific verb and resource ('Calculates the arithmetic sum of two integers (a + b)') and explicitly distinguishes itself from the named siblings subtract_numbers, multiply_numbers, and divide_numbers. An agent can identify exactly what this tool does and what it is not.

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

Usage Guidelines5/5

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

It states when to use it ('when you need to perform addition') and explicitly lists when not to use it, naming the alternative tool for each excluded operation. This is textbook routing guidance with clear exclusions and named alternatives.

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