Skip to main content
Glama
mcp-server-boilerplate

mcp-server-boilerplate

by Co-Ventech

Add

add
Read-onlyIdempotent

Sums two numbers with v2 Zod validation and returns structured output, helping developers test MCP tool input validation and structured responses.

Instructions

Adds two numbers. Shows v2 Zod validation 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
sumYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so safety and repeatability are covered structurally. The description adds nothing behavioral beyond that: the second sentence ("Shows v2 Zod validation and structured output") describes the implementation's documentation value, not how the tool behaves, what errors it raises, or what happens with non-numeric input.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is front-loaded and efficient, but the second sentence is developer-facing meta commentary about Zod validation and structured output that earns no place for an agent selecting or invoking the tool. Half of the definition is therefore wasted.

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?

For a trivial two-number arithmetic tool with a full output schema and read-only/idempotent annotations, very little prose is required, so the description is minimally sufficient. However, it never mentions non-numeric input handling or error behavior, and its second sentence spends the remaining budget on irrelevant implementation detail.

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 both parameters documented as "First number" and "Second number," so the baseline is 3. The description's phrasing "two numbers" restates the schema rather than adding syntax, constraints, or edge-case meaning.

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?

"Adds two numbers" is a specific verb plus resource that leaves no ambiguity about the operation, and the sibling "echo" is clearly a different function. It loses a point only because it never explicitly contrasts itself with the alternative, though the operation is distinct enough that an agent needs no further disambiguation.

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?

There is no when-to-use or when-not-to-use guidance, and no mention of preconditions (e.g., numeric inputs only). The description only implies usage through the phrase "adds two numbers," leaving the agent to infer the context entirely.

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