Every tool carries MCP
annotations:
read-only tools are marked so clients can run them without asking, and delete tools are
marked destructive so clients ask you first.
Uploading
upload_file
Returns the asset:
id, url, format, width, height, size_bytes, status,
folder.
create_upload_url and confirm_upload
For bytes the server can’t read.create_upload_url takes content_type and size_bytes
(both required) plus the usual destination arguments, and returns an id and a short-lived
upload_url. PUT the bytes there with exactly that content type and size, then call
confirm_upload with the id.
A conflict error from confirm_upload means the bytes haven’t landed yet: retry the
confirm, not the PUT.
Media
list_media
folder, folder_id, recursive, page, limit. Returns assets with their pagination
totals. Unconfirmed presigned uploads are not listed.
build_delivery_url
Takes the asset’surl (required) and a transform object, and returns the transformed
URL. No network call — transforms run on the fly at the CDN and are cached.
The transform schema is the full Dreep set: format, width, height, fit,
quality, gravity, crop, dpr, rotate, blur, bg, radius, trim_start,
trim_end, video_codec, fps, page, preset. Enum values are in the schema, so the
agent can’t invent one. See Delivery URLs for
what each does.
build_signed_url
Takesasset_id, url and expires_in_seconds (all required), plus an optional
transform. Needs DREEP_SIGNING_SECRET on the server.
delete_media
Takesmedia_id. Registered only when DREEP_MCP_ALLOW_DELETE is set, and marked
destructive so clients confirm it. Permanent: existing URLs, signed ones included, stop
resolving.
Processing
remove_background
path or content_base64, plus filename, format (png or webp), folder,
folder_id, auto_create_folders. One cutout serves any background colour — pass bg to
build_delivery_url afterwards.
extract_text
path or content_base64, plus filename, folder, folder_id,
auto_create_folders, and include_blocks for line-level bounding boxes. With a folder,
the text is also stored as a .txt asset.
convert_document
format is required. path or content_base64, plus filename, page (for a PDF page
to an image), key, folder, folder_id, auto_create_folders. If status comes back
processing, the url answers 202 until the conversion finishes.
Project
create_folder and list_folders
create_folder takes name or path, plus parent_id, parent_path,
access_control_type (public, private, signed) and default_expiry_seconds.
Access control can only be set on a top-level folder; nested folders inherit it.
list_folders takes path, parent_id or root_only.
The API has no endpoint for deleting folders, so there is no tool for it.
create_preset, list_presets, delete_preset
create_preset takes key, name and transform, all required. Preset keys may only
contain lowercase letters, digits and underscores, and a preset must include a format.
delete_preset takes preset_id and is gated behind DREEP_MCP_ALLOW_DELETE.
get_usage
No parameters. Returns storage bytes and image, file and folder counts — the quickest way to confirm the server is configured correctly.Behaviours worth knowing
These come straight from the API reference, verified against the live API:- Use URLs as returned. Projects can serve assets from a custom CDN domain, so the
tools never construct a delivery URL from scratch; they transform the one Dreep returned.
That’s why
build_delivery_urltakes aurlrather than just an id. - Signed URLs sign the asset and expiry only —
HMAC-SHA256over"{id}:{exp}". Transform parameters ride along unsigned, so one signed link can be resized without being signed again. - Access control is set on top-level folders, and nested folders inherit it.
- Presets need a
format, and preset keys may only contain lowercase letters, digits and underscores.
Differences between the runtimes
The Node and Python servers expose the same tools from one generated contract, and CI fails if they drift. One difference comes from the Node SDK:include_blocks on extract_text
— line blocks with bounding boxes — is available on the Python server only.