Skip to main content
Glama

addition

Add two numbers to calculate trading values for the Zerodha Trading Bot, enabling precise financial computations in automated stock trading operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • index.js:32-34 (registration)
    Registration of the 'addition' tool, including inline schema {a: z.number(), b: z.number()} and handler that returns the sum of a and b as text content.
    server.tool("addition", { a: z.number(), b: z.number() }, async ({ a, b }) => ({ content: [{ type: "text", text: `${a + b}` }], }));
  • index.js:32-34 (handler)
    Inline handler function for the 'addition' tool that computes a + b and formats it as MCP content.
    server.tool("addition", { a: z.number(), b: z.number() }, async ({ a, b }) => ({ content: [{ type: "text", text: `${a + b}` }], }));
  • Input schema for the 'addition' tool using Zod: numbers a and b.
    server.tool("addition", { a: z.number(), b: z.number() }, async ({ a, b }) => ({

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/yogendhra9/ZerodhaMCP'

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