Skip to main content

mcp_call_tool_gated

Function mcp_call_tool_gated 

Source
pub fn mcp_call_tool_gated(
    agent_slug: String,
    tool_name: String,
    arguments_json: String,
    principal_permitted: bool,
) -> Result<String, String>
Expand description

Principal-gated MCP tool call. principal_permitted = false → Err without MCP. Tool must be on the agent’s allowed_mcp_tools (or *); empty allowlist denies all.