Skip to content

Connect AI tools

Tools and limits

The tools a connected AI tool can use in SAPUGO, which scope each one needs, the guides it can read, and the limits and error messages you may run into.

When an AI tool connects, SAPUGO tells it which tools it may use. The list depends on the scopes you gave the application and on whether your organization has advanced AI tool access. A tool that isn't offered can't be called.

You don't need to learn these names to use a connection. The AI tool picks the right one from your request. They are listed here so you can see exactly what a scope opens up, and read the activity list with confidence.

Standard access#

These tools are available to every connection. All of them follow the application's access rules: hidden columns can't be read or written, and rows outside a view's filter can't be reached.

ToolWhat it doesScope
list_dataviewsLists the views the application can read.Read records and history
get_dataviewShows a view's columns, their types and which are hidden.Read records and history
query_dataviewFinds records with filters, sorting, search and paging.Read records and history
list_commentsReads the comments on a record.Read records and history
list_activityReads the change history of a record.Read records and history
create_rowCreates a record.Create and change records
update_rowChanges a record.Create and change records
delete_rowDeletes a record. It can be restored from the trash with advanced access.Create and change records
add_commentAdds a comment to a record.Create and change records

Advanced access#

With advanced AI tool access, the same scopes open more tools, and the remaining scopes become available.

ScopeTools
Read records and historyTables and schemas, databases, the current user, totals over a view with aggregate_dataview, record layouts and buttons, business rules and their logs, navigation, dashboards and widgets, pages, document templates, users, groups and permissions, effective access rules, workflows and their runs, files on records, the trash, the status of a change request, and, for organizations that use forms, forms with their versions, links and submissions.
Create and change recordsCreate or update many records at once with create_rows and update_rows, restore a record or a trash item, attach files, create a document from a template, and edit page content.
Change the structureCreate, change and delete tables and columns, convert a column to another type, create and change views, record layouts and buttons, folders and apps, business rules, dashboards and widgets, pages, and document templates and their components. For organizations that use forms: build and change forms, and close a form or one of its links. Publishing a form and creating a link that opens it to other people always wait for a person to approve.
Create and change workflowscreate_workflow, update_workflow and delete_workflow.
Run workflows and buttonstrigger_workflow, run_entry_button and cancel_workflow_run.
Decide approval requestslist_pending_approvals and decide_approval, for requests assigned to this application.
Use the assistantassistant: a conversation with the SAPUGO assistant.

Not every tool is shown to the AI tool up front. To keep its working memory free, a connection lists the everyday tools and adds find_tools and call_tool. The tool searches the rest by what it wants to do, then runs the one it found. Every check applies exactly as if it had called the tool directly.

Use the assistant#

With Use the assistant, the AI tool can describe a job in plain words, such as "add a status column to orders and a workflow that emails the customer when it changes", and the SAPUGO assistant does the work, one conversation turn at a time. If the assistant needs an answer, it asks, and the tool answers in the next turn. The assistant works only within the application's scopes. If the application can't change anything, the assistant can only look.

Guides the tool can read#

Along with the tools, a connection offers short guides that the AI tool can read when it needs them.

GuideContentsNeeds
sapugo://guides/filtersFilter methods for each column type, and how filter groups combine.Read scope
sapugo://guides/columnsColumn types, their options and value shapes.Change the structure
sapugo://guides/formulasHow to write and check a formula column.Change the structure
sapugo://guides/workflowsThe workflow language, its steps and examples.Create and change workflows

Limits#

LimitValue
Reads per key120 per minute
Writes and structure changes per key30 per minute
Assistant turns per key6 per minute
Records returned by one queryUp to 100. The default is 50.
Size of one resultAbout 100,000 characters. Larger results are cut and marked as truncated.
Records created or updated in one call without confirmation50

Limits are counted per key, so one busy tool doesn't use up what another one needs. Your organization's overall request limit also applies. A tool that goes over a limit is told how many seconds to wait. Semantic search isn't available through a connection. Use filters and text search instead.

Repeating a call safely#

Tools that create things accept an optional idempotency_key, 8 to 128 letters, digits, dashes or underscores. If a call times out and the tool repeats it with the same key, it gets the first answer back, and nothing is created twice.

Messages you may see#

An AI tool shows these as short reasons. Most explain themselves, and the tool usually corrects itself.

MessageMeaning
mcp_not_availableYour plan doesn't include AI tool access.
database_not_allowedThe application isn't allowed to use that database.
insufficient_scopeThe application doesn't have the scope this tool needs.
insufficient_permissionThe application lacks the organization permission this step needs.
confirmation_requiredThe step can't be undone. The tool must repeat it with confirmation.
pending_approvalA person has to approve the step. The tool gets a request_id to check later.
preparing_backupA backup is being taken first. The tool repeats the call shortly.
rate_limitedA limit was reached. The reply says how long to wait.
invalid_api_keyThe key is wrong, revoked or expired, its application is disabled, or it is used from an address that isn't allowed.

Stuck, or found something missing? Ask the community.

Ask the community

View as MarkdownSuggest an improvement