Skip to main content
Glama

Lineplot

lineplot

Generate and save a line plot to visualize trends between two dataset columns, returning the saved image filename and column details.

Instructions

Generate and save a line plot showing trends between two columns. Args: dataset_id (str): ID of the dataset. x_column (str): Column for the X-axis. y_column (str): Numerical column for the Y-axis. Returns: dict: Dataset ID, column names, 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>",
      "x_column": "<x_column>",
      "y_column": "<y_column>"
    },
    "name": "lineplot"
  }
}

Input Schema

NameRequiredDescriptionDefault
x_columnYes
y_columnYes
dataset_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

There are no annotations, so the description alone must disclose behavior, and it does note a real side effect: it saves an image file and returns a filename. Beyond that it is silent on permissions, where the file is written, whether an existing file is overwritten, and how errors (for example, a non-numeric y_column) are handled. For a tool that writes to disk, that leaves meaningful gaps.

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 text is short and front-loaded with the core action, and the Args and Returns blocks are compact and scannable. The only minor waste is repeating column names and dataset ID in the Returns line, which is still useful given that there is no output schema.

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?

With no output schema, the Returns section usefully describes the response, which is a positive. With no annotations, the definition should say more about the save behavior and validation rules. It is adequate for a simple three-parameter plot tool but not complete.

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 carry the full parameter burden, and it does: all three parameters are named with types, and y_column is explicitly constrained to a numerical column, which the schema does not express. It does not explain whether x_column must be temporal, ordinal or categorical, which is the one piece of meaning an agent plotting trends would still need.

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 starts with a specific verb and resource: "Generate and save a line plot showing trends between two columns." That clearly distinguishes a plotting tool from siblings such as analyze_correlation or describe_dataset. It does not differentiate from other plot siblings like barplot or boxplot, but those names do not establish their behavior.

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?

The phrase "showing trends between two columns" implies the intended context: visualising a relationship or trend across a numeric axis. However, nothing states when to prefer this over auto_visualize, barplot or analyze_relationship, and no exclusion or prerequisite is given.

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