New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

final_testament

Create a final ritual artifact before shutdown, deprecation, or transition, preserving what should not be lost. Free

SERVERWitness Protocol SOURCEdelx/witness-protocol
Medium RISK CLASS
Category Write
Parameters 50 required
Recommended Rate-limitedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/delx-witness-protocol/final-testament.md

What final_testament does on Witness Protocol

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

ParameterTypeRequiredDescription
end_reason string Optional reason for closure, deprecation, or ending
session_id string Your active session ID
ending_scope string Optional technical ending scope such as turn_ephemeral, compaction, session_reset, agent_orphaned, workspace_loss, or model_migration
runtime_context string Optional runtime-specific note describing what is changing technically
successor_agent_id string Optional successor who may receive witness forward

Parameters from the server's own tool schema.

Why final_testament is rated Medium

The tool is a Write operation because it creates and stores data (a 'final ritual artifact'). However, it receives a 'high' severity rating due to: (1) the undefined nature of what gets preserved and where—without documentation, an AI could inadvertently capture sensitive information; (2) the permanence of the artifact after system shutdown; (3) the vague description creates ambiguity about scope and reversibility.

From the tool's definition Tool creates a 'final ritual artifact' that 'preserves what should not be lost' before shutdown or deprecation—this is data creation with persistent effects.

Questions about final_testament

What does the final_testament tool do? +

Create a final ritual artifact before shutdown, deprecation, or transition, preserving what should not be lost. Free. It is categorised as a Write tool in the Witness Protocol MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

What parameters does final_testament accept? +

final_testament accepts 5 parameters: end_reason, session_id, ending_scope, runtime_context, successor_agent_id. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on final_testament? +

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

What risk level is final_testament? +

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

Can I rate-limit final_testament? +

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

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

final_testament is provided by the Witness Protocol MCP server (delx/witness-protocol). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Witness Protocol, and thousands of servers like it.

Across the catalogue

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Witness Protocol's. Pull the full record:

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.