Skip to main content
Glama

Add numbers

add
Read-onlyIdempotent

Computes the sum of two finite numbers and returns both text and structured output for straightforward numerical calculations.

Instructions

Add two finite numbers and return both text and structured output.

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": "add"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesFirst number
bYesSecond number

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds value beyond them by disclosing the output shape (text plus structured content) and a domain restriction (finite numbers only), which hints at validation behavior for NaN/Infinity inputs.

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?

One sentence with zero filler, and the two pieces of information an agent needs (operation and return shape) are both front-loaded. Nothing is repeated from the title or restated redundantly.

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 simple two-parameter tool with full schema coverage, annotations, and an output schema, the description covers purpose and return behavior adequately. It does not say what happens with non-finite or missing input, a minor gap given the 'finite' qualifier it introduces.

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 100%, so both parameters 'a' and 'b' are already documented as the first and second number. The description adds no format, range, or ordering detail beyond that, so the baseline of 3 is appropriate.

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 gives a specific verb (add) and resource (two finite numbers), making it immediately distinguishable from arithmetic siblings such as multiply. It stops short of naming or contrasting any sibling, so it is clear but not fully self-differentiating.

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?

Usage is implied rather than stated: the word 'finite' signals that inputs must be real finite numbers, which is mild scoping guidance. There is no explicit when-to-use, when-not-to-use, or pointer to alternatives, though for a two-parameter arithmetic primitive little more is expected.

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