Skip to main content
Glama

classify-source

cli_classify_source

Classifies an image's likely AI provider and model version from its pixels to help determine which generator may have produced it.

Instructions

Classify an image's likely AI provider and model version from pixels.

Runs the abstaining 10-provider source-pipeline classifier and stacked
Stage-2 version head. This is not provenance and does not detect or verify
SynthID. identify never starts this command.
Install: pip install 'remove-ai-watermarks[source-classify]'

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": {
      "source": "<source>"
    },
    "name": "cli_classify_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYessource
as_jsonNoEmit the source classification as JSON.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.58.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations supply only openWorldHint=false, so the description carries most of the load, and it does well: it discloses that the classifier abstains, that a separate Stage-2 version head is stacked on top, that results are not provenance and do not verify SynthID, and that an optional dependency must be installed. It still does not describe the output shape or confidence/abstention reporting, which matters for an abstaining model.

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?

The core capability is front-loaded in the first sentence, followed by supporting caveats and the install line. Every sentence carries information, though the hard line-wrapping and the bare install string make it slightly less scannable than it could be.

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 only two simple parameters, no nested objects, no output schema, and thin annotations, the description supplies exactly the missing pieces: what the model does, that it can abstain, that it is not provenance/SynthID verification, and the required optional install. An agent has enough to call it correctly.

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 description coverage is 100%, so the baseline is 3, but the schema's own text is nearly vacuous ('source' described as 'source'). The description compensates only slightly by saying classification is 'from pixels', implying source is an image input, and it says nothing about as_json beyond what the schema states.

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?

The description uses a specific verb and resource: it classifies an image's likely AI provider and model version from pixels, and names the concrete machinery (abstaining 10-provider source-pipeline classifier plus a stacked Stage-2 version head). It also rules out one sibling by stating 'identify never starts this command', though it does not differentiate from cli_classify or api_classify_onnx.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an implied usage context (you must invoke this directly, because identify will not chain into it) and a hard prerequisite via the pip install extra. However, there is no explicit statement of when to prefer this over the other classify tools, and no when-not guidance beyond the identify note.

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