Skip to main content
Glama

save_report

Save a data science analysis as a markdown report with plot images. Use as the final step to export a structured, presentable report to the reports folder.

Instructions

Save a data science report as a markdown file with associated plot images. Use this as the FINAL STEP of an analysis to export a structured, presentable report. The report and plots are saved to a 'reports/' folder next to the original CSV file. If output_dir is empty, defaults to 'reports/' in the directory of the first loaded CSV. If include_plots is provided, saves those named plots as PNG files in the same folder and you can reference them in the markdown content as . Example: save_report(content="# Analysis Report\n...", include_plots=["histogram_Revenue", "correlation_matrix"])

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
output_dirNo
include_plotsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the burden. It discloses the save location ('reports/' folder next to the CSV), default directory behavior, and how include_plots works (saves named plots as PNG, reference syntax provided). It does not mention overwrite behavior or failure modes, but it adds significant context beyond the schema.

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 a bit long but every sentence adds value: purpose, usage context, file locations, defaults, plot handling, and an example. It could be slightly more compact, but it is well-structured and not redundant.

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?

The description covers the main behavior, defaults, and plotting integration, with an example. However, it omits details like how the markdown file is named, whether existing files are overwritten, and it does not contrast with the sibling save_report_html. These gaps prevent a 5, but the example and default explanation make it fairly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate. It explains output_dir's default and fallback, include_plots' behavior as saving named plots as PNG, and the example clarifies content as a markdown string. This fully conveys how to use all three 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 saves a data science report as a markdown file with associated plot images. It specifies the resource (report), format (markdown), and differentiates from siblings like save_report_html by mentioning markdown explicitly.

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?

It explicitly says to use this as the FINAL STEP of an analysis to export a structured, presentable report. This provides clear context, but it does not mention when not to use it or alternative tools (e.g., save_report_html), so it lacks exclusions and alternatives.

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