calculator
Evaluate mathematical expressions securely using a TypeScript-based MCP server tool. Input expressions in string format to compute results reliably.
Instructions
A safe calculator that can evaluate mathematical expressions.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
expression | Yes | A mathematical expression to evaluate. Example: "2 * (3 + 4)" |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"expression": {
"description": "A mathematical expression to evaluate. Example: \"2 * (3 + 4)\"",
"type": "string"
}
},
"required": [
"expression"
],
"type": "object"
}