Skip to main content
Glama

plot_bar

Create bar plots showing top N value counts for a categorical column, revealing dominant and rare categories to guide grouping and stratified sampling in EDA.

Instructions

Bar plot of value counts (top N categories). Vertical or horizontal. Understand categorical distributions during EDA. Reveals rare categories for potential grouping and dominant categories for stratified sampling. Example: plot_bar(column="CargoType", top_n=10, orientation="horizontal")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_nNo
columnYes
df_nameNo
save_pathNo
orientationNovertical
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It mentions the tool plots value counts for top N categories and supports vertical/horizontal orientation, but does not disclose whether it modifies data, displays vs. saves the plot, or how df_name/save_path are used. Some useful details are present, but significant gaps remain.

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

Conciseness5/5

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

The description is concise and front-loaded: one sentence stating the core functionality, followed by usage rationale, and a clear example. No filler or redundant text.

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?

The description covers the tool's main purpose and provides a usage example, but with no output schema and 5 parameters, it omits details about df_name and save_path and does not clarify the return value (e.g., shows a plot object). It is minimally complete for a simple plotting tool but has clear gaps.

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 description coverage is 0%, so the description must compensate. The example `plot_bar(column="CargoType", top_n=10, orientation="horizontal")` clarifies the meaning of column, top_n, and orientation. However, df_name and save_path are not explained, leaving ambiguity for those parameters.

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 the tool's purpose: "Bar plot of value counts (top N categories)" with a specific verb and resource. It distinguishes from sibling plot tools by focusing on categorical value counts, making it easy to select for categorical distribution analysis.

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 useful context: "Understand categorical distributions during EDA. Reveals rare categories for potential grouping and dominant categories for stratified sampling." This indicates when to use the tool, but it does not explicitly name alternatives or exclusions (e.g., when not to use it).

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/AstyanM/mcp-data-science'

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