Skip to main content
Glama
binodrajpandey

MCP Server Example

multiply

Calculate the product of two numbers to perform multiplication operations. Use this tool to multiply numeric values in arithmetic calculations.

Instructions

Multiply two numbers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • server.py:26-29 (handler)
    The multiply tool handler function with @mcp.tool() decorator. Takes two float parameters and returns their product. The decorator registers it as an MCP tool, and type hints define the input/output schema.
    @mcp.tool()
    def multiply(a: float, b: float) -> float:
        """Multiply two numbers."""
        return a * b
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/binodrajpandey/mcp-example'

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