Skip to main content
Glama

Generate a Before/After or A/B Comparison Chart

meta_generate_comparison_chart
Idempotent

Generate a side-by-side comparison chart to visualize differences between two groups or time periods, ideal for A/B tests and campaign performance. Choose bar or horizontal bar styles with custom metrics and colors.

Instructions

Generates a side-by-side comparison chart — perfect for comparing two time periods, two campaigns, or A/B test results.

Args:

  • title (string): Chart title

  • metrics (string[]): Metric names (y-axis labels)

  • group_a (object): { label: string, values: number[], color?: string }

  • group_b (object): { label: string, values: number[], color?: string }

  • chart_type (string): 'bar' or 'horizontalBar' (default: 'horizontalBar')

  • width (number): Width in pixels (default: 800)

  • height (number): Height in pixels (default: 400)

  • output_path (string, optional): Save PNG to this path

Example — comparing two weeks: title: "This Week vs Last Week" metrics: ["Impressions", "Reach", "Clicks", "Spend"] group_a: { label: "Last Week", values: [12000, 8000, 450, 150] } group_b: { label: "This Week", values: [15000, 10500, 620, 185] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
widthNo
heightNo
group_aYes
group_bYes
metricsYesMetric names (y-axis labels)
chart_typeNohorizontalBar
output_pathNo
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
Behavior4/5

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

Annotations already indicate idempotent and non-destructive behavior. The description adds useful behavioral context by showing the exact output shape, providing an example, and noting that output_path saves a PNG. It does not contradict the annotations, and the readOnlyHint=false is consistent with the optional file-saving side effect.

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 well-structured and front-loaded: a one-sentence purpose, followed by compact Args documentation and a concrete usage example. Every part adds value, and there is no filler or repetition of schema fields.

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 9 parameters, nested objects, low schema coverage, and no output schema, the description is fairly complete: it documents all primary parameters with defaults and a full example. The only notable gap is not describing how response_format affects the return value, but the schema supplies that information.

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 low at 22%, but the description compensates by providing types, defaults, and an example for most parameters, including the nested group_a/group_b structures. It does not mention response_format, but the schema already describes that parameter with an enum and default.

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 states a specific verb and resource: it generates a side-by-side comparison chart for comparing two periods, campaigns, or A/B results. This clearly distinguishes it from generic chart tools like meta_generate_chart, though it does not explicitly name the sibling or contrast itself with it.

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 clear context for when to use the tool: comparing two time periods, campaigns, or A/B test results. It does not explicitly say when not to use it or name alternatives, but the use case is specific enough to guide an agent.

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/open-work-org/open-mcp-servers'

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