Skip to main content
Glama
pdf4me
by pdf4me

get_image_metadata

Extract metadata from local JPG or PNG images by providing a file path. Returns structured JSON with image properties and EXIF details.

Instructions

Extract metadata from a local image using the PDF4me GetImageMetadata API. Provide the file path to a JPG or PNG image. Returns structured metadata JSON including image properties and available EXIF details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesLocal path to the image file.
image_typeNoDeclared image type for the API payload ("JPG" or "PNG").PNG
Behavior4/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It discloses that the tool returns structured metadata JSON including image properties and available EXIF details, implying a read-only operation. It does not explicitly state side-effect-free behavior, but the extract/return language makes it clear.

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, front-loaded with the primary action, and contains no redundant information. Every phrase earns its place, specifying input and output in a compact manner.

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?

For a simple two-parameter tool with no output schema, the description adequately explains what the tool does, what input is required, and what the return format is. There are no critical gaps for an agent to invoke it correctly.

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 schema already documents all parameters clearly. The description mentions 'file path' and 'JPG or PNG' which aligns with the schema but adds no significant beyond-schema meaning. Baseline score of 3 is appropriate.

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 the tool extracts metadata from a local image, with a specific verb ('Extract') and resource ('metadata from a local image'). It distinguishes itself from siblings like get_pdf_metadata by specifying JPG/PNG images and EXIF details.

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 provides clear usage context by instructing the user to provide a file path to a JPG or PNG image. However, it does not explicitly mention when to use this tool versus alternatives like get_pdf_metadata, though the image-specific scope is evident.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdf4me/pdf4me-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server