Skip to main content
Glama
LwXLabs.Mcp.Template.NodeJs

LwXLabs.Mcp.Template.NodeJs

by lwxlabs

example.add

Read-onlyIdempotent

Adds two signed 32-bit integers and returns the sum without integer overflow.

Instructions

Adds two signed 32-bit integers without integer overflow.

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

Input Schema

NameRequiredDescriptionDefault
aYesFirst integer.
bYesSecond integer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds one genuinely useful behavioral detail — overflow-free arithmetic — but leaves ambiguous what actually happens at the boundaries (error, saturation, or wider promotion) and what is returned.

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 sentence with zero waste, front-loaded with the operation and the key constraint. Nothing could be trimmed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must carry the return semantics, and it never states that the result is a single integer nor how overflow is handled. For a two-parameter arithmetic tool this is a real but small gap.

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% with two required, bounded integer parameters whose names (a, b) are self-explanatory. The description adds no meaning beyond the schema, so the baseline score of 3 applies.

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?

States a precise verb (adds) and resource (two signed 32-bit integers), plus a scope constraint (no integer overflow). The sibling tools (example.echo, example.status) are unrelated utilities, so no differentiation is needed; an agent can identify this as the arithmetic tool immediately.

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

Usage Guidelines2/5

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

The description offers no when-to-use guidance, no alternatives, and no prerequisites. Usage is only implied by the verb 'adds' — nothing tells an agent when this tool is the right choice versus computing the sum itself.

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