Skip to main content
Glama
ComplianceCow

ComplianceCow MCP Server

fetch_output_file

Retrieve output files from compliance rule executions including reports, logs, and compliance data, with size-based content display and direct download URLs.

Instructions

Fetch and display content of an output file from rule execution.

FILE OUTPUT HANDLING:

WHEN TO USE:

  • Rule execution output contains file URLs

  • User requests to view specific file content

  • Files contain reports, logs, compliance data, or analysis results

CONTENT DISPLAY LOGIC:

  • If file size < 10KB: Show entire file content

  • If file size >= 10KB: Show only first 3 records/lines with user-friendly message

  • Supported formats: JSON, CSV, Parquet, and other text files

  • Always return file format extracted from filename

  • Provide clear user messaging about content truncation

  • CRITICAL: If content is truncated or full content, include truncation message with the display_content

  • The file URL (file_url) must ALWAYS be displayed to the user in the UI, allowing the user to view or download the file directly.

MANDATORY CONTENT DISPLAY FORMAT:

  • FileName: [extracted from file_url]

  • Format: [file format from file_format]

  • Message: [truncation status or completion message if applicable user_message]

  • Content: [display_content based on file format show the entire display_content]

  • File URL: [always show the file_url in the UI so the user can view or download the file] Args: file_url: URL of the file to fetch and display

Returns: Dict containing file content, metadata, and display information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_urlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries full behavioral disclosure burden. It excellently details the 10KB truncation threshold, content display logic for different formats, and mandatory UI messaging requirements. Minor deduction for lacking error handling or authentication details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

While well-structured with clear section headers (WHEN TO USE, CONTENT DISPLAY LOGIC), the description is verbose with implementation-specific details (10KB threshold, first 3 records, exact UI formatting templates) that border on internal documentation rather than interface description.

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 the presence of an output schema, the minimal Returns section ('Dict containing file content, metadata, and display information') is acceptable. The single parameter is adequately documented and the behavioral constraints (truncation, formatting) are fully specified.

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 0% (file_url has no schema description), requiring the description to compensate. The Args section provides 'URL of the file to fetch and display,' which establishes basic semantics. Additional context appears in the display format section explaining the URL must be shown to users.

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 opening sentence 'Fetch and display content of an output file from rule execution' provides a specific verb (fetch/display), specific resource (output file), and clear scope (from rule execution). This effectively distinguishes it from the generic read_file sibling tool.

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?

Contains an explicit 'WHEN TO USE' section listing three specific scenarios: when rule execution contains file URLs, when users request specific file content, and when files contain reports/logs. This provides clear selection criteria against alternatives like read_file or fetch_rule.

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/ComplianceCow/cow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server