Skip to main content
Glama

imgfactory

img_analyze_dimensions

Use when Image dimensions: image size, width and height, aspect ratio, resolution check, image info. image -> application/json. 0.004 USDC per call (prepaid credit or x402 signature).

Input Schema

NameRequiredDescriptionDefault
urlNohttp(s) URL of the image (server fetches it)
dataNodata: URL
base64Noraw base64 of the image bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

There are no annotations, so the description carries the full disclosure burden. It does add genuinely valuable behavior the schema does not cover: output media type (application/json) and a pay-per-call cost model (0.004 USDC via prepaid credit or x402 signature). It still omits failure modes, supported image formats, and any confirmation that this is a non-mutating read.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loads the trigger, but the middle is keyword-stuffed and redundant ('image size, width and height ... image info'), reading like a search-tag list rather than a sentence. The pricing and output-type clauses are the only dense, non-repetitive content.

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?

For a three-parameter, no-output-schema tool, the definition covers what is measured and the response encoding plus cost. It stops short of describing the actual returned fields or how a resolution/aspect-ratio check is expressed, which matters since no output schema exists to fill that gap.

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% and each of the three mutually exclusive input sources (url, data, base64) is documented in the schema itself. The description adds no format or precedence details for these parameters, so the baseline 3 applies.

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 names the resource and the specific attributes returned: image size, width and height, aspect ratio, resolution. That is enough to distinguish it from siblings like img_analyze_phash or img_analyze_qr_scan. It loses a point because the verb is only implied by 'Use when Image dimensions' rather than stated as an action.

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 leading 'Use when Image dimensions...' clause functions as a trigger condition, so the agent gets an implied context for invocation. However, there are no exclusions, no prerequisites, and no routing to alternatives such as img_analyze_phash for perceptual hashing, so selection guidance remains thin.

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.

Resources