Skip to main content
Glama

Mark one file as AI-generated and verify the mark

mark_art50_provenance
Idempotent

Mark local AI-generated or manipulated files with verifiable EU AI Act Art.50 provenance metadata: embed XMP in JPEG/PNG or write a SHA-256-bound sidecar for other formats.

Instructions

Mark ONE existing local regular file as artificially generated or manipulated content per EU AI Act Art.50(2) and verify the result. JPEG and PNG files get an embedded, idempotent XMP packet (IPTC DigitalSourceType = http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia) written to a new output file; re-marking replaces the packet instead of duplicating it. Any other file (text, audio, video, PDF, ...) gets a SHA-256-bound .art50.json sidecar written beside the source; changing one byte invalidates it. Reads and writes local files only and performs no network access. Remote URLs, directories, files over 50 MiB, unsafe generator labels and writes over the source are rejected. Returns the marking kind, output path, source and output SHA-256 hashes, source byte count and a verification boolean as both text and structuredContent.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "mark_art50_provenance"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute or relative path to an existing local regular file to mark. Must be a local filesystem path; http://, https://, ftp://, file://, s3:// and gcs:// URLs are rejected. Maximum 50 MiB.
generatorNoOptional generator label embedded in the XMP packet's xmp:CreatorTool attribute, for example 'my-pipeline/2.3'. Defaults to 'ai50-mcp/1.0.0'. Only ASCII letters, digits, space and . _ - / + @ are accepted so the XMP stays well-formed XML.
output_pathNoOptional destination path for the marked JPEG/PNG copy. Its parent directory must already exist, it must not be a directory, and it must not resolve to the source file. Ignored for sidecar marking (the .art50.json sidecar is always written next to the source). If omitted, a sibling named <stem>.marked<suffix> is created.

Output Schema

NameRequiredDescriptionDefault
okYesTrue when the marking operation completed.
kindYesWhich marking method was applied.
bytesYesSize of the source file in bytes.
outputYesResolved absolute path of the marked copy or sidecar.
sourceYesResolved absolute path of the source file.
verifiedYesTrue when the written mark read back correctly.
output_sha256YesSHA-256 of the written output, lowercase hex.
source_sha256YesSHA-256 of the source file, lowercase hex.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say non-read-only, closed-world, idempotent, non-destructive. The description goes well beyond: the exact XMP property and value written, that re-marking replaces rather than duplicates the packet, the SHA-256 sidecar binding and its one-byte invalidation semantics, no network access, and that writes over the source are refused. That is precisely the mutation detail annotations cannot express.

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?

Information-dense and front-loaded: the one-file scope and standard come first, then the per-type behavior, then rejections and return shape. Every clause carries weight, though the second sentence is long and packs XMP property, idempotency and sidecar hashing into a single breath.

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 mutating, file-writing tool this covers what an agent needs: scope limits, per-format output artifacts, idempotency, rejection conditions, and return contents. An output schema exists, yet the return summary is still a useful addition rather than padding.

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 path, generator and output_path are already fully documented in the schema, including URL rejection, the 50 MiB cap and the default sibling naming. The description adds little parameter-level meaning beyond restating that non-JPEG/PNG targets ignore output_path; baseline 3 applies.

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 ('Mark ONE existing local regular file as artificially generated...') plus the standard it implements and the verification step. It further splits the behavior by file type (JPEG/PNG XMP vs. everything else sidecar), so an agent knows exactly what operation it is invoking.

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?

Clear context for when to use it (Art.50(2) provenance marking of a single existing local file) and explicit exclusions ('Remote URLs, directories, files over 50 MiB... are rejected', 'ONE' file at a time). No sibling tools exist, so no alternative routing is needed; the only gap is that it doesn't say what to do instead for multi-file or URL inputs.

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

Deploy Server

Other Tools