Skip to main content
Glama

Box Plot

plot_box_plot
Read-onlyIdempotent

Compare distributions across multiple groups with a customizable box plot, including labels, title, axis labels, and color.

Instructions

Create a box plot for comparing distributions (requires matplotlib).

Examples: plot_box_plot([[1, 2, 3, 4, 5], [2, 4, 6, 8, 10]], group_labels=["A", "B"]) plot_box_plot([[10, 20, 30], [15, 25, 35], [5, 15, 25]], title="Comparison")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorNoBox color (name or hex code, e.g., 'blue', '#2E86AB')
titleNoChart title string, e.g., 'Distribution Comparison'Box Plot
y_labelNoY-axis label, e.g., 'Values'Values
data_groupsYesList of data groups to compare, e.g., [[1, 2, 3], [4, 5, 6]]
group_labelsNoLabels for each group, e.g., ['Group A', 'Group B']
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, indicating no side effects. The description adds 'requires matplotlib' as a dependency, but does not elaborate on behavior like display or return value.

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 description is concise (three lines plus examples) and front-loaded with purpose. Examples add clarity but could be trimmed slightly; overall efficient.

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?

Given the rich annotations and full schema, the description is sufficient. It explains the tool's purpose, provides examples, and notes a dependency, though it omits details about output (plot display or saving).

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

Parameters3/5

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

Schema coverage is 100% with clear descriptions for each parameter. The description's examples illustrate usage but do not add semantic meaning beyond what the schema provides.

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 description clearly states it creates a box plot for comparing distributions, specifying the resource (box plot) and verb (create). It distinguishes from sibling plotting tools by mentioning box plot specifically.

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 implies use for comparing distributions via box plots, and examples clarify typical input format. However, it does not explicitly state when to use this tool over alternatives like plot_histogram or plot_line_chart.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/clouatre-labs/math-mcp-learning-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server