Skip to Content
Recodocs

Tools and policies

How tools are declared, what the result envelope contains, live tool testing, and how approval policies decide whether a change needs a person.

4 min read

A tool defines what operation can be requested; a policy defines who may authorize its use. An invoice read and an invoice update may involve the same record but different consequences. Recobot and external MCP agents invoke named tools through the governed gateway. Tools declare what they do and touch; approval policies identify when a person must approve and which roles can decide. The Agents page exposes tools, policies, approvals, in-console tool testing and connector configurations.

Status: Live feature.

Tool declaration

A tool is declared once and behaves the same whether it is called by a person through the console, by Recobot or by an MCP client. Reads run directly. A consequential call returns a pending proposal instead of changing anything.

Prop

Type

Live Tool Workspace & In-Console Testing

The Tools workspace (/agents/tools and /agents/tools/$toolName) allows administrators to inspect tool schemas and test executions directly:

  • Try Tool: Run test queries and view output envelopes in real time.
  • Connectors & Workspace Settings: Manage configuration and credentials for external sources (DuckDuckGo, Exa, PostgreSQL, Linear, Zoho).
  • Execution Sandboxes: Built-in sandboxed runtime for run_python and run_bash with strict resource and network boundaries.

Result envelope

A tool result is the host's receipt for a call. Distinguish what the model proposed from what the call actually returned, including errors and incomplete results.

Every tool call returns the same versioned envelope, so Recobot and MCP clients handle outcomes uniformly.

tool-result.json
{
  "status": "pending_approval",
  "data": { "bill": "Northwind Supplies, 2026-11", "amount_usd": 7200.00 },
  "evidence": ["Bill from the accounting system", "Bank line, 2026-11-03"],
  "effect": "Would mark the bill paid and link the bank line",
  "proposal": { "severity": "high", "expires": "2026-11-08T09:12:00Z" },
  "next_actions": ["wait_for_decision"],
  "retryable": false,
  "ids": { "invocation": "inv_5b21", "run": "run_73ac" }
}
statusMeaning
succeededThe change was applied and read back, or a read returned data
pending_approvalA proposal exists; nothing has changed yet
conflictThe record changed since it was read, or a rule rejected the change; data explains which
failedThe call could not complete; see retryable

Errors use a separate structured error packet with a code, a message and a retryable flag.

tool-error.json
{ "error": { "code": "role_denied", "message": "Your role cannot call this tool", "retryable": false } }

A conflict is not an error. It tells the caller that the world moved. The caller reads the new state and either proposes again or stops. A proposal that hits a conflict when approved fails as stale and nothing is applied. See Decisions.

Approval policies

Each tool has an approval policy. The Policies tab shows the policy per tool; the Approvals tab shows the decisions that result.

PolicyBehaviour
Approval requiredThe call becomes a proposal. A person with an approver role approves or rejects it in the console or in Slack.
Exempt (low risk)A few low-risk self-service edits run without a decision. They are still audited.

Approver roles are the roles described in Roles and access; the approver must hold the permission the change needs, and Recobot never approves its own proposals. Money movement, messages sent outside the company, access changes and official documents always need a person.

A proposal is a stored dry-run preview. It is bound to the caller, the arguments and the fingerprints of the records it read, and it expires. When approved, exactly the previewed change runs.

Tool policy, approval & staleness checkClick to inspect
Every arriving tool call
Tool callArrives at gateway
Role checkCaller allowed?
Policy gateApproval needed?
Role denied
Error: deniedNo side effects
No approval needed
Run & verifyRead-back + audit
Approval required
Pending proposalExpires if unanswered
Freshness checkRecords unchanged?
Apply or staleRun or fail closed
1
2

An approval policy never grants access the role does not have.

External MCP tools

Tools offered by an external MCP server are off until an admin allows each one. A server that adds a tool does not make it callable. See MCP.

Planned

Autonomy levels per component beyond the current approval policies, and a rule language for conditional policies, are planned. See the roadmap.

How is this page?

Last updated on