apply_effect

apply_effect

Server DM20 Protocol polloinfilzato/dm20-protocol
Category Write
Risk class Medium
Parameters 00 required

What apply_effect does on DM20 Protocol

AI agents use apply_effect to create or update resources in DM20 Protocol — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your DM20 Protocol environment.

Why apply_effect needs a policy

In a D&D campaign context, applying effects (buffs, debuffs, conditions) modifies character state reversibly. This is a Write operation—data is created or changed but not permanently destroyed. Severity is medium because misuse could disrupt game balance or character integrity, but effects can generally be undone.

From the tool's definition Tool name 'apply_effect' suggests modifying game state. Based on sibling tools like 'add_death_save', 'add_spell', and 'add_item_to_character', this server modifies character sheets and campaign state.

Questions about apply_effect

What does the apply_effect tool do? +

apply_effect. It is categorised as a Write tool in the DM20 Protocol MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on apply_effect? +

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

What risk level is apply_effect? +

apply_effect is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit apply_effect? +

Yes. Add a rate_limit block to the apply_effect 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 apply_effect completely? +

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

apply_effect is provided by the DM20 Protocol MCP server (polloinfilzato/dm20-protocol). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// THE FULL RECORD

apply_effect is one line of DM20 Protocol's registry record.

The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

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.