Skip to main content
Glama

multiply

Calculate the product of two numbers by multiplying them together using this mathematical tool.

Instructions

Multiply two numbers together.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • server.py:83-86 (handler)
    The handler function for the 'multiply' tool, decorated with @mcp.tool() which registers it in the FastMCP server. It multiplies two float numbers and returns the result. The type hints define the input schema.
    @mcp.tool() def multiply(a: float, b: float) -> float: """Multiply two numbers together.""" return a * b

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