Skip to main content
Glama

Scan a file's metadata for privacy risks

scan_metadata
Read-onlyIdempotent

Lists EXIF, XMP and PNG text metadata with a risk rating. Inspects JPEG, PNG, HEIC/HEIF, WebP, TIFF, AVIF, MP4/QuickTime, AVI, Matroska and WebM video (container metadata only). Any other format returns supported: false and overall_risk: unknown: nothing was inspected, so no findings does not mean no metadata. MCP tool: scan_metadata. Price: 0.002 USDC per file.

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": {
      "file_base64": "<file_base64>"
    },
    "name": "scan_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_base64YesBase64-encoded file bytes (max 4 MiB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, and the description adds genuinely new behavioral facts: a per-file price of 0.002 USDC, that video handling is container-level only, and the crucial warning that an unsupported format yields supported: false / overall_risk: unknown so 'no findings does not mean no metadata'. That last point prevents a false-negative interpretation that no annotation could 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 with the concrete output and format scope, followed by the edge-case warning and price — a sensible order. The sentence 'MCP tool: `scan_metadata`.' is pure filler that restates the tool name and could be dropped.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and does name key fields (supported, overall_risk) and the risk-rating concept. It stops short of describing the rating scale or the shape of individual findings, which leaves some ambiguity about what the response actually contains.

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?

There is a single parameter and schema description coverage is 100%, with the schema already documenting base64 encoding and the 4 MiB cap. The description adds only 'per file' pricing context and nothing about encoding, size limits, or format expectations, so it meets but does not exceed the baseline.

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?

States a specific verb and resource — lists EXIF, XMP and PNG text metadata with a risk rating — and enumerates the supported input formats plus the 'container metadata only' restriction on video. That delimits it well against clean_metadata and scan_file by implication, but no sibling is named, so an agent must infer the boundary rather than being told.

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 supported-format list effectively tells the agent when this tool applies and when it does not, and it explains the failure mode for unsupported types. It never explicitly routes the agent to an alternative tool for cleaning or deeper inspection, so the 'use X instead' half of the guidance is absent.

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