render_template_preview

Generate a preview PDF for a DocRenders template using its built-in preview_fields data. Returns a signed download URL. Previews are cached — repeated calls for the same template return instantly. Does not count against your render quota.

Server Docrenders jwhist/docrenders-mcp
Category Execute
Risk class High
Parameters 00 required

What render_template_preview does on Docrenders

AI agents invoke render_template_preview to trigger actions in Docrenders. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.

Why render_template_preview needs a policy

This tool executes an external operation (PDF rendering via the DocRenders API) that depends on template arguments. While it reads/previews content and does not count against quota, it triggers a real external service call and returns a signed URL. It doesn't modify persistent data (Write) or destroy anything (Destructive), but it does execute an external rendering process, placing it in Execute.

From the tool's definition 'Generate a preview PDF for a DocRenders template' and 'Returns a signed download URL' — triggers external PDF generation operation via DocRenders API

Questions about render_template_preview

What does the render_template_preview tool do? +

Generate a preview PDF for a DocRenders template using its built-in preview_fields data. Returns a signed download URL. Previews are cached — repeated calls for the same template return instantly. Does not count against your render quota. It is categorised as a Execute tool in the Docrenders MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.

How do I enforce a policy on render_template_preview? +

Register the Docrenders MCP server in PolicyLayer and add a rule for render_template_preview: 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 Docrenders. Nothing to install.

What risk level is render_template_preview? +

render_template_preview is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.

Can I rate-limit render_template_preview? +

Yes. Add a rate_limit block to the render_template_preview 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.

How do I block render_template_preview completely? +

Set action: deny in the PolicyLayer policy for render_template_preview. 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.

What MCP server provides render_template_preview? +

render_template_preview is provided by the Docrenders MCP server (jwhist/docrenders-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER 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 →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.