Skip to main content
Glama

plot_graph

Generate Desmos-style 2D graphs from LaTeX expressions as PNG images for scientific and engineering plots, with support for curves, inequalities, labeled points, colors, and custom bounds.

Instructions

Generate a Desmos-style 2D graph from mathematical expressions. Returns a PNG image. Supports functions, parametric curves, inequalities, points with labels, custom colors, axis labels, and viewport bounds. Ideal for scientific/engineering plots.

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": {
      "expressions": "<expressions>"
    },
    "name": "plot_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNoImage width in pixels (default 800)
boundsNoViewport bounds. If omitted, Desmos auto-fits.
heightNoImage height in pixels (default 800)
pointsNoIndividual labeled points to plot
showGridNoShow grid lines (default true)
degreeModeNoUse degrees instead of radians (default false)
xAxisLabelNoLabel for the x-axis
yAxisLabelNoLabel for the y-axis
expressionsYesList of mathematical expressions to plot

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the return type (PNG image), which is the most important behavioral fact for a rendering tool. It says nothing about error behavior on invalid LaTeX, rendering latency, size limits, or whether the call has any side effects, leaving notable gaps for a no-annotation tool.

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?

Front-loaded with the core action and return value, followed by capability list and audience note in four compact clauses. 'Ideal for scientific/engineering plots' is the only slightly expendable sentence.

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?

Nine parameters with nested objects and no output schema, yet the description covers the return format and the major feature areas, which is enough for correct invocation. It could say more about failure modes for malformed LaTeX or how bounds interact with auto-fit, but nothing critical is missing.

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 is 3; the description goes slightly beyond by enumerating the capability set (functions, parametric curves, inequalities, labeled points, custom colors, axis labels, viewport bounds), which helps an agent map intent to the expressions/points/bounds parameters. It does not add format or syntax guidance beyond the schema.

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?

Names a specific verb and resource ('Generate a Desmos-style 2D graph from mathematical expressions') and states the output artifact ('Returns a PNG image'), which separates it from a URL loader or expression lister. An agent can tell what it will get back without opening the schema.

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

Usage Guidelines3/5

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

'Ideal for scientific/engineering plots' implies a usage context but gives no when-not conditions and does not name or route to sibling tools such as load_desmos_url or get_expressions. Guidance is implied rather than explicit.

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

Deploy Server

Other Tools