import { z } from '@frontmcp/lazy-zod';
import { Tool, ToolContext } from '@frontmcp/sdk';

@Tool({
  name: 'exp',
  description: 'e raised to the power of x',
  inputSchema: { x: z.number() },
  outputSchema: 'number',
})
export default class ExpTool extends ToolContext {
  async execute(input: { x: number }) {
    return Math.exp(input.x);
  }
}
