realpng
Docs

MCP tools

The tools the realpng MCP server gives an agent, what each one takes, and how a long check resumes across calls.

An agent picks the tool from what you ask it to do. Each tool does the same work as the API endpoint beside it.

ToolWhat it doesSame as
audit_imageChecks an image and returns its verdictPOST /audit
audit_videoStarts a video check and waits for itGET /audit/{id}
audit_audioStarts a voice check and waits for itGET /audit/{id}
get_processing_resultKeeps waiting for a job that is still goingGET /audit/{id}
request_uploadGets a one-time upload URL for a file on diskPOST /uploads

Every tool replies with JSON as text. A check replies with the same verdict POST /audit returns, described in Check an image. A video or voice check replies with the job GET /audit/{id} returns, as Check a video and Check a voice clip describe.

Wait for a video or voice check

A video or voice check usually takes longer than one tool call can wait. audit_video and audit_audio start the check and wait up to 45 seconds. If the check finishes in that time, the reply has its verdict.

If it is still going, the reply carries the job's id, its status and a next field that tells the agent what to do. The agent calls get_processing_result with that id, which waits up to 45 seconds again. It repeats until the check succeeds or fails.

Resume with get_processing_result, never by calling audit_video again. A second audit_video starts, and pays for, a second check.

The check keeps running between calls, so the agent can come back to it later. Any key on your account can read the job, over MCP or with GET /audit/{id}.

Send a local file

A file on disk goes through request_upload, so its bytes never pass through a tool call. Upload from an agent covers the steps and what to send when the agent cannot run commands.

Read tool errors

When realpng refuses a tool call, for example for too few credits, the agent gets an error result. Its text is the message the API sends for that error, without the code. Errors lists every one.

A wrong key, a plan without API access, a failed payment or going over requests a minute fails the whole request instead, before any tool runs. The agent then sees a failed request, not a tool error. Errors over MCP lists each one.

Tool reference

audit_image

Check an image and return an assessment for review within your image workflow. Includes a result, a score when available, and supporting check results. Pass exactly one of image_url, image_base64 or image_upload_id. Images up to 25 MB and 25 megapixels.

InputTypeRequiredDescription
image_urlstring, uriNoPublic http or https URL of an image up to 25 MB.
image_base64stringNoThe image as base64 or a data URL, up to 4 MB. Use request_upload for larger files.
image_upload_idstring, uuidNoThe id from request_upload, for a local file up to 25 MB already PUT to its upload_url. Preferred over image_base64 for a file on disk, since it avoids putting the image's bytes through this tool call.

request_upload

Get a one-time upload URL for a local image file up to 25 MB, or a video or audio file up to 1 GB, so its bytes never pass through a tool call. Pass the file's exact size in bytes and its content type. PUT the raw bytes to upload_url yourself, once, with every returned header and a Content-Length (for example curl -T file -H "Content-Type: image/png" -H "If-None-Match: *" URL), then pass id as image_upload_id to audit_image or as video_upload_id to audit_video or or as audio_upload_id to audit_audio. The URL expires in 10 minutes and the upload is read once.

InputTypeRequiredDescription
sizeintegerYesThe file's exact size in bytes, up to 25 MB for an image.
content_typeimage/png, image/jpeg, image/webp, video/mp4, video/quicktime, video/webm, audio/mpeg, audio/wav, audio/x-wav, audio/mp4, audio/x-m4aYesThe file's content type.

audit_video

Check a video and return an assessment for review, read on 8 frames spread through it. Includes a result, a score when available, supporting check results and each frame's reading. This call waits up to 45 seconds. If it is still pending, pass the returned id to get_processing_result instead of submitting the video again. Pass exactly one of video_url or video_upload_id. MP4, MOV or WebM up to 1 GB, 3 minutes and 5,400 frames (a 60 fps video stops at 90 seconds). Videos over 1920 px on the long edge are read at 1920 px. Costs 5 credits for every started 15 seconds. Pass seconds if you know the length: credits for it are held and a longer video is refused. Without it, credits for 3 minutes are held and the real length is charged.

InputTypeRequiredDescription
video_urlstring, uriNoPublic http or https URL of a video up to 1 GB.
video_upload_idstring, uuidNoThe id from request_upload, for a local video up to 1 GB already PUT to its upload_url. Preferred for a file on disk.
secondsnumberNoThe video's length in seconds, if you know it.

audit_audio

Check a voice clip for an AI voice and return an assessment for review, read in 4 second windows across the clip. Includes a result, a score when available, supporting check results and each window's reading. This call waits up to 45 seconds. If it is still pending, pass the returned id to get_processing_result instead of submitting the clip again. Pass exactly one of audio_url or audio_upload_id. MP3, WAV or M4A audio up to 1 GB and 3 minutes. Costs 5 credits for every started 15 seconds. Pass seconds if you know the length: credits for it are held and only that much of a longer clip is read. Without it, credits for 3 minutes are held and the real length is charged.

InputTypeRequiredDescription
audio_urlstring, uriNoPublic http or https URL of an audio file up to 1 GB.
audio_upload_idstring, uuidNoThe id from request_upload, for a local audio file up to 1 GB already PUT to its upload_url. Preferred for a file on disk.
secondsnumberNoThe audio file's length in seconds, if you know it.

get_processing_result

Retrieve the status of a video check or voice check, waiting for completion. On success it returns its result. If the status is queued or running, call again with the same id. If the status is failed, review the returned error.

InputTypeRequiredDescription
idstring, uuidYesThe id returned by audit_video or audit_audio.