Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Read file metadata

read_metadata
Read-onlyIdempotent

Reads embedded EXIF, XMP, document properties, and tags from a file or folder's supported files to inspect what photos, documents, or media reveal.

Instructions

Read the embedded metadata (EXIF, XMP, document properties, tags) of a file or a folder's supported files. Use when: checking what a photo, document or media file reveals. Instead: export_metadata for one JSON/CSV text; strip_metadata (needs --mcp-write) for cleaned copies. Requires: --mcp-tools metadata. Behavior: read-only. Images, Office, PDF, audio/video (ffprobe, off in paranoid mode). A folder's unsupported and secret files are left out; a file given directly that cannot be read is a report with error. Values are cut at 512 characters. Time limit: 5 min. Returns: {path, is_dir, truncated, files: [{path, name, kind (null: unsupported), size, error ('' when read), truncated, removable_count, fields: [{group, name, value, removable}]}]}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoA file, or a folder whose supported files are read (absolute, or relative to the MCP root). Required unless path_b64 is given.
backendNoBackend id from list_backends; omit for the default.
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.
max_filesNoFor a folder: take at most this many files; more sets truncated=true. Ignored for a file.
recursiveNoFor a folder: also take the files in its subfolders (false: the folder's own files only). Ignored for a file.

Output Schema

NameRequiredDescriptionDefault
pathYes
filesYes
is_dirYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description adds substantial non-annotation context: silent omission of unsupported and secret files in folders, an error report object for directly named unreadable files, 512-character value truncation, a 5-minute time limit, format coverage via ffprobe, and paranoid-mode behavior. These are exactly the operational edge cases an agent cannot derive from structured fields.

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?

Labeled sections (Use when / Instead / Requires / Behavior / Returns) front-load the decision-relevant content and the prose is dense without filler. The explicit 'Returns' block restates a structure the output schema already defines, which is the one part that does not fully earn its space.

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?

Covers selection, prerequisites, formats, exclusions, truncation, error semantics, and time limits — every behavioral dimension relevant to a read-only metadata extractor across file types. The redundant Returns section is surplus rather than a gap, so completeness is not harmed.

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?

Schema description coverage is 100%, so the baseline is 3. The description still adds meaning beyond it: the folder-vs-file asymmetry behind 'path' (aggregated results with per-file error strings vs. a single failing read), and the truncation/report consequences that give 'max_files' and 'recursive' observable outcomes.

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 ('Read the embedded metadata (EXIF, XMP, document properties, tags)') plus the two input shapes (file or a folder's supported files). It explicitly names the siblings it is not (export_metadata, strip_metadata), so an agent can distinguish it without opening any schema.

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?

Provides an explicit 'Use when' condition, an 'Instead' routing for both alternatives with the distinguishing condition for each (one JSON/CSV text vs. cleaned copies requiring --mcp-write), and a prerequisite ('Requires: --mcp-tools metadata'). Nothing about tool selection is left to inference.

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