aiml-calc
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Exact, step-by-step implementations of classic AI and ML algorithms from Russell & Norvig's AIMA: search, propositional and first-order logic, SAT, constraint satisfaction, game search, probability and machine learning. Use them to compute or verify any trace or numeric result rather than working it out mentally. Every result starts with Answer: and ends with the conventions used (tie-breaking, goal-test timing, etc.); if the problem uses a different convention, pass the matching parameter and rerun.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_traceB | Trace a search algorithm step by step (selected node, children added/skipped, frontier, explored set). algorithm: bfs | dfs | ucs | greedy | astar | dls | ids | idastar edges: [[from, to, cost], ...]; cost defaults to 1. Undirected unless directed=true. heuristic: {"state": h, ...} for greedy / astar / idastar. mode: "graph" (explored set; don't re-add states in frontier/explored) or "tree" (no explored set). child_order: "alphabetical" or "given" (order edges were listed). tie_break: alphabetical | fifo | lifo. goal_test: "default" (BFS on generation, everything else on selection), "generation" or "selection". |
| heuristic_checkA | Is a heuristic admissible (h ≤ true cost) and consistent (h(n) ≤ c(n,n') + h(n'))? Optionally compare two for dominance. |
| truth_tableB | Truth table and model count for one or more formulas. Syntax: ¬ ~ ! -, ∧ &, ∨ |, ⇒ =>, ⇔ <=>. extra_symbols: symbols in the problem that don't appear in the formula (they still double the model count). |
| cnf_convertB | Convert a formula to CNF with each rewrite step, plus the compact form (e.g. -BvSvW) and a truth-table check. |
| entailment_checkC | Does KB ⊨ query? Method 1: model checking (truth table). Method 2: resolution refutation. |
| resolution_proofB | Resolution: convert KB ∧ ¬query to clauses and derive the empty clause, listing each resolvent used. |
| forward_chainingC | Forward chaining over definite clauses (e.g. "L & M => P") with the agenda and count table at every step. |
| backward_chainingC | Backward chaining over definite clauses, shown as an indented goal tree (checked against forward chaining). |
| dpll_traceC | DPLL as a step summary ("Step 1: A=true, B=true, C=true, fail") plus a detailed trace. clauses: ["A | ~B | C", ...] or compact ["Av-BvC", ...]. Unit clauses are taken in the order given. |
| walksat_stepB | One WalkSAT step: which clauses are false, the satisfied-clause count after each possible flip, the greedy choice, and every assignment reachable in one step. clause_index (1-based) fixes which false clause is picked. |
| walksat_runC | A full randomised WalkSAT run for practice (repeatable with a seed). |
| neuron_outputC | Output of one neuron. weights = [w0 (bias), w1, ...]. activation: all | threshold | logistic | relu | tanh | linear. |
| hypothesis_checkC | Which linear classifiers get every example right? examples: [[x1, ..., y]]; hypotheses: [[w0, w1, ...]]. |
| weight_updateC | Perceptron (threshold) or logistic single-example weight updates, one row per example. examples: [[x1, ..., y]]. |
| linear_regression_fitB | Least-squares linear regression. Univariate: two closed-form methods. Multivariate: normal equations. |
| gradient_descent_stepsC | Gradient descent on squared error for a linear model. mode: batch | stochastic. weights = [w0, w1, ...]. |
| logistic_regression_calcB | Logistic regression probability, and (with y and alpha) one update step under both common rules. |
| kmeans_stepC | k-means: distance table, assignments, new centres (and quality measures). Ties go to the first centre. |
| knn_classifyC | k-nearest-neighbour classification. train rows: [a1, ..., an, label]. Optional min-max normalisation. |
| cnn_layer_sizeB | Convolutional layer output volume, number of neurons and number of (shared) weights. input_shape: [A, B, C]; filter_size: [P, Q] or [P, Q, C]. |
| fc_layer_weightsC | Weights in a fully connected layer: (inputs + 1) × neurons. |
| mlp_forward_backpropB | Forward pass through a feed-forward network and, with targets, one back-propagation step (AIMA Fig 18.24). layers[l][j] = weights [w0, w1, ...] of unit j in layer l. |
| fol_unifyA | Most general unifier of two first-order terms or atoms, e.g. "Knows(John, x)" and "Knows(y, Mother(y))". Variables start lower-case; constants, functions and predicates start upper-case. |
| fol_forward_chainingC | First-order forward chaining over definite clauses ("A(x) & B(x, y) => C(y)" or ground facts), round by round. |
| fol_backward_chainingC | First-order backward chaining: depth-first proof tree with variables renamed apart for each rule use. |
| csp_backtrackingB | Backtracking search for a CSP. constraints: [[X, op, Y]] with op in != == < > <= >=; or neighbours {X: [Y, ...]} meaning X != Y (map colouring). variable_order: static | mrv. value_order: static | lcv. inference: none | forward_checking | mac. |
| csp_ac3C | AC-3 arc consistency: every arc revision, the values removed and the arcs re-queued. |
| game_minimaxB | Minimax / expectiminimax values for a game tree. tree: nested lists of leaf utilities (levels alternate MAX, MIN) or {"children": {...}, "values": {...}, "types": {"B": "chance"}, "probabilities": {"B": [0.5, 0.5]}}. |
| game_alphabetaC | Alpha-beta pruning, left to right: α and β at every node, which subtrees are pruned, checked against minimax. |
| bayes_ruleB | P(H | E) from P(H), P(E | H) and P(E | ¬H), by formula and by natural frequencies. |
| joint_distribution_queryB | P(query | evidence) from a full joint table of Boolean variables. Rows: [v1, v2, ..., probability]. |
| bayes_net_queryB | Exact inference in a Bayesian network by enumeration, checked against the full joint distribution. nodes: {"Alarm": {"parents": ["Burglary", "Earthquake"], "cpt": {"T,T": 0.95, "T,F": 0.94, "F,T": 0.29, "F,F": 0.001}}, "Burglary": {"cpt": {"": 0.001}}, ...}; CPT values are P(node = true | parents). |
| naive_bayes_classifyC | Naive Bayes classification from categorical data rows [attr values..., class], with optional Laplace smoothing. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 33 tools
Most tools target distinct algorithms or algorithm families, with clear topic separation across search, logic, probability, ML, and neural networks. A few clusters overlap, especially truth_table/entailment_check/resolution_proof and propositional vs first-order chaining, but the descriptions generally expose the boundaries.
All tool names use readable snake_case, which is a consistent surface convention. However, the underlying pattern is mixed: some are noun_verb (e.g., walksat_run, truth_table), some are algorithm_action (e.g., fol_unify, csp_ac3), and abbreviations are used unevenly.
At 33 tools, the surface is substantially larger than the typical well-scoped 3-15 range and is heavy for an agent to navigate. The breadth of AI/ML topics justifies many tools, but several educational variants could potentially be consolidated.
The set covers a broad range of classic AI/ML topics, including search, games, CSPs, propositional and first-order logic, probabilistic inference, basic ML, and neural network calculations. Some major areas such as reinforcement learning, decision trees, HMMs, and SVM-specific tools are absent, but the covered domains are mostly self-contained.