This record as markdown: /tools/firebase-genkit/exittool.md
What exitTool does on Genkit MCP
AI agents call exitTool as a supporting operation in Genkit MCP workflows.
Why exitTool is rated Low
The tool description says to call it when there is a final answer, suggesting it signals completion of a task rather than reading, writing, executing, or destructively modifying data. It appears to be a flow-control/signaling tool. No financial, destructive, or execution semantics are evident. Confidence is low because the description is minimal and the actual implementation is unknown.
From the tool's definition call this tool when you have the final answer
Attacks that exploit this kind of access
The rule that runs exitTool safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Genkit MCP, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For exitTool, this is the rule to start with:
exitTool gets a rate cap, and everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Genkit MCP, apply this rule, and every exitTool call is checked against it from then on.
Questions about exitTool
call this tool when you have the final answer. It is categorised as a Other tool in the Genkit MCP MCP Server, which means it performs auxiliary operations.
Register the Genkit MCP server in PolicyLayer and add a rule for exitTool: 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 Genkit MCP. Nothing to install.
exitTool is a Other tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the exitTool 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 exitTool. 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.
exitTool is provided by the Genkit MCP server (genkit-ai/genkit). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Genkit, and thousands of servers like it.
This server
Across the catalogue