Skip to main content
Glama

Compression advice

compression_advice
Read-only

Given a target file size (KB) and optionally the image's current size and pixel dimensions, says what to expect when compressing to that size — quality, how much resolution is usually kept — based on Pixohub's measured tests on 44 photos, and links the matching compress-to-size tool.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target_kb": "<target_kb>"
    },
    "name": "compression_advice"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNoCurrent width in px (optional).
heightNoCurrent height in px (optional).
target_kbYesMaximum file size you need, in KB (1 MB = 1024 KB).
current_kbNoCurrent file size in KB (optional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, non-open-world tool. The description adds useful behavioral context: the advice is based on measured tests on 44 photos, covers expected quality and resolution retention, and links to an action 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?

The definition is a single front-loaded sentence that clearly identifies inputs, expected output, empirical basis, and the linked action tool. It is slightly dense but has no obvious filler.

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?

Since there is no output schema, the description appropriately states what the tool returns: expected quality, retained resolution, and a link to the matching compress-to-size tool. It is complete enough for a read-only advisory tool, though it could note limitations of the estimates.

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 schema already documents all four parameters. The description restates target size and optional current size/pixel dimensions but adds no extra syntax, constraints, or interpretation beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific advisory function: given a target KB size, it predicts compression quality and retained resolution based on measured tests. It is distinguishable from data-producing siblings like get_platform_image_size and recommend_image_format, though it does not explicitly name those alternatives.

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

Usage Guidelines3/5

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

Usage is implied by the input conditions: target file size and optional current size/dimensions. The description mentions linking the matching compress-to-size tool, but it does not explicitly say when to choose this advice tool over recommend_image_format or other siblings.

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.