> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ravenna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Tools

> Reference for the built-in Ravenna tools and integration tools a Ravenna Agent can use in rules, plus per-rule run policies, approvals, and input settings.

Tools extend your agent's capabilities to query data, execute commands, and automate tasks. Agents have access to built-in Ravenna tools for ticket management and web search, plus additional tools from installed integrations like device management systems and CRM platforms.

## Tool selection guidance

### Built-in Ravenna tools

| Tool | Purpose | When to use |
| - | - | - |
| Create Ticket | Creates tickets with specified properties | Ticket creation from conversations, form-based requests |
| Update Ticket | Modifies existing ticket properties | Adding context, changing priority, updating fields mid-conversation |
| Add Approver | Adds approval requirement to a ticket | Setting up approval flows conversationally |
| Approve Ticket | Approves a ticket on behalf of the requesting user | Conversational approvals (requires the user to be an approver or admin) |
| Approve Request | Records the speaking user's approval on the active approval round | Approvers replying "approved" in Slack, reporting how many sign-offs remain |
| Decline Request | Records the speaking user's decline, with an optional reason | Approvers rejecting a request and explaining why |
| List Applications | Retrieves available applications | Software access requests, application discovery |
| List Access Levels | Retrieves permission tiers for an application | Populating access level fields, validating requested levels |
| Mention User | Mentions a user with platform-correct formatting | Looping in team members, notifying specific users |
| User Lookup | Searches for users by name or email | Resolving names to user IDs for form fields |
| Group Lookup | Searches for user groups by name, description, and metadata | Resolving group names to IDs for user group selection fields, respecting workspace visibility and field constraints |
| Web Search | Searches the web for current information | Questions not covered by the knowledge base |
| Set Category | Assigns a category to the current ticket | Ticket triage, category-based routing and workflow triggers |
| List Tags | Retrieves all available workspace tags | Discovering valid tags before applying them to tickets |
| List Categories | Retrieves all available workspace categories | Discovering valid categories before assigning them |
| List Statuses | Retrieves all available ticket statuses | Discovering valid statuses before updating tickets |
| List Tickets | Searches and filters tickets by text and properties | Finding tickets by criteria, reporting, triage |
| Get Ticket Info | Retrieves detailed information about a specific ticket | Looking up ticket status, details, and context |
| Get Ticket Messages | Retrieves conversation history for a ticket | Reviewing discussion threads, summarizing ticket activity |
| List Channels | Retrieves all channels in the workspace | Discovering channels, finding channel IDs for routing |
| Get Channel Info | Retrieves details about a specific channel | Looking up channel configuration and metadata |
| Create Channel | Creates a new channel in the workspace | Setting up channels for teams or projects |
| Update Channel | Updates a channel's name or emoji | Renaming channels, updating channel icons |
| List Forms | Retrieves all forms in the workspace | Finding the right form for a request |
| List Custom Fields | Retrieves custom fields for a specific form | Discovering required fields before creating tickets |
| List Users | Lists and searches workspace users | Finding user IDs for assignment, requester fields |
| Get User By ID | Retrieves user details by ID | Resolving user IDs to names and emails |
| Search Knowledge Base | Searches internal knowledge base documents | Answering questions about company policies and procedures |
| Read Assets | Looks up assets and who holds them, scoped to the invoker's access. Guests and non-members see only the assets they hold. | Finding the requester's laptop, pairing a repair ticket with a specific asset |

### Tool chaining patterns

Tools can be chained within a single rule to build multi-step flows:

* **Application access request:** List Applications, then List Access Levels, then Create Ticket with pre-filled fields.
* **Ticket creation with forms:** List Forms to find the form, List Custom Fields to get required fields, then Create Ticket with custom field values.
* **Ticket investigation:** Get Ticket Info for details, then Get Ticket Messages for conversation history, then summarize findings.
* **Ticket reassignment:** List Users to find the target user, then Update Ticket to set the assignee.
* **Group-based requests:** Group Lookup to resolve a team name (with form and field context for allowlist-aware results), then Create Ticket with the group ID in user group selection fields.
* **Knowledge-first resolution:** Search Knowledge Base for answers. If no results, create a support ticket.
* **Device troubleshooting:** Look up device with Fleet, then Run query with Fleet, then analyze and respond.
* **Hardware repair:** Read Assets to find the requester's laptop, then Create Ticket with the asset in an Asset Select field.
* **CRM lookup:** Search contacts with HubSpot, then List deals with HubSpot, then summarize findings.

### User Lookup behavior

* Fuzzy matches against first name, last name, and email.
* Not needed when the user is `@`-mentioned in Slack, because Slack metadata already includes the Ravenna user ID.
* Required when a user is referenced by name only (e.g., "my manager Sarah Chen").

### Group Lookup behavior

* Searches across group name, description, email, and other metadata fields from integrations. Each word in the query must match somewhere across the group's searchable fields.
* Scoped to the current workspace. Only groups that are visible in the workspace appear in results.
* When the agent calls Group Lookup for a form field, it passes the form ID and field ID so results automatically respect any [allowlist or source constraints](https://docs.ravenna.ai/documentation/platform/groups.md) configured on the field.
* When exactly one group matches, the agent uses the group ID to prefill the user group selection field.
* When multiple groups match, the agent presents the options and asks the user to choose.
* When no groups match, the agent asks the user to try a different search term.

***

## Tool execution policies

Tools referenced in a rule can be wrapped in an **execution policy** that defines what happens before the tool runs in that rule's context. Policies are stored on the rule (under `definition.toolExecutionPolicies`, keyed by tool key), so the same tool can have different gating behavior in different rules.

### Modes

Admins set the policy as the tool's **Run Policy** in the rule editor's tool settings panel.

| Mode | Runtime behavior |
| - | - |
| Always allow | The tool runs as soon as the LLM emits a call. |
| Confirm first | The agent posts a description of the pending action to the requester and waits for an in-conversation confirmation before executing. No approval round is created. |
| Requires approval | The agent buffers the call instead of running it. After the LLM loop completes, all buffered calls are partitioned by approver set and a parallel approval round is opened for each partition. The agent only re-runs and executes the buffered calls once every round clears. |

### Defaults

* A tool with no stored policy runs as **Always allow**. Read-classified tools stay that way.
* Switching on a write- or delete-classified tool in the rule editor sets **Confirm first**.

Admins can override either default per rule.

### Approver selection

When **Requires approval** is set, approvers are sourced from one of three places:

* **Workspace admins (default).** No approval template or specific approvers are set on the rule. Only workspace admins can approve.
* **Specific approvers.** Users, groups, and manager roles picked directly on the rule, with an any, all, or majority approval policy. These resolve to a single approval round.
* **An approval template (Reusable multi-round approval configurations).** The template's rounds, policies, user lists, group lists, and manager roles are used to create approval rounds. Each template round stays separate, and template stages run in order.

Ravenna resolves approvers when the tool call is queued. If no one resolves, for example because the requester has no manager or the template was deleted, Ravenna refuses the call and the agent explains the reason to the requester. Ravenna does not substitute workspace admins.

### Batch approval gate

The approval gate is plan-level, not call-level. When the LLM produces a plan that contains multiple approval-gated tool calls, those calls are accumulated in a tool execution buffer. After the loop ends, a single batch gate fires: calls are grouped by approver source (the same template, the same specific approvers and policy, or workspace admins), and approval rounds are created per group. The agent re-triggers and replays the buffered inputs only when every round has cleared. This collapses what would otherwise be several sequential approval cycles into a single parallel one.

### Confirmation vs approval

* **Confirmation** is an in-conversation prompt to the requester. Use it as a soft guardrail when the requester is also the person authorized to take the action.
* **Approval** opens a formal approval round with separate approvers. Use it when someone other than the requester must authorize the action.

The two modes are mutually exclusive on a given tool within a given rule.

***

## Tool input settings

Rules store tool input settings at `definition.toolSettings[toolKey].inputs[inputName]`. Each input is either a pin, `{ mode: 'fixed', value }`, or an allow list, `{ mode: 'allow', values }`, whose entries are literal values or requester variables. A list of one literal value runs like a pin, and the agent still tells someone who asks for another value that it isn't allowed. An input with no setting is agent-decided.

Admins set them in the rule editor's tool settings panel, and Ravenna Assistant and MCP set them through `pinned_inputs` and `allowed_inputs` on the rule tools. `list_available_agent_tools` lists each tool's settable inputs in `input_fields`, with whether each takes an allow list and which requester variables it accepts.

### Settable inputs

* Integration tools: every top-level text, number, boolean, and option input, plus person and group inputs. Inputs a pin would break, such as pagination cursors, absolute dates, and passwords, are excluded, and so are both halves of a target a tool takes two ways where one wins (a Slack channel's `channelId` and `channelName`, Slack Enterprise `teamId` and `teamName`, Jamf's computer identifiers, Omnissa's `deviceId` and `serialNumber`).
* Foundry functions: top-level text, number, boolean, and secret inputs. Secret inputs take only a Vault reference.
* Ravenna tools: a fixed list of inputs, `set_category.categoryId`, `set_status.statusId`, `set_tags.tagIds`, `search_access_entitlements.user_ids` and `application_ids`, `get_ticket_activity.channel_ids`, `read_assets.asset_type_id`, and `query_analytics_chart.data_source`. Tools the agent always has, such as `set_category`, take a rule's settings only on a turn where that rule matched, and are held back for the turn when matched rules set them differently.
* Person inputs hold a Ravenna `User` ID. Group inputs hold a Ravenna `UserGroup` ID and are limited to groups synced from the tool's integration. With no setting on the input, the tool also takes an email or group name.

### Runtime behavior

* **Pin:** the input is stripped from the LLM-facing schema and injected at execution time, so the agent can't produce or change the value. The tool's description still names the input and its value; only Foundry secret pins are kept out of the prompt and approval cards. A pin the input's own schema refuses, or whose value is no longer the input's type (for example after a Foundry function is republished), holds the tool back for the turn.
* **Allow list:** resolved once per turn. Deactivated people and IDs that no longer resolve are dropped. A list on an input the tool no longer has, such as one a Foundry function renamed, holds the tool back.
  * No usable values: the tool is held back for the turn and listed as unavailable, with the reason.
  * One value: behaves like a pin, except on an input the tool can do without, such as `google_create_group`'s `managers`. That one stays optional and can only take the listed value, so the value isn't added to every call.
  * Several values: the input becomes required and is narrowed to the listed values. The call is checked again before the tool runs, and a value outside the list, or an empty list, is refused with `TOOL_INPUT_NOT_ALLOWED`. An input the tool can do without, such as `google_create_group`'s `managers` on a group created with no managers, stays optional.
* **Requester variables:** `self`, `manager`, `direct_reports` (person inputs), and `groups` (group inputs) resolve for the person asking, who is the author of the triggering message. A third-party bot author, such as an RSS feed, resolves to its synced bot user. Scheduled, webhook, and event runs, and messages Ravenna wrote, have nobody asking, so variables resolve to nothing. The list's named values still apply, and the tool is held back only when nothing usable is left. Manager and direct reports come from your HRIS first, then your identity provider.
* **Approval replay:** buffered calls are checked against the allow list again, for the requester stamped on the queued call rather than the approver.

### Validation

Every rule save checks the input settings it adds or changes, and rejects the save with `TOOL_SETTINGS_INVALID` for an unknown input, a value the input's own schema refuses, a person who isn't an active member, a group not synced from the tool's integration, a requester variable on a rule with an activation, a secret that isn't a Vault reference, or a person set on an `admin-for-others` tool's target by someone who isn't a workspace or organization admin (a `self` limit is allowed). Settings a save leaves alone pass, so a stale value never blocks saving. Settings on a tool the rule has switched off skip these checks too, though one that isn't a fixed value or an allow list is still refused. Publishing a draft checks every setting on the tools the rule has on, plus their secret inputs, and refuses with `TOOL_SETTINGS_INVALID` until they're fixed. Restoring a version only warns. Some saves check settings they didn't change: a save that adds an activation re-checks the rule's requester variables, wiring a tool back in checks the settings it kept, and wiring in a Foundry function checks that its secrets are set.

### Slack channel on Send channel message

Pin the channel the Slack `slack_send_channel_message` tool posts to, so the agent always uses that channel for this rule instead of choosing one, or limit it to several channels for the agent to choose from.

* Pick the channel from the **Channel** input in the tool's settings. Only channels the Ravenna bot has joined appear.
* Ravenna stores each channel's name along with its ID. With one channel, the agent fills in neither. With several, the agent picks the channel and Ravenna fills in its name.
* A channel the rule sets can be in any Slack workspace connected to Ravenna. A channel the agent picks itself cannot come from another connected Slack workspace. Slack user groups work the same way.

For example, an event rule that alerts `#it-leads` on every escalation can pin `#it-leads`, so the agent cannot post the alert anywhere else.

### Secret inputs on Foundry functions

* A Foundry function with a `secret`-typed input cannot be loaded by an agent unless every top-level secret input is pinned to a Vault credential reference.
* The pinned value is a reference to an organization [Vault](https://docs.ravenna.ai/documentation/platform/organizations/vault.md) credential, never the plaintext secret. It is merged in after the approval buffer has summarized the call and resolved inside the execution layer, so neither the model nor an approval card sees it.
* The rule editor blocks saving while an enabled tool has an unpinned secret input, because persisting the rule would wire in a tool the agent can never load.
* Nested secrets (a secret field inside an object input) cannot be pinned, and the agent refuses to load such a function. Restructure the function so the secret is a top-level input, or use it in workflows instead.
* Pins are per rule. The same function can be pinned to different Vault credentials in different rules.

### Conflicting settings

When several rules that apply to the same conversation use a tool but set its inputs differently, Ravenna does not pick a value. The tool, or Foundry function, is held back for that turn, and the agent is told it is off because its rules set it differently. Allow lists compare as sets, so the same values in another order don't conflict.

Avoid conflicting settings across rules that can match the same request.

***

## Constraints

* **Tool availability depends on integrations.** Integration tools require the corresponding integration to be installed and connected. Disconnected integrations make their tools unavailable.
* **Secret inputs must be pinned.** A Foundry function with a secret-typed input is only available to the agent when every secret input is pinned to a Vault credential in the rule's tool input settings. See [Tool input settings](#tool-input-settings).
* **Explicit tool opt-in bypasses context-presence gates.** Tools on a matched rule's **Tools** card or `@`-mentioned in it are surfaced even when supporting context (forms, categories) is empty. Knowledge lookup is the exception. It remains scoped to attached knowledge folders or `@`-mentioned knowledge resources. See [Tool availability and explicit opt-in](#tool-availability-and-explicit-opt-in).


## Related topics

- [Available tools](https://docs.ravenna.ai/documentation/automate/mcp/tools.md)
- [Agent tools](https://docs.ravenna.ai/integrations/fleet/agent-tools.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.