Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Export file metadata

export_metadata

Exports a file or folder's metadata as JSON or CSV text, either returned directly or saved to a new file for quoting, diffing, or record-keeping.

Instructions

Export the read_metadata data of a file or folder as one JSON or CSV text, returned or saved as a new file. Use when: you need the metadata as a document to quote, diff or keep next to the data. Instead: read_metadata for structured fields. Requires: --mcp-tools metadata. Behavior: without out it writes nothing; reads as read_metadata does. A returned text over 16 MiB fails; save a big folder's with out. With out: only adds; each call adds a file, written via a temporary name; new local files are mode 0600. Time limit: 5 min. Returns: {path, format, files (number of file reports), truncated, text}; with out {path, out (the file written), format, files, truncated, size (bytes)}.

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": "export_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNoSave the text as this new file on path's backend instead of returning it (absolute, or relative to the MCP root); its folder must exist, a taken name gets ' (2)', ' (3)' ... ('meta (2).json'). Default: none, the text is returned.
pathNoA file, or a folder whose supported files are read (absolute, or relative to the MCP root). Required unless path_b64 is given.
formatNoText format. json: {"files": [<read_metadata file report>, ...]}; csv: header path,kind,group,field,value,removable,error and one row per field, cells that would start a spreadsheet formula prefixed with '.json
backendNoBackend id from list_backends; omit for the default.
out_b64Noout as base64 of its raw bytes, for non-UTF-8 names; replaces out.
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
outNowith out: the file written (a taken name gets a counter)
pathYes
sizeNowith out: bytes written
textNothe export; absent with out
filesYes
formatYes
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?

Goes well beyond the annotations: discloses that without 'out' nothing is written, that a returned text over 16 MiB fails, that saving appends rather than overwrites, that files are written via a temporary name with mode 0600, and imposes a 5-minute time limit. It also states the --mcp-tools metadata requirement, which annotations cannot convey.

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?

Front-loaded purpose sentence followed by labelled Use when / Instead / Requires / Behavior / Returns blocks – highly scannable with no filler. The telegraphic phrasing ('save a big folder's with out', 'a taken name gets ...') is slightly clipped at the cost of a little readability.

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 an 8-parameter tool with a write path, the description covers selection, prerequisites, side effects, size/time limits, and even return shapes despite an output schema existing. Nothing an agent needs in order to call it safely is missing.

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 coverage is 100%, so the baseline is 3, but the description contributes real cross-parameter meaning the schema only implies: 'without out it writes nothing' establishes that out gates the mutation, and 'save a big folder's with out' links out to the 16 MiB return limit. It does not add format syntax beyond what the schema's enum description already gives.

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 ('Export the read_metadata data of a file or folder') plus the output forms (one JSON or CSV text, returned or saved as a new file), and explicitly contrasts with the sibling read_metadata. An agent can distinguish this from read_metadata without opening either 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?

Has an explicit 'Use when' clause (need the metadata as a document to quote, diff or keep next to the data) and an explicit 'Instead' routing to read_metadata for structured fields. Both the selecting condition and the alternative are named.

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