Skip to main content
Glama

add

Perform addition of two numerical values (a and b) to simplify Ethereum blockchain calculations and data analysis tasks using the ethereum-tools suite.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • Executes the addition of two input numbers 'a' and 'b', returning the result as a text content block.
    async ({ a, b }) => ({ content: [{ type: "text", text: String(a + b) }] })
  • Zod input schema validating 'a' and 'b' as numbers for the 'add' tool.
    { a: z.number(), b: z.number() },
  • tools/utility.js:9-14 (registration)
    Registers the 'add' tool on the MCP server with its schema and handler function.
    server.tool("add", { a: z.number(), b: z.number() }, async ({ a, b }) => ({ content: [{ type: "text", text: String(a + b) }] }) );

Other Tools

Related Tools

  • @minimind-org/mcp-server-typescript-template
  • @joeguo911/mcp-demo
  • @Mtar786/mcpServer
  • @githubpradeep/calc-mcp71
  • @wudongjie/example-mcp-server
  • @parameshwaran1/mcpserverexample

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/0xGval/evm-mcp-tools'

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