Skip to main content
Glama

Equation Plotter

Plot and analyse equations

plot_equations
Read-onlyIdempotent

Analyse and plot one or more equations on a single set of axes.

Accepted inputs (one string per equation):

  • explicit: "y = x^2 - 3x + 2", "f(x) = 1/(x-2)", bare "x^3 - x"

  • implicit: "x^2 + y^2 = 25", "x^2/9 - y^2/4 = 1", "xy = 1"

  • parametric: "x = cos(t), y = sin(t)" - polar: "r = 1 + cos(theta)", "r^2 = 4cos(2theta)"

  • inequalities (shaded): "y > x^2", "x^2 + y^2 <= 9"

  • LaTeX subset: "y = \frac{1}{x-2}" Syntax: ^ for powers, implicit multiplication (3x, 2sin x), constants pi and e, functions sin cos tan sec csc cot asin acos atan sinh cosh tanh exp ln log (base 10) sqrt cbrt abs floor ceil.

Returns JSON text (schema version "1.0"; errors come back as {"error": {code, message}}) plus the graph as an image. Ranges are [min, max]; values may be numbers or strings like "2pi".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "equations": "<equations>"
    },
    "name": "plot_equations"
  }
}

Input Schema

NameRequiredDescriptionDefault
t_rangeNoParameter range for parametric curves
timeoutNoSymbolic analysis budget in seconds (max 15)
x_rangeNo[min, max]; numbers or expressions like '-2pi'
y_rangeNo[min, max]; numbers or expressions like '-2pi'
equationsYesEquations to plot together (1-8)
theta_rangeNoTheta range for polar curves
image_formatNopng (shown inline), svg (returned base64 inside the JSON), or nonepng

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds useful non-annotation context: JSON text with schema version "1.0", errors as {"error": {code, message}}, plus an image, and the image_format semantics (png inline, svg base64 in JSON, none). It does not discuss analysis cost, failure modes for unparseable equations, or what the JSON payload contains beyond the error shape, so this is a moderate rather than rich contribution.

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?

The purpose is front-loaded, the input taxonomy is a scannable bullet list, and the return contract closes the description. The function-and-constants line is dense but functional rather than padded; a slight tightening of the syntax enumeration would make it cleaner.

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

Completeness4/5

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

With 7 parameters, no output schema, and an image side-channel, the description does the necessary work: it documents accepted input forms, range conventions, and the return/error envelope. The remaining gap is that image_format="none" and the JSON-only path are not explained in terms of what analysis fields come back, leaving the return payload partly opaque.

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 100%, so baseline would be 3; the description earns an extra point by specifying the full grammar of the `equations` strings (^, implicit multiplication, pi/e, function list) and confirming that ranges are [min, max] and may be strings like "2pi", which goes well past the schema's terse "Equations to plot together (1-8)". It adds no guidance on t_range vs theta_range selection or on timeout trade-offs beyond the schema text.

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?

The opening sentence names a specific verb pair ("Analyse and plot") and its resource ("one or more equations on a single set of axes"), immediately telling an agent exactly what the tool produces. The following bullets enumerate the equation families (explicit, implicit, parametric, polar, inequalities, LaTeX) so the agent can tell in one read whether its input belongs here.

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 description gives concrete, actionable context: one string per equation, the accepted forms, and the supported syntax/constants, which is what an agent needs to decide the input is in scope. There are no sibling tools and no explicit when-not-to-use section, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.