Skip to main content
Glama

Get compression usage this month

tinypng_get_usage
Read-only

How many compressions your Tinify API key has used this calendar month (the Compression-Count header), and whether the key is valid. The check sends an empty request that Tinify refuses, so nothing is compressed and no quota is used. Compare with your Tinify plan (the free plan includes 500 per month). POST /shrink with no body.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the generic read-only/no-destruction profile; the description adds genuinely non-obvious behavior: the check issues an empty request that Tinify refuses so no image is compressed and no quota is consumed. It also names the underlying signal (Compression-Count header) and the endpoint used, which an agent could not infer from the schema.

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?

Three sentences, front-loaded with the purpose and then the safety explanation before the plan comparison. Information density is high and every clause earns its place, though the parenthetical header name and endpoint spec make it slightly denser than strictly necessary.

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?

With no output schema, the description carries the return-value burden and does so: it states that the result is the monthly compression count and key validity. Combined with the no-quota-consumed guarantee and the free-plan reference, an agent has everything needed to call and interpret this tool.

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

Parameters4/5

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

There are zero parameters and 100% schema coverage, so the baseline is 4. The description correctly signals the parameterless nature ('POST /shrink with no body'), confirming no input is expected beyond the configured API key.

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?

States a specific verb and resource: reporting how many compressions the API key has used this calendar month plus key validity. This is clearly distinguishable from the sibling tools (compress, download, transform), none of which report quota or key state.

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 gives the context for using it — comparing consumption against the Tinify plan, with the free plan's 500/month figure — which implies a pre-flight quota check. It stops short of an explicit 'call this before compressing to avoid overage' instruction or any when-not clause, so it is clear context rather than full routing guidance.

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.