Skip to main content
Glama

add

Perform addition of two numbers using the Remote MCP Server (Authless), enabling integration with AI clients like Claude Desktop or Cloudflare AI Playground for numerical operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • The inline handler function for the 'add' tool that takes two numbers a and b, computes their sum, and returns it as a text content response.
    async ({ a, b }) => ({ content: [{ type: "text", text: String(a + b) }], })
  • Zod input schema for the 'add' tool, defining parameters a and b as numbers.
    { a: z.number(), b: z.number() },
  • src/index.ts:14-20 (registration)
    Registration of the 'add' tool on the MCP server using this.server.tool(), specifying name, schema, and handler.
    this.server.tool( "add", { a: z.number(), b: z.number() }, async ({ a, b }) => ({ content: [{ type: "text", text: String(a + b) }], }) );

Other Tools

Related Tools

  • @YuheiNakasaka/arithmetic-mcp-server
  • @zhangzhefang-github/mcp-add-server
  • @FuzzyCZX/MCP
  • @dynstat/mcp-demo
  • @kylekanouse/Test-MCP---DEMO-MCP-Dev-1
  • @githubpradeep/calc-mcp72

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/feraranas/remote-mcp-server-authless'

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