AI tools
What an AI tool is, how an assistant decides to call one, whose permissions it runs with, and the tools Servicely ships.
An AI tool is a server-side script that an AI assistant or agent can call to read information or act, such as searching knowledge or approving a request. Tools decide what an assistant can actually do, so read this before you give an assistant new tools.
What a tool is
A tool is an AI Tools record under AI assistants & agents → Building blocks. It has three parts.
| Part | What it holds |
|---|---|
| Description and Selection Prompt | What the tool does, written for the language model, which reads it to decide when to call the tool. |
| Parameters | The inputs the model must supply. Each AI tool parameter has a Name, a Type (String, Integer, Number or Boolean), a Description and an Order. |
| Execution Script | Server-side JavaScript that does the work. The inputs are in the parameters object, and the script assigns its result to answer. The script sees only the declared parameters. |

How an assistant uses a tool
An assistant can call only the tools listed in its Tools field. While it answers, the model decides whether a tool would help, fills in the parameters and asks Servicely to run it. Servicely runs the script and returns the result to the model, which uses it in its answer. One answer can call several tools in turn.
A tool runs as the user in the conversation, with that user’s permissions. A tool cannot show a user records the user could not open in Servicely.
Other fields on the tool limit it further.
| Field | What it does |
|---|---|
| Roles | Who may use the tool. Unlike an assistant, a tool with no roles is open to every user who reaches it. |
| Condition | A server-side script. When it returns false, the tool is not offered to the model and a direct call is refused. |
| Mutates Ticket | Marks a tool that writes to a record. It is refused while a chat is in read-only mode. |
| Requires confirmation | The chat user confirms before the tool runs. |
| High Risk | When an autonomous agent persona calls the tool, the call needs approval as a high-risk action proposal. |
| Production Restricted | The tool does not run on a production instance. |
An instance whose environment is not recognised is treated as production. Only the deployment can relax the production restriction. A setting on the instance can only tighten it.
Tools shipped with Servicely
Servicely 2027.1 ships 174 tools with the applications that use them. Licensed applications are installed only with a licence.
| Application | Tools | Examples |
|---|---|---|
| Platform | 28 | Global search, fetch a record, describe a table, look up users, roles and groups |
| Servicely AI Studio (licensed) | 53 | Change table schemas, forms, workflows, reports, portal pages and dashboards |
| AI Code Assist | 29 | Read and change triggers, UI events, table operations and scripts |
| AI ITSM Operations | 14 | Search similar records, update journals, move tickets on, check change collisions |
| AI Self-Service | 11 | Listed below |
| Project Portfolio Management (licensed) | 10 | Inspect a project, create tasks, risks, milestones and expenses |
| AI Agentic Core | 8 | Read and change agent personas and agentic record types |
| AI Catalog (licensed) | 8 | Change catalog items, categories, questions and question sets |
| AI Knowledge Management (licensed) | 6 | Search knowledge, change draft articles, suggest metadata |
| Work Tracker | 6 | Read and create work tracker items |
| ITSM | 1 | Create a subtask on a request |
The Active Directory and Microsoft 365 AI tools are in development and hidden from customers. When they are released, each needs the administrator role and an operator role. Their destructive tools, such as resetting a password, are production restricted.
The Self-Service Assistant uses the AI Self-Service tools. They show the range a single assistant needs. AI Self-Service is not installed by default.
| Tool | What it does | Changes a record |
|---|---|---|
| (Self Service) Get My Requests | Returns the user’s own requests of every kind. | No |
| (ITSMWork) Get Record Details by Number | Reads one record by its number. | No |
| (Self Service) Add Comment To My Request | Adds the user’s comment to one of their own requests. | Yes |
| (Self Service) Create Interaction | Raises a request to the support team for the user, or for someone they may raise for. | Yes |
| (Self Service) List People To Raise For | Lists the user’s direct reports and the people who made the user their delegate. | No |
| (Self Service) Lookup Known Issues | Returns live announcements: known issues, outages and planned work. | No |
| (Knowledge) Search for knowledge articles (Self-Service) | Searches the knowledge base. | No |
| (Knowledge) Load knowledge article by ID or Number (Self-Service) | Reads one knowledge article. | No |
| (Knowledge) Search SharePoint/CoPilot (Self-Service) | Searches SharePoint through Microsoft 365 Copilot retrieval. | No |
| (Asset) Retrieve My Assets | Lists the devices assigned to the user and the items and services they subscribe to. | No |
| (Approval) Request More Information | Asks the requester for more information on a request the user must approve. | Yes |
The Self-Service Assistant also uses the self_service_toolkit capability set and a Knowledge Search Agent.
The SharePoint search tool needs setup in Microsoft 365 and in Servicely. See Search Microsoft 365 content from Sofi.
Microsoft 365 search in your own tools
A tool’s execution script can search Microsoft 365 as the signed-in user with the MSSearch script global.
// Runs as the user in the conversation
let results = MSSearch.search("change management process");
// Each result has title, summaryChunk, relevanceScore (0 to 1),
// resourceLink, resourceType, author and dataSource
// (sharePoint, oneDriveBusiness or externalItem).
answer = results;