> This page is for Agent Handler.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Serval

> **This Connector is in Beta**
>
> Merge has validated Serval against the provider's documented API and not yet verified it against the live one, so its behavior can differ from the documentation. It carries the same tool surface it will have at general availability. [Connectors overview](/merge-agent-handler/connectors/overview) covers the tier and how to turn Beta Connectors off.

> **Ready to connect**
>
> No custom OAuth app setup required. Sign in or provide your credentials to connect.

**Authentication:** Client credentials. See [Magic Link](/merge-agent-handler/features/magic-link) for the runtime auth flow.

## Sample use cases

* Create a ticket for a laptop request and add the requester's manager as a subscriber.
* Show pending access requests for Salesforce and their approval status.
* Find recent runs of the onboarding workflow and list any failed tasks.

## Available Tools

#### add_tag_to_subject

Attach a tag to a workflow, app instance, resource, role (entitlement) or form.

#### add_ticket_subscribers

Subscribe one or more users to a ticket's updates.

#### archive_entity

Archive an entity: hidden from browse and search, key stays reserved.

#### archive_ticket

Archive a ticket (cold storage), hiding it from most views; non-archived child tickets are archived with it.

#### create_access_request

Request access to a role for a user; it goes through the role's approval flow.

#### create_app_instance

Register an app instance (e.g. a GitHub org) in a workspace.

#### create_app_resource

Create a resource (e.g. a repository or group) under an app instance.

#### create_app_resource_role

Create a requestable role on an app resource with a provisioning method (built-in, custom workflow, linked roles, or manual).

#### create_entity

Create a record in a Serval database table (entity type).

#### create_entity_type

Create an entity type (database table) in a workspace, optionally with field definitions.

#### create_form

Create a form in a workspace from TSX source (imports 'serval/forms'), as a draft or published.

#### create_group

Create a user group, org-wide or managed by a workspace (manager_team_id).

#### create_tag

Create a tag in a workspace for labelling workflows, apps, resources, roles and forms.

#### create_ticket

Create a help desk ticket in a workspace.

#### create_ticket_message

Post a message on a ticket, or an internal note visible only to workspace members (`is_internal_note=true).`

#### create_workflow

Create a workflow (automation) in a workspace from source code, as a draft or published.

#### create_workspace_user

Add a user to a workspace with a role (e.g. TEAM_USER_ROLE_AGENT).

#### delete_app_instance

Delete an app instance. Use list_app_instances to find the ID.

#### delete_app_resource

Delete an app resource. Use list_app_resources to find the ID.

#### delete_app_resource_role

Delete an app resource role. Use list_app_resource_roles to find the ID.

#### delete_entity

Permanently delete an entity and free its key.

#### delete_entity_type

Delete an entity type AND all its descendant types; its records are orphaned (hidden), not deleted.

#### delete_form

Delete a form; open sessions are unaffected. Use list_forms to find the ID.

#### delete_group

Delete a group. Use list_groups to find the ID.

#### delete_tag

Delete a tag. Use list_tags to find the ID.

#### delete_ticket

Permanently delete a ticket with its messages and workflow run history.

#### delete_workflow

Delete a workflow. Use list_workflows to find the ID.

#### delete_workspace_user

Remove a user from a workspace (the user account itself is kept).

#### get_access_request

Get one access request with its status. Use list_access_requests to find IDs.

#### get_app_instance

Get one app instance by ID. Use list_app_instances to find IDs.

#### get_app_resource

Get one app resource with its owners. Use list_app_resources to find IDs.

#### get_app_resource_role

Get one app resource role with its owners. Use list_app_resource_roles to find IDs.

#### get_approval_request

Get one approval request (for an access request or a workflow run) with its result.

#### get_entity

Get one entity (database record) with its field values. Use search_entities to find IDs.

#### get_entity_type

Get one entity type with its field definitions (keys and data types).

#### get_form

Get one form with its current TSX source. Use list_forms to find IDs.

#### get_group

Get one group with its members. Use list_groups to find group IDs.

#### get_improvement_request

Get an improvement request with its status (pending, built or declined).

#### get_tag

Get one tag by ID. Use list_tags to find IDs.

#### get_ticket

Get one ticket by ID with its full description, status, priority, assignee and relationships.

#### get_ticket_custom_fields

Get the custom field values explicitly set on a ticket (unset fields are omitted).

#### get_user

Get one user's profile by ID. Use list_users to find user IDs (or resolve by email).

#### get_workflow

Get one workflow with its source code. Use list_workflows to find IDs.

#### get_workflow_run

Get one workflow run with status, inputs and full output.

#### get_workspace

Get one workspace by ID. Use list_workspaces to find workspace IDs.

#### get_workspace_user

Get one user's membership and role in a workspace.

#### link_tickets

Link two tickets in the same workspace with a symmetric 'related' relationship.

#### list_access_policies

List a workspace's access policies (max duration, justification rules).

#### list_access_requests

List access requests for a workspace. Paginated via page_info.cursor. Use list_workspaces for team_id.

#### list_app_instances

List app instances owned by or shared with a workspace.

#### list_app_resource_roles

List app resource roles, filtered by workspace, app instance or resource.

#### list_app_resources

List app resources in a workspace, optionally for one app instance.

#### list_approval_request_steps

List the steps of an approval request in chain order, with who approved or denied each.

#### list_approval_requests

List approval requests for a workspace. Paginated.

#### list_categories

List a workspace's ticket categories, including nested subcategories.

#### list_custom_field_options

List the custom fields available on a workspace's tickets (per ticket type), with their keys, types and allowed values.

#### list_custom_services

List a workspace's custom services. Call this for custom_service_id before create_app_instance.

#### list_entities

List a workspace's entities, optionally of one type.

#### list_entity_types

List a workspace's entity types (database tables).

#### list_folders

List a workspace's folders for one item type (workflows, guidance or forms).

#### list_forms

List a workspace's forms; `is_published=false` lists only never-published drafts.

#### list_groups

List groups, optionally those a user belongs to (user_id) or a workspace manages (team_id).

#### list_labels

List a workspace's ticket labels. Call this for label_ids before update_ticket. Use list_workspaces for team_id.

#### list_priorities

List a workspace's ticket priority levels.

#### list_requestable_roles

List roles a user can request in a workspace, with each role's access policy.

#### list_statuses

List a workspace's ticket statuses (optionally for one ticket type).

#### list_subject_tags

List the tags attached to one workflow, app instance, resource, role or form.

#### list_tags

List a workspace's tags. Paginated. Use this for tag IDs in add_tag_to_subject and workflow tag_ids.

#### list_ticket_messages

List the messages on a ticket, oldest first. Paginated via page_info.cursor. Use search_tickets to find the ticket ID.

#### list_ticket_subscribers

List the users subscribed to a ticket's updates.

#### list_tickets

List tickets in ONE workspace (team_id required), newest first, optionally within a creation-time window.

#### list_users

List users in the organization, or resolve specific users by exact email (emails).

#### list_workflow_run_tasks

List a workflow run's steps in order with truncated input/output previews and each step's outcome, to find where a run failed.

#### list_workflows

List a workspace's workflows. Paginated via page_info.cursor.

#### list_workspace_users

List a workspace's members and their roles, optionally for one user.

#### list_workspaces

List every workspace in the organization.

#### remove_tag_from_subject

Detach a tag from a workflow, app instance, resource, role or form.

#### remove_ticket_subscriber

Unsubscribe one user from a ticket. Use search_tickets for the ticket ID and list_ticket_subscribers for subscribed user IDs; users with canUnsubscribe=false cannot be removed.

#### revoke_access_request

Revoke an active (provisioned) access request, ending the user's access early. Use list_access_requests to find the ID.

#### search_approval_requests

Search a workspace's approval requests by outcome (e.g. PENDING), type (access request or workflow run) and creation window.

#### search_entities

Search entities by type, exact key, field filter groups and sorts; set include_archived to find archived records.

#### search_tickets

Search tickets by workspace, assignee, requester, status, escalation level, creation window, parent ticket, external key or ticket number.

#### search_workflow_runs

Search a workspace's workflow runs by workflow, status, user, linked ticket, parent run and creation window.

#### set_ticket_custom_fields

Set custom field values on a ticket, identified by field_key or field_id.

#### unarchive_entity

Restore an archived entity. Use search_entities with `include_archived=true` to find archived entity IDs.

#### unarchive_ticket

Restore an archived ticket. Fails if its parent ticket is still archived; unarchive the parent first.

#### update_app_instance

Update an app instance's name, external instance ID, default policy, request setting or owners.

#### update_app_resource

Update an app resource's name, type, description, external ID, scoped ID or owners.

#### update_app_resource_role

Update an app resource role's name, description, request setting, policy, provisioning method or owners.

#### update_entity

Update an entity's name and/or field values; omitted fields are untouched.

#### update_entity_type

Update an entity type's name, description, color, icon or help agent visibility.

#### update_form

Update a form's draft (name, description, source), publish it, or disable it.

#### update_group

Rename a group or replace its member list.

#### update_tag

Update a tag's name, color, icon or description. Use list_tags to find the ID.

#### update_ticket

Update a ticket's title, body, status, priority, assignee, group, requester, labels, category, due date or translations.

#### update_user

Update a user's profile (name, email, role, department, job title, timezone, locale, phone, availability) and pin or release fields from directory sync.

#### update_workflow

Update a workflow's name, code, publish state, tags, catalog listing, approval procedure, package or folder.

#### update_workspace_user

Change a member's role in a workspace. Use list_workspace_users to find members and list_workspaces for team_id.