Skip to main content
Glama
sassoftware

SAS MCP Server

Official
by sassoftware

Export Report

export_report
Read-onlyIdempotent

Export SAS Visual Analytics reports or selected report objects in formats like PDF, PNG, CSV, XLSX, or ZIP. Choose the format and options to retrieve rendered content or underlying data.

Instructions

Export a Visual Analytics report (or specific report objects) in any format the VA service exposes, via its synchronous export endpoints.

Formats (export_format):

  • package — full report bundle as a .zip (source files, query results, and rendered content); whole report or selected objects.

  • pdf — rendered PDF; whole report or selected objects. Pass rendering overrides (e.g. orientation, paperSize, margin, includeCoverPage) via options.

  • png / svg — image of the report or a single object; image_size is required, e.g. "1200px,800px".

  • csv / tsv / xlsx — the data behind a single report object; exactly one object label is required.

  • summary — the report's text summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
optionsNoOptional ``pdf`` rendering overrides, passed through as query parameters (e.g. ``{"orientation": "landscape"}``).
report_idYesID of the report.
image_sizeNoRequired for ``png``/``svg``; format ``"<w>px,<h>px"``.
export_formatYesOne of package, pdf, png, svg, csv, tsv, xlsx, summary.
report_objectsNoReport object labels to export. ``package``/``pdf`` accept several; image and data formats accept exactly one; ``summary`` accepts none. Omit to export the whole report where the format allows it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, and non-destructive behavior. The description adds further useful behavioral context: it notes synchronous export endpoints, explains what each format produces (e.g., package bundles source files and query results), and documents pass-through options for PDF rendering. This goes beyond the annotations without contradicting them.

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 front-loaded with the core purpose and then organized into a compact, scannable format list. Every line conveys necessary operational detail, and the bullet structure makes format-specific rules easy to parse without unnecessary prose.

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 no output schema, the description could more explicitly state what the caller receives back (e.g., binary file content, download URL, or saved artifact). However, it covers the format-specific input constraints thoroughly and describes the exported artifacts well enough that an agent can invoke the tool correctly for most cases.

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?

The schema already describes all parameters at 100% coverage, and the description substantially enriches that meaning by tying each export_format value to the exact parameter requirements: package/pdf accept multiple objects, png/svg require image_size, csv/tsv/xlsx require exactly one object, and summary accepts none. This is high-value semantic guidance beyond the raw schema.

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 states a specific action ('Export a Visual Analytics report') and resource ('report or specific report objects'), and enumerates the supported formats. It clearly differentiates this from siblings like list_reports and get_report, which manage or inspect reports rather than export their content.

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 clearly conveys when to use the tool for exporting report content in various formats, and even specifies per-format constraints such as image_size for png/svg and exactly one object for data formats. It does not explicitly name alternative tools or state exclusions, but the export-focused purpose is unambiguous relative to the listed siblings.

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