Skip to main content
Glama
MCP Playground

MCP Playground

by anhkhoa289

add

Calculates the sum of two numeric inputs for MCP Playground testing and demos, returning the combined result.

Instructions

Adds two numbers together

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

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?

With no annotations, the description must convey behavior, and it does establish this is a pure addition of two operands with no side effects. It does not state the return type, numeric precision behavior (e.g., float vs integer), or overflow handling, leaving some behavioral questions unanswered.

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 short sentence that front-loads the verb and operands with zero filler. Nothing could be removed without losing information.

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-parameter pure arithmetic tool with no annotations and no output schema, the definition is nearly sufficient; the only missing piece is a note on what is returned (a number) since no output schema exists. That is a minor gap given how predictable the operation is.

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 coverage is 100%, with both parameters documented as 'First number' and 'Second number', so the description only needs to confirm the operation is numeric addition. The baseline 3 applies because the description adds the arithmetic relationship between a and b but no format or constraint detail beyond the schema.

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 and operation ('adds two numbers together'), which fully disambiguates it from siblings like echo and get_time that share no similar function. No explicit sibling comparison is made, but none is needed for an arithmetic primitive.

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 statement, but usage is implied by the operation itself: call it to sum two numeric values. For a trivial pure-function tool the absence of exclusions or alternatives costs little.

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

Deploy Server

Other Tools