Skip to main content
Glama

plot_bar

Generate bar charts from categorical data arrays using simple flat parameters, supporting vertical or horizontal orientation with customizable dimensions and labels.

Instructions

Render categorical bar chart. Simple flat parameters - no nested objects!

Example: { "categories": ["A", "B", "C"], "values": [10, 20, 15], "title": "Bar Chart", "orientation": "vertical" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool renders a chart, implying a read-only output generation, but doesn't specify if it's interactive, static, or what format it returns (e.g., image, HTML). It also lacks details on performance, error handling, or dependencies. The example helps but doesn't cover behavioral traits comprehensively.

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 and front-loaded, starting with the core purpose. The example is well-integrated and illustrative without being verbose. However, the second sentence ('Simple flat parameters - no nested objects!') could be more polished, and there's room to add brief usage context without sacrificing brevity.

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?

Given the tool's moderate complexity (10 parameters, no annotations, but with an output schema), the description is partially complete. It explains the basic functionality and provides an example, but lacks behavioral details and full parameter guidance. The presence of an output schema means return values don't need explanation, but other aspects like error cases or performance are missing.

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?

The description includes an example that illustrates key parameters (categories, values, title, orientation), adding meaning beyond the schema. However, with 0% schema description coverage and 10 parameters in the schema, the example only covers 4 parameters explicitly, leaving others like width, height, bar_width, color, x_label, and y_label unexplained. This provides some value but doesn't fully compensate for the low coverage.

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

Purpose4/5

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

The description clearly states the tool's purpose: 'Render categorical bar chart.' It specifies the verb ('Render') and resource ('categorical bar chart'), making it easy to understand what the tool does. However, it doesn't explicitly differentiate from sibling tools like plot_histogram or plot_box, which might also handle categorical data visualization.

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

Usage Guidelines2/5

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

The description provides minimal usage guidance. It mentions 'Simple flat parameters - no nested objects!' which hints at when to use this tool (for straightforward bar charts), but it doesn't offer explicit alternatives or contrast with sibling tools like plot_histogram for distribution visualization or plot_pie for proportional data. No when-not-to-use scenarios are provided.

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/Nexo-Agent/plot-mcp'

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