---
canonical_url: "https://docs.composio.dev/toolkits/truthscan_mcp"
markdown_url: "https://docs.composio.dev/toolkits/truthscan_mcp.md"
product: "platform"
version: null
last_updated: null
---

# TruthScan MCP

Detect AI-generated images with TruthScan's hosted MCP server, using a public image URL or a short-lived upload URL.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 2
- **Triggers:** 0
- **Slug:** `TRUTHSCAN_MCP`
- **Version:** 00000000_00

## Tools

### Create image upload url

**Slug:** `TRUTHSCAN_MCP_CREATE_IMAGE_UPLOAD_URL`

Get a short-lived URL for uploading an image, for use when it is not already hosted at a public URL — including an image the user attached to this conversation. PUT the bytes to upload_url sending every header in required_headers exactly as given (the signature covers them; omitting one fails with SignatureDoesNotMatch). When storage_upload_url is returned, PUT the same bytes there too with storage_required_headers — that is the copy shown on the dashboard record, and skipping it leaves the record without its image. Then call detect_image with the returned file_ref. Does not consume detection credits — detect_image does.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file_name` | string | Yes | Original file name, e.g. screenshot.png. |
| `mime_type` | string | No | Image MIME type, e.g. image/png. Used only when file_name has no recognized image extension — otherwise the extension wins, because the upload signature is derived from it. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file_ref` | string | Yes | Pass to detect_image once the upload succeeds. |
| `upload_url` | string | Yes | PUT the image bytes here. Expires — upload promptly. |
| `content_type` | string | Yes | Resolved image MIME type; also in required_headers. |
| `required_headers` | object | Yes | Send all of these on the PUT, verbatim. They are covered by the URL signature, so omitting one fails the upload. |
| `expires_in_seconds` | number | Yes | Lifetime of upload_url from issue time. |
| `storage_upload_url` | string | No | PUT the same bytes here as well, so the image is stored on the dashboard record. Omitted when the image is not retained. |
| `storage_required_headers` | object | No | Send all of these on the storage PUT, verbatim. |

### Detect image

**Slug:** `TRUTHSCAN_MCP_DETECT_IMAGE`

Analyze an image with TruthScan's AI image detector and return the likelihood that it was AI-generated (JPG, PNG, WebP, etc.). Two ways to supply the image. (1) image_url: any direct, publicly accessible image link — TruthScan downloads it server-side and forwards it to the detector, so this works without any upload ability on your side (hosts that require login or hard-block bots may still fail). (2) file_ref: for bytes you hold locally, when your environment can make HTTP PUT requests — upload via create_image_upload_url first. If the user attached an image but your environment cannot upload bytes, ask them for a public link to it instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file_ref` | string | No | Reference returned by create_image_upload_url, after uploading the image to its upload_url. Use this for local files instead of hosting them somewhere public. |
| `image_url` | string | No | A direct, publicly accessible image URL. TruthScan downloads it server-side (10 MB max) and forwards it to the detector, so any host that serves the file without login works; hosts that hard-block bots may still fail. Provide this OR file_ref, not both. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `is_ai` | boolean | Yes | Whether the image is judged AI-generated. Note this is true for digitally edited images too, so a low score with is_ai true means edited rather than generated — read verdict for which. |
| `score` | number | Yes | AI-likelihood score from 0 (human) to 100 (AI). |
| `verdict` | string | No | The detector's own wording, e.g. "AI Generated", "Not AI Generated", "Digitally Edited". More precise than is_ai; prefer it when describing the result to a user. |
| `reasoning` | string | No | The detector's prose explanation of its verdict. |
| `confidence` | string | Yes | Confidence label: "Low", "Medium", or "High". |
| `detector_id` | string | No | Upstream detector job id, for reference. |
| `dashboard_url` | string | No | Link to the full record on the TruthScan dashboard — original image, metadata and heatmap. Share it with the user. |
| `key_indicators` | array | No | Specific signals behind the verdict, e.g. C2PA generator metadata or synthetic lighting. Cite these instead of only reporting a number. |
| `confidence_score` | number | No | Numeric confidence (0-100) the label was derived from. |
| `detection_result_id` | string | No | Saved detection record id in the TruthScan dashboard. |
