Skip to main content
Glama
LostInBrittany

RAGmonsters Custom PostgreSQL MCP Server

add

Calculate the sum of two numbers using a straightforward API endpoint on the RAGmonsters Custom PostgreSQL MCP Server.

Instructions

Add two numbers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • Registration of the 'add' tool including schema and inline handler function
    server.addTool({ name: "add", description: "Add two numbers", parameters: z.object({ a: z.number(), b: z.number(), }), execute: async (args) => { return String(args.a + args.b); }, });
  • The handler function that executes the addition of two numbers and returns the result as a string
    execute: async (args) => { return String(args.a + args.b); },
  • Input schema using Zod defining two required number parameters 'a' and 'b'
    parameters: z.object({ a: z.number(), b: z.number(), }),

Other Tools

Related Tools

  • @zhangzhefang-github/mcp-add-server
  • @kylekanouse/Test-MCP---DEMO-MCP-Dev-1
  • @Mtar786/mcpServer
  • @wrtnlabs/calculator-mcp
  • @githubpradeep/calc-mcp72
  • @YuheiNakasaka/arithmetic-mcp-server

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/LostInBrittany/RAGmonsters-mcp-pg'

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