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
| Name | Required | Description | Default |
|---|---|---|---|
| power | Yes |
Implementation Reference
- index.js:199-201 (handler)The handler function that executes the exponential tool logic by computing Math.exp(power).async ({ power }) => { return Math.exp(power); }
- index.js:194-198 (schema)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); } );