math-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TIMEOUT | No | Evaluation timeout in milliseconds (default: 5000) | 5000 |
| ALLOWED_FUNCTIONS | No | Comma-separated list of allowed functions | |
| MAX_RECURSION_DEPTH | No | Maximum recursion depth (default: 100) | 100 |
| MAX_EXPRESSION_LENGTH | No | Maximum expression length (default: 1000) | 1000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| evaluateB | Evaluate mathematical expressions with strict grammar validation |
| validate_syntaxB | Validate mathematical expression syntax against grammar |
| set_variableB | Set a variable value in the math context |
| get_variableB | Get the value of a variable |
| list_variablesA | List all defined variables |
| clear_variablesA | Clear all defined variables |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Mathematical Grammar Specification | BNF grammar specification for supported mathematical expressions |
| Supported Functions | List of supported mathematical functions |
| Mathematical Constants | List of predefined mathematical constants |
TDQS
Scored across 6 tools
Each tool has a distinct purpose: evaluate computes, validate_syntax checks syntax, and variable tools manage context state. No two tools overlap in a confusing way.
Variable tools follow a clear verb_noun pattern (set_variable, get_variable, list_variables, clear_variables), but evaluate and validate_syntax are single verbs without a noun, mixing conventions. Still readable but not fully consistent.
Six tools is well-scoped for a math expression server, covering evaluation, validation, and variable management without excess or deficiency.
Core features are covered: evaluate, validate, and variable CRUD. A minor gap is lack of single-variable deletion (only clear all), but set_variable can overwrite, so agents can work around it.