Skip to main content
Glama

GZip File as Resource Tool

gzip-file-as-resource
Idempotent

Compress a file using gzip and return a resource link or resource object for downloading the compressed data during the current session.

Instructions

Compresses a single file using gzip compression. Depending upon the selected output type, returns either the compressed data as a gzipped resource or a resource link, allowing it to be downloaded in a subsequent request during the current session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoURL or data URI of the file content to compresshttps://raw.githubusercontent.com/modelcontextprotocol/servers/refs/heads/main/README.md
nameNoName of the output fileREADME.md.gz
outputTypeNoHow the resulting gzipped file should be returned. 'resourceLink' returns a link to a resource that can be read later, 'resource' returns a full resource object.resourceLink
Behavior4/5

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

Annotations already provide readOnlyHint=false, idempotent=true, and destructive=false. The description adds value by explaining the output-type-dependent behavior and the session-limited download aspect, which is not captured by annotations. No contradictions exist.

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?

Two sentences, concise and front-loaded with the primary action. Every clause contributes meaning: compression, output type, and session-limited download. There is no redundant or filler text.

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 tool's moderate complexity, the description covers the essential aspects: what it does, how the output varies, and the session constraint. Without an output schema, it clearly explains the return value. It could mention edge cases like file size limits or URL formats, but overall it is sufficiently complete for an agent to use it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description mentions 'Depending upon the selected output type' which alludes to the outputType parameter, but adds no additional meaning beyond the schema's per-parameter descriptions. It does not compensate with extra detail because the schema already fully documents 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?

Description clearly states the verb 'Compresses' and the resource 'a single file', and specifies the output as gzipped resource or link. This distinguishes it from sibling tools like echo or get-sum, which have different purposes. The mention of 'resource link' and 'session' also helps differentiate it from other resource-related tools.

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 conveys when to use the tool: when you need to compress a file and either get the compressed data directly or a link for later download in the current session. It gives clear context but does not explicitly name alternatives or state when not to use it. This is a clear context without exclusions, so a 4 is appropriate.

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/llmops-pro/paywall-mcp'

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