Skip to main content
Glama
py-image-compress-mcp

py-image-compress-mcp

by crper

get_image_info

Read-onlyIdempotent

Inspect image files to retrieve dimensions, transparency, EXIF, ICC, and histogram data, with selectable detail levels for metadata analysis.

Instructions

读取图片元数据和分析信息。

`basic` 返回基础尺寸与透明度信息。
`summary` 额外返回 EXIF、ICC 和复杂度信息。
`full` 再额外返回完整直方图数据。

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": {
      "input_path": "<input_path>"
    },
    "name": "get_image_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNosummary
input_pathYes
include_analysisNo
include_histogramNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds useful tier-by-tier payload disclosure (EXIF/ICC/complexity, then histogram), but is silent on the interaction between `detail` and the boolean include flags, which is the main behavioral ambiguity for this 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?

Four short, front-loaded lines with no filler; the summary sentence plus one line per tier is an efficient structure. Slightly more could be said about the parameters without hurting readability.

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

Completeness3/5

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

An output schema exists, so return-value detail is not required, and the tier list covers the main concept. However, for a 4-parameter tool with zero schema descriptions, leaving three parameters and the detail/include-flag interaction unaddressed leaves the definition incomplete.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry the load; it explains only `detail` (well, via its enum values) and leaves `input_path`, `include_analysis`, and `include_histogram` entirely undocumented. Worse, it never clarifies whether the include flags override or supplement `detail`, leaving a real collision unresolved.

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 verb and resource (reading image metadata and analysis information) and clearly names the three verbosity tiers with what each returns. It does not differentiate from the sibling `compress_universal`, but the purposes are distinct enough that confusion is unlikely.

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?

The tier semantics (basic → summary → full) imply progressive disclosure, which implicitly guides selection, but there is no explicit 'use X when you need Y' framing and no guidance on when a lower tier is preferable. It also never explains when to use the `include_analysis`/`include_histogram` flags versus the `detail` tiers, which is precisely the choice an agent will fumble.

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

Deploy Server

Other Tools