Skip to main content
Glama

MCP Calculator Service

by amandhunna
dummy.js1.45 kB
const multi = { id: "msg_01UPXQmU7cSDfqaaKeyfFhLc", type: "message", role: "assistant", model: "claude-3-7-sonnet-20250219", content: [ { type: "text", text: 'I need to break down this calculation into steps following BODMAS rules.\n\nFirst, I\'ll add 4 and 4, then from that result, I\'ll subtract 3.\n\nStep 1:\n\n```json\n{\n "tool": "add",\n "parameters": {\n "num1": 4,\n "num2": 4\n },\n "explanation": "Adding 4 and 4 to get the first result"\n}\n```\n\nAfter getting the result from the addition (which would be 8), I would then:\n\nStep 2:\n\n```json\n{\n "tool": "subtract",\n "parameters": {\n "num1": 8,\n "num2": 3\n },\n "explanation": "Subtracting 3 from the previous result (8)"\n}\n```', }, ], stop_reason: "end_turn", stop_sequence: null, usage: { input_tokens: 417, cache_creation_input_tokens: 0, cache_read_input_tokens: 0, output_tokens: 197, }, }; const x3 = { id: "msg_01CoTAFvYm7vf8jEmBuPXP5v", type: "message", role: "assistant", model: "claude-3-7-sonnet-20250219", content: [ { type: "text", text: '{\n "tool": "add",\n "parameters": {\n "num1": 4,\n "num2": 4\n },\n "explanation": "Adding 4 and 4 together"\n}', }, ], stop_reason: "end_turn", stop_sequence: null, usage: { input_tokens: 411, cache_creation_input_tokens: 0, cache_read_input_tokens: 0, output_tokens: 56, }, };

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/amandhunna/mcpserver'

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