Skip to main content
Glama

PiPic Integration Guide

Check a file before uploading it

check_image_supported

Given a filename, MIME type and/or byte size, says whether PiPic will accept the image and, if not, which error an upload would return. Use it to filter a file list locally instead of spending quota on requests that are going to be rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameNoFile name or path; the extension is used to infer the type.
sizeBytesNoFile size in bytes, if known.
contentTypeNoMIME type, if you already know it. Takes precedence over filename.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonYesWhy — including which error code an upload would return.
supportedYesWhether PiPic will accept this image.
contentTypeNoThe MIME type that was determined, to send as the Content-Type header.

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the tool says whether the image is accepted and, if not, which error an upload would return, and it implies that the check itself does not consume quota. While it does not explicitly state whether the tool is read-only or quota-free, the phrasing 'instead of spending quota' provides enough behavioral context.

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?

The description is two sentences: the first states the function, the second gives a clear use case. Every word earns its place, and it is front-loaded with the core purpose.

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

Completeness5/5

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

The tool has an output schema, so the return structure is covered. The description provides purpose, usage guidance, and behavioral context, which is sufficient given the simple optional parameters and no need to reference siblings.

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 coverage is 100%, so the baseline is 3. The description mentions the three parameters (filename, MIME type, size) but adds no extra meaning beyond what the schema already provides; precedence of contentType over filename is already documented in the schema.

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 description clearly states that the tool checks whether PiPic will accept an image based on filename, MIME type, and/or size, and reports the corresponding upload error if rejected. This specific verb and resource distinguish it from the sibling tools, which focus on compression facts and integration guides rather than acceptance validation.

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?

It explicitly advises using the tool to filter a file list locally instead of spending quota on requests that will be rejected. This gives clear when-to-use guidance and an implied alternative (making unnecessary uploads), which is exactly the kind of contextual direction an agent needs.

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.

TDQS

A4.7/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: check_image_supported for pre-filtering, get_compression_facts for reference data, and get_integration_guide for step-by-step instructions. There is no functional overlap between them.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (check_, get_, get_), using clear, action-oriented verbs. The style is uniform and predictable.

Tool Count5/5

With exactly three tools, the server is tightly scoped to its purpose of providing an integration guide. Each tool earns its place and avoids unnecessary bloat.

Completeness5/5

The tool set covers the full user journey: understanding limits (get_compression_facts), pre-validating images (check_image_supported), and learning integration steps (get_integration_guide). No obvious gaps exist for the stated purpose.

Resources