Skip to main content
Glama

exponential

Calculate the exponential function e^x for any given power value using this tool from MCP Calc Tools server.

Instructions

Calculate exponential function (e^x)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
powerYes

Implementation Reference

  • The handler function that executes the exponential tool logic by computing Math.exp(power).
    async ({ power }) => { return Math.exp(power); }
  • Input and output schema definitions for the 'exponential' tool: input requires a 'power' number, outputs a number.
    inputSchema: z.object({ power: z.number() }), outputSchema: z.number(), },
  • index.js:190-202 (registration)
    Registration of the 'exponential' tool using ai.defineTool, including name, description, schema, and inline handler.
    ai.defineTool( { name: 'exponential', description: 'Calculate exponential function (e^x)', inputSchema: z.object({ power: z.number() }), outputSchema: z.number(), }, async ({ power }) => { return Math.exp(power); } );

Other Tools

Related Tools

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/nbiish/mcp-calc-tools'

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