Skip to main content
Glama

PrivaTools

Run PrivaTools Operation

privatools_run_tool

Execute any synchronous PrivaTools operation (PDF, image, office, audio/video, QR, OCR, accessibility, etc.). Supply file inputs via public https:// URLs (up to 500 MiB matching the website MAX_UPLOAD_MB; max 2 concurrent fetches per IP, 30s idle timeout, 180s total deadline) or inline base64 (up to 25 MiB decoded — JSON-RPC payload limit). JSON-returning operations return data inline; binary outputs (up to 500 MiB) return a short-lived download URL (15-minute TTL) and a resource_link block. Works anonymously without an account; optional X-API-Key header uses /api/v1 quota. Call privatools_describe_tool first for parameter details. Full OpenAPI documentation: https://api.privatools.me/api/v1/openapi.json

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": {
      "operation": "<operation>"
    },
    "name": "privatools_run_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoMultiple input files (url or base64) with optional per-file filename and multipart field name.
paramsNoOptional operation parameters (form fields, JSON body fields, or query params).
file_urlNoSingle input file as a public https:// URL (SSRF-protected; up to 500 MiB, matching the website upload cap).
filenameNoOptional filename with extension for file_base64 or file_url (e.g. 'report.pdf').
file_urlsNoMultiple input files as public https:// URLs, in order (up to 500 MiB each).
operationYesOperation slug, path, or alias (e.g. 'compress', 'merge', 'rotate', 'pdf-to-text', 'accessibility-check').
file_fieldNoOptional multipart upload field name override (auto-detected from schema when omitted).
file_base64NoSingle input file encoded as inline base64 (max 25 MiB decoded JSON-RPC cap; use file_url for larger files up to 500 MiB).

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoInline JSON response object for JSON-returning operations.
bytesNo
headersYes
filenameNo
operationYes
expires_atNo
media_typeYes
download_urlNo
expires_in_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Discloses behavior well beyond the annotations: 500 MiB fetch cap, 2 concurrent fetches per IP, 30s idle / 180s total deadlines, 25 MiB base64 JSON-RPC limit, inline JSON vs short-lived 15-minute download URL with a resource_link block, and anonymous vs API-key quota paths. These are operational constraints an agent cannot recover from readOnlyHint/openWorldHint/idempotentHint alone.

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 capability statement, then layers limits and return behavior; the parentheticals carry most of the payload with little filler. The single dense sentence covering fetch limits is harder to scan than a short list would be, keeping it below a 5.

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?

For an 8-parameter, nested-schema, open-world dispatcher, the description covers invocation inputs, size/time limits, auth modes, and return shapes, and points to the OpenAPI spec for the open-ended operation surface. With an output schema present it does not need to enumerate return fields, and it doesn't.

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 coverage is 100%, so every parameter already carries its own description including the url-vs-base64 size tradeoff. The description restates the same caps (500 MiB URL, 25 MiB base64) rather than adding new syntax, ordering rules, or guidance on choosing files[] vs file_url vs file_urls, so the baseline 3 applies.

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?

Opens with a specific verb+resource and scope ("Execute any synchronous PrivaTools operation") and enumerates the operation families it covers (PDF, image, office, audio/video, QR, OCR, accessibility). The word "synchronous" plus the binary-result behavior distinguishes it from the async submit_job/job_status siblings without naming them.

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 an explicit routing instruction — "Call privatools_describe_tool first for parameter details" — and states it works anonymously with an optional X-API-Key for /api/v1 quota. What is missing is an explicit when-not: it never says to prefer submit_job for long-running or non-synchronous work, so the sync/async boundary must be inferred from the adverb "synchronous".

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.