Skip to main content
Glama

Ansvar: EU Compliance & Legal Intelligence

Generate Report

generate_report
Read-only

Produce the final compliance report from a completed workflow. Use this when someone says 'generate the gap analysis report', 'I need the DPIA report as a document', or 'create the threat model output'. Refuses until every quality gate passes, returning the failing check and a hint. Returns a structured report with findings, citations, and recommendations. Pass format html, pdf, docx, or all to additionally receive branded rendered artifacts as short-lived download URLs in a sibling render key; render failures attach render_error and never drop the report JSON. Rendering is served by the document plane and starts at the premium tier; on free and solo an included run also returns html or pdf carrying an Ansvar watermark, and outside an included run free and solo receive the report as JSON. A format the caller's tier does not serve is refused explicitly rather than quietly downgraded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoArtifacts to produce alongside the report JSON: 'json' (the default, JSON only), 'html', 'pdf', 'docx', or 'all'. Rendered artifacts come back as short-lived download URLs. The advertised enum is narrowed to what your tier serves, and a format your tier does not serve is refused rather than downgraded.json
workflow_idYesId of the workflow run, as returned by start_workflow. Recover a lost id with list_workflows.
include_reportNofalse returns only the delivery receipt (with its display_markdown), any rendered artifact links and the relay block; use it when your client limits tool output size. Default true returns the full report.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / include_report
      Added value: +{
      +  "default": true,
      +  "description": "false returns only the delivery receipt (with its display_markdown), any rendered artifact links and the relay block; use it when your client limits tool output size. Default true returns the full report.",
      +  "title": "Include Report",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / format / description
      Added value: +"Artifacts to produce alongside the report JSON: 'json' (the default, JSON only), 'html', 'pdf', 'docx', or 'all'. Rendered artifacts come back as short-lived download URLs. The advertised enum is narrowed to what your tier serves, and a format your tier does not serve is refused rather than downgraded."
    • addedInput schema / properties / workflow_id / description
      Added value: +"Id of the workflow run, as returned by start_workflow. Recover a lost id with list_workflows."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a safe read (readOnlyHint=true, destructiveHint=false), and the description adds substantial behavior beyond that: the quality-gate refusal with failing check and hint, the render key with short-lived download URLs, the render_error fallback that never drops the report JSON, tier-based serving, and watermark rules for lower tiers. This is unusually rich disclosure for a read-only 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?

Purpose is front-loaded in the first sentence, followed by triggers and then behavior. The tier/watermark sentence is dense but every clause carries operational information; no filler, though the definition runs long.

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?

With an output schema present, return values need not be reiterated, and the description still covers failure modes, tier gating, and artifact delivery. Nothing an agent needs to invoke and interpret the tool correctly appears to be 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, but the description adds material meaning the schema does not: that the advertised format enum is narrowed by tier and that unserved formats are refused rather than downgraded. It does not re-explain workflow_id or include_report, so it sits just above baseline.

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?

States a specific verb and resource ('Produce the final compliance report') and scopes it to 'a completed workflow', clearly separating it from workflow-control siblings like start_workflow or resume_workflow. An agent can identify the operation without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit natural-language triggers ('generate the gap analysis report', 'I need the DPIA report as a document', 'create the threat model output') and a clear exclusion: it refuses until every quality gate passes. The when-to-invoke condition is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.