Skip to main content
Glama

Evaluate expressions

ggb_evaluate
Read-only

Evaluate GeoGebra expressions against the current figure without adding objects to verify geometric constructions.

Instructions

Evaluate GeoGebra expressions against the current figure WITHOUT adding objects, to verify the construction. Examples: "Angle(B, A, C)", "Distance(B, M) == Distance(M, C)", "AreCollinear(A, H, O)", "AreParallel(Line(A, D), Line(B, C))", "Radius(omega)", "Area(poly1)".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expressionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=true; the description adds the meaningful behavioral fact that evaluation leaves the figure unchanged, which is stronger than the annotation alone. It omits what happens on invalid expressions or how results are returned, but the critical side-effect question is answered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause and the examples follow as supporting detail. The example list is slightly long but each sample demonstrates a distinct expression class (measurement, equality check, predicate, object property).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description should indicate what evaluation yields (numeric values, booleans, per-expression results) and how failures are surfaced; it says nothing about return shape or error behavior. The functional purpose and expression syntax are well covered, so the gap is limited to results handling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single 'expressions' array, so the description must carry the load, and its six concrete expression examples do substantially clarify the expected GeoGebra syntax and boolean-comparison forms. It does not explain batch semantics (one result per item, evaluation order) or the 1-50 item bounds.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Evaluate) plus resource (GeoGebra expressions against the current figure) and explicitly scopes it as not adding objects, which is exactly what separates it from the sibling ggb_run_commands. An agent can pick between the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'WITHOUT adding objects, to verify the construction' gives a clear use context (checking/validating an existing figure rather than mutating it), implying the alternative ggb_run_commands for object creation. It never names that sibling or states when-not to use this tool, so it stops short of explicit routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.