Skip to main content
Glama

add

Perform addition of two numbers using the tool on Flux, an AI-powered MCP server, enabling natural language interaction with AO for simplified code execution.

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "a": { "type": "number" }, "b": { "type": "number" } }, "required": [ "a", "b" ], "type": "object" }

Implementation Reference

  • The inline handler function for the 'add' MCP tool. It takes two numbers 'a' and 'b', computes their sum, and returns a content block with the result as text. Includes the schema and registration inline.
    server.tool("add", { a: z.number(), b: z.number() }, async ({ a, b }) => ({ content: [{ type: "text", text: String(a + b) }], }));

Other Tools

Related Tools

  • @feraranas/remote-mcp-server-authless
  • @zhangzhefang-github/mcp-add-server
  • @wrtnlabs/calculator-mcp
  • @kylekanouse/Test-MCP---DEMO-MCP-Dev-1
  • @YuheiNakasaka/arithmetic-mcp-server
  • @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/asrvd/flux'

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