agents_prompt_restore
Restore a past version of an agent's prompt_text by version_number. Creates a new version pointing at the restored content — history is preserved. Use agents.prompt_history first to find the version_number you want.
This record as markdown: /tools/io-github-saloprj-dialogbrain/agents-prompt-restore.md
What agents_prompt_restore does on Dialogbrain
AI agents use agents_prompt_restore to create or update resources in Dialogbrain, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Dialogbrain environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
reason | string | — | Optional: why this restore is happening (shows up in history UI) |
agent_id | integer | Yes | ID of the agent |
version_number | integer | Yes | The version_number to restore (get it from agents.prompt_history) |
Parameters from the server's own tool schema.
Why agents_prompt_restore is rated Medium
This tool modifies agent configuration by restoring and versioning prompt text. While it does not permanently delete data (history is preserved), it does create new versions and change the active prompt content that an agent uses.
From the tool's definition Tool 'agents_prompt_restore' restores and creates a new version of an agent's prompt_text—it modifies the agent's configuration by creating a new version that points to restored content.
Attacks that exploit this kind of access
The rule that runs agents_prompt_restore safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Dialogbrain, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For agents_prompt_restore, this is the rule to start with:
agents_prompt_restore stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Dialogbrain, apply this rule, and every agents_prompt_restore call is checked against it from then on.
Questions about agents_prompt_restore
Restore a past version of an agent's prompt_text by version_number. Creates a new version pointing at the restored content — history is preserved. Use agents.prompt_history first to find the version_number you want. It is categorised as a Write tool in the Dialogbrain MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
agents_prompt_restore accepts 3 parameters: reason, agent_id, version_number. Required: agent_id, version_number. The full parameter table on this page comes from the server's own tool schema.
Register the Dialogbrain MCP server in PolicyLayer and add a rule for agents_prompt_restore: 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 Dialogbrain. Nothing to install.
agents_prompt_restore 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 agents_prompt_restore 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 agents_prompt_restore. 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.
agents_prompt_restore is provided by the Dialogbrain MCP server (https://api.dialogbrain.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Dialogbrain, and thousands of servers like it.
This server
Across the catalogue