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 Intelligent automation → Agentic AI. 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. |
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.
A tool’s own Roles field limits it further. Unlike an assistant, a tool with no roles is open to every user who reaches it. Mutates Ticket marks a tool that changes a record. A tool marked Production Restricted does not run on a production instance.
Tools shipped with Servicely
Servicely 1.11 ships 149 tools with the applications that use them.
| Application | Tools | Examples |
|---|---|---|
| Platform | 19 | Global search, fetch a record, look up users, roles and groups |
| AI Admin Designer | 29 | Change table schemas, views, menus, permissions and workflows |
| AI Self-Service | 14 | Listed below |
| AI ITSM Operations | 16 | Read tickets and their history, update journals and priority, read SLAs |
| AI Meta Assistants | 13 | Create and review assistants, agents, prompts and tools |
| AI Code Assist | 12 | Read and change triggers, UI events and table operations |
| AI Catalog | 8 | Change catalog items, categories, questions and question sets |
| AI Knowledge Management | 5 | Search knowledge, create or update articles, suggest metadata |
| Work Tracker | 6 | Read and create work tracker items |
| Microsoft 365 Integration — AI Surface | 16 | Assign licences, manage distribution lists and mailbox settings |
| Active Directory Integration — AI Surface | 8 | Look up, create, enable and disable users, reset passwords, change groups |
| Servicely Internal AI | 2 | Read change sets and their items |
| ITSM | 1 | Create a subtask on a request |
The Self-Service Assistant uses the AI Self-Service tools. They show the range a single assistant needs.
| Tool | What it does | Changes a record |
|---|---|---|
| (Self-service) Get My Work | Finds tickets where the user is the requester or requested-for person. | No |
| (ITSMWork) Get Record Details by Number (Self-Service) | Reads one of the user’s tickets by its number. | No |
| (ITSM) Update Client Journal (Self-Service) | Adds a customer-facing comment to a ticket. | Yes |
| (ITSM) Create Interaction | Logs an interaction when knowledge and the catalog do not help. | Yes |
| (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 |
| (Catalog) Search Catalog Items | Searches the Service Catalog. | No |
| (Catalog) Load catalog item by ID or Key | Reads one catalog item the user can see. | No |
| (Asset) Retrieve My Assets (Self-Service) | Lists the assets assigned to the user. | No |
| (Approval) Get Pending Approvals | Lists the approvals waiting for the user. | No |
| (Approval) View More Information | Reads the record an approval is about. | No |
| (Approval) Approve or Reject | Approves or rejects one of the user’s approvals. | Yes |
| (Approval) Request More Information | Asks the requester for more information on an approval. | Yes |
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;