Convert files between formats — image resize/reformat, CSV to JSON, HTML to PDF, or DOCX to PDF. Price: $0.02 USDC per conversion (paid mode) | Free test: returns fixture data. Supported conversions: - image: resize/reformat an image from a URL (Pillow) — outputs base64-encoded bytes - csv: conve...
AI agents use x402_convert_file to create or update resources in x402 MCP Server — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your x402 MCP Server environment.
The tool creates new files in different formats from source inputs. While it doesn't delete or overwrite originals, it does modify/transform data and produce new outputs, fitting the Write category.
From the tool's definition Tool converts and reformats files—'Convert files between formats', 'resize/reformat an image', 'convert a CSV URL to JSON array', 'render HTML from a URL to PDF'—and outputs modified data (base64-encoded bytes).
Attacks that exploit this kind of access
Convert files between formats — image resize/reformat, CSV to JSON, HTML to PDF, or DOCX to PDF. Price: $0.02 USDC per conversion (paid mode) | Free test: returns fixture data. Supported conversions: - image: resize/reformat an image from a URL (Pillow) — outputs base64-encoded bytes - csv: convert a CSV URL to JSON array - html_pdf: render HTML from a URL to PDF — outputs base64-encoded bytes - docx: convert a DOCX document URL to PDF — outputs base64-encoded bytes (mammoth + WeasyPrint, content-fidelity not layout-preserving) Input limit: 10MB source file. Output limit: 8MB (before base64 encoding). Without X402_PRIVATE_KEY, only the free test endpoint is available. Returns: base64-encoded output bytes with MIME type, or JSON array for csv type. It is categorised as a Write tool in the x402 MCP Server MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the x402 MCP Server MCP server in PolicyLayer and add a rule for x402_convert_file: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches x402 MCP Server. Nothing to install.
x402_convert_file is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the x402_convert_file rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for x402_convert_file. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
x402_convert_file is provided by the x402 MCP Server MCP server (jameswilliamwisdom/x402-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →