Skip to main content
Glama
vipankumar87

MCP Multi-Tool Server

by vipankumar87

add

Add two numbers together to calculate their sum. This tool performs basic addition for mathematical calculations.

Instructions

Add two numbers together.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • server.py:73-76 (handler)
    The 'add' tool handler function that adds two floating-point numbers. It is registered using the @mcp.tool() decorator, with input schema defined by the type hints (a: float, b: float) and output float.
    @mcp.tool()
    def add(a: float, b: float) -> float:
        """Add two numbers together."""
        return a + b
Behavior2/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 of behavioral disclosure. It states the action ('add two numbers together') but doesn't cover traits like error handling (e.g., for non-numeric inputs), performance, or output format. This is a basic description with significant gaps for a tool with no annotation coverage.

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?

The description is a single, efficient sentence: 'Add two numbers together.' It is front-loaded with the core action and wastes no words, making it highly concise and well-structured for its simplicity.

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?

Given the tool's low complexity (basic arithmetic), no annotations, no output schema, and simple parameters, the description is minimally complete. It states what the tool does but lacks details on behavior, usage context, or output. For such a simple tool, this is adequate but leaves gaps that could be addressed with more context.

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?

The input schema has 0% description coverage, but the description compensates by clarifying that parameters 'a' and 'b' are numbers to be added. It adds meaning beyond the schema's type definitions by specifying their role in the operation. Since there are only two parameters and their purpose is clear, this is adequate.

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 clearly states the tool's purpose: 'Add two numbers together.' It specifies the verb ('add') and the resource ('two numbers'), making the function unambiguous. However, it doesn't explicitly differentiate from sibling tools like 'calculate_percentage' or 'multiply', though the operation is inherently distinct.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'subtract' or 'multiply', nor does it specify contexts where addition is preferred over other operations. Usage is implied by the name but not explicitly stated.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vipankumar87/MCP-Example'

If you have feedback or need assistance with the MCP directory API, please join our Discord server