Skip to main content
Glama

Histogram

histogram

Generate and save a frequency distribution chart for a numerical column to visualize its spread and shape.

Instructions

Generate and save a histogram for a numerical column. Args: dataset_id (str): ID of the dataset. column_name (str): Numerical column to visualize. bins (int): Number of histogram bins. Default is 10. Returns: dict: Dataset ID, column name, and saved image filename.

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": {
      "dataset_id": "<dataset_id>",
      "column_name": "<column_name>"
    },
    "name": "histogram"
  }
}

Input Schema

NameRequiredDescriptionDefault
binsNo
dataset_idYes
column_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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, but it does disclose the key behavioral trait: the tool writes a file ('save', 'saved image filename'), so the agent knows this is a side-effecting operation rather than a pure computation. It omits where the file is written, the image format, whether an existing file is overwritten, and what happens with a non-numeric column — meaningful gaps for an unannotated 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?

The purpose sentence is front-loaded and the docstring-style Args/Returns block is scannable and free of filler. The type annotations restate the JSON schema types, which is mildly redundant, but since the schema has no descriptions the restatement costs little.

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?

For a simple three-parameter plotting tool with no output schema, the description covers inputs and names the return keys, which is reasonably complete. It is missing the save location, image format, and failure behavior for non-numeric input — gaps that matter more because no annotations exist to cover the write side effect.

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, and it does: all three parameters are documented with type and meaning, including the non-obvious default of 10 for bins. It stops short of 5 because no constraints are given (bins range, whether column_name must exist, format of dataset_id).

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?

States a specific verb and resource — 'Generate and save a histogram for a numerical column' — which also implies the data-type constraint that separates it from categorical plotters. It does not explicitly name or differentiate itself from siblings like barplot, countplot, or auto_visualize, so it stops short of a 5.

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?

Usage is only implied: 'numerical column' signals the input must be numeric, which implicitly rules out categorical plotting. There is no explicit when-to-use statement, no mention of when to prefer auto_visualize or barplot, and no prerequisites or error conditions described.

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