Skip to main content
Glama

resources.export_report

Export existing HTML reports to PDF or PNG, providing a download URL or raw base64 bytes when requested.

Instructions

Export an existing HTML report as PDF or PNG. Returns { url } for the web-served download (requires an authenticated dashboard request) by default. Set inline_bytes=true to render in-process and get { bytes_base64 } instead — only available when running via the full kontexta CLI, not the standalone kontexta-mcp package; falls back to { url } with a note if unavailable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesFile ID of the HTML report to export.
formatNoOutput format: 'pdf' or 'png'.pdf
inline_bytesNoIf true, render in-process and return raw bytes (base64). Only available in the full kontexta CLI bundle; falls back to {url} otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.7.2

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries full disclosure burden. It transparently reveals return shapes ({url} vs {bytes_base64}), the authentication prerequisite, packaging differences (full CLI vs standalone kontexta-mcp), and the fallback behavior. This goes well beyond the structured schema fields.

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 two sentences with front-loaded purpose. Every clause earns its place: main verb/resource, default return, authentication, alternative mode, availability caveat, and fallback. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has no output schema and no annotations, the description is complete for operational use: it specifies how to get each return type, the auth requirement, and packaging constraints. An agent knows what to expect and how to adapt its call. No critical information is missing.

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 coverage is 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema: it explains the default output mode, the condition under which inline_bytes=true actually works, and the fallback behavior. This enriches understanding of the inline_bytes and id parameters without duplicating schema text.

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 uses a specific verb ('Export') with a specific resource ('existing HTML report') and the output formats (PDF or PNG). It clearly distinguishes this from sibling resources.* tools (add_report, list_reports, delete_report) by describing the operation rather than management actions.

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?

While it does not explicitly name alternatives or when-not-to-use, it provides clear context: it states the default behavior, the authentication requirement, and when inline_bytes is available (full kontexta CLI) vs when it falls back. This is sufficient contextual guidance for selecting and invoking the tool, though a direct contrast with sibling tools would be stronger.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.