Skip to main content
Glama

Apply a compliance profile to an image

mark_content
Idempotent

Marks an AI-generated or human-made image with a compliance profile: a signed C2PA manifest with the profile's disclosure, an invisible watermark (the AI profiles), an ISCC fingerprint registered with Proofestry, and a trusted timestamp when the signing provider has one. Returns the marked file (base64 in the REST response; a short-lived download link over MCP). Marking the same image again is idempotent: it returns the same asset id and never creates a second record. Profiles help meet obligations and do not guarantee compliance; they are in beta until the signer is on the C2PA trust list. An image that already carries Content Credentials is kept as the parent of the new manifest (existing_credentials=reject refuses it). Images up to 1 MiB inline (JPEG, PNG, WebP, HEIC); larger files use the upload job routes. Failed calls are never charged. MCP tool: mark_content. Price: 0.01 USDC per image.

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>",
      "profile": "<profile>"
    },
    "name": "mark_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileYesCompliance profile (see GET /v1/provenance/profiles).
ledger_idNoAdd the asset to this ledger for the compliance report. Needs `Authorization: Bearer <ledger token>`.
file_base64YesBase64-encoded file bytes (max 4 MiB).
source_typeNoprovenance-only only: digitalCapture, digitalCreation, humanEdits or screenCapture (default digitalCreation).
system_nameNoThe AI system that generated the content. Required for the AI profiles.
provider_nameNoWho provides the AI system. Required for the AI profiles.
visible_labelNoDraw a visible 'AI-generated' label on the image (AI profiles only).
strip_metadataNoRemove EXIF metadata (for example GPS) from the marked file.
system_versionNo
invisible_watermarkNoprovenance-only: also embed the invisible watermark. The AI profiles always do.
existing_credentialsNoWhat to do with an image that already carries Content Credentials: `preserve` (default) keeps them as the parent of the new manifest, so their history and signature stay in the file; `reject` refuses the image with 409.preserve

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / existing_credentials
      Added value: +{
      +  "default": "preserve",
      +  "description": "What to do with an image that already carries Content Credentials: `preserve` (default) keeps them as the parent of the new manifest, so their history and signature stay in the file; `reject` refuses the image with 409.",
      +  "enum": [
      +    "preserve",
      +    "reject"
      +  ],
      +  "title": "Existing Credentials",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: idempotent re-marking returns the same asset id and never creates a second record, failed calls are never charged, output shape differs between REST (base64) and MCP (short-lived download link), existing credentials are preserved as parent manifest unless reject yields a 409, and profiles are beta until the signer is trusted. This is exactly the context an agent needs for a paid mutation call.

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-loads the core action and its outputs, then layers constraints and pricing; nearly every clause carries information. Minor waste in the redundant self-reference "MCP tool: `mark_content`" and the density makes it a single undifferentiated block.

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?

With no output schema, the description still explains the return value (file bytes as base64 or a short-lived download link), plus cost, failure billing, idempotency, and trust caveats. For an 11-parameter paid mutation tool this covers what an agent needs to call it correctly.

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 91%, so the baseline is 3; the description earns above that by tying parameters to profile semantics (watermark always applied for AI profiles, existing_credentials=reject refuses the image). However, it introduces a size limit ("up to 1 MiB inline") that conflicts with the schema's stated 4 MiB max for file_base64, which muddies rather than clarifies that parameter.

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 ("Marks an AI-generated or human-made image with a compliance profile") and enumerates the concrete artifacts produced: signed C2PA manifest, invisible watermark, ISCC fingerprint, trusted timestamp. That level of specificity clearly separates it from verification/inspection siblings like verify_provenance or detect_provenance.

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?

Gives real operational context: idempotent re-marking, 1 MiB inline limit with larger files routed to upload job routes, existing-credentials handling, beta/tier caveat, and pricing. It does not explicitly tell the agent to call verify_provenance afterwards or name an alternative tool, so it stops short of full when/when-not routing.

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