Skip to main content
Glama
SanLangLOVE

Simple Calculator MCP

by SanLangLOVE

multiply

Calculate the product of two numbers using this mathematical tool from the Simple Calculator MCP server. Enter two numerical values to get their multiplication result.

Instructions

计算两个数字的乘积

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes第一个数字
bYes第二个数字

Implementation Reference

  • The handler function for the 'multiply' tool. It extracts parameters 'a' and 'b' from the arguments, computes their product, and returns a text response with the formatted result.
    case "multiply": { const { a, b } = args as { a: number; b: number }; const result = a * b; return { content: [ { type: "text", text: `${a} × ${b} = ${result}`, }, ], }; }
  • The schema definition for the 'multiply' tool, including name, description, and inputSchema specifying two required number parameters 'a' and 'b'.
    { name: "multiply", description: "计算两个数字的乘积", inputSchema: { type: "object", properties: { a: { type: "number", description: "第一个数字", }, b: { type: "number", description: "第二个数字", }, }, required: ["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/SanLangLOVE/mcp-calculator'

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