Skip to main content
Glama
YuheiNakasaka

Arithmetic MCP Server

multiply

Calculate the product of two numbers using multiplication. This tool performs basic arithmetic operations to multiply numerical values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • Handler function for the 'multiply' tool that multiplies inputs 'a' and 'b' and returns the result in Japanese text format.
    async ({ a, b }) => ({ content: [{ type: "text", text: `${a} と ${b} の掛け算の結果: ${a * b}` }] })
  • Input schema for the 'multiply' tool, defining two number parameters 'a' and 'b' using Zod.
    { a: z.number(), b: z.number() },
  • src/index.ts:37-46 (registration)
    Registration of the 'multiply' tool using server.tool(), including schema and inline handler.
    server.tool( "multiply", { a: z.number(), b: z.number() }, async ({ a, b }) => ({ content: [{ type: "text", text: `${a} と ${b} の掛け算の結果: ${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/YuheiNakasaka/arithmetic-mcp-server'

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