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

py-image-compress-mcp

by crper

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Compress local images and inspect image metadata. Use compress_universal for file or directory workflows. Use get_image_info when you need dimensions, transparency, EXIF, ICC, or complexity details.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
compress_universalB

压缩图片或批量处理目录。

支持单文件压缩、单文件多格式输出、格式转换和目录批量压缩。 返回统一的结构化结果,包含输出路径、压缩比例、节省空间和错误信息。

get_image_infoB

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

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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly distinct roles: one performs compression/format conversion (including batch directory runs), the other only reads metadata and analysis. There is no realistic scenario where an agent would confuse which to call, and the mode parameter on get_image_info is additive rather than overlapping with compression.

Naming Consistency4/5

Both names follow the same snake_case verb_noun convention (compress_*, get_*), which is predictable and readable. The only weak spot is the vague modifier 'universal' in compress_universal, which hints at behavior rather than a resource but does not break the pattern.

Tool Count3/5

Two tools is thin for a server, even a narrowly scoped one; the compression surface is compressed into a single multi-mode tool rather than exposing distinct operations. It is defensible given the single-purpose scope, but sits at the borderline of under-scoped sets.

Completeness4/5

The core lifecycle is covered: inspect an image, then compress/convert it, with batch directory processing and structured error/ratio reporting. Minor gaps remain (e.g. no output verification/cleanup or preview/quality-estimation step before a long batch run), but agents can work around these.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues