Agents
The copilot and the model it runs on, automations that run on their own, approvals for what can't be undone, MCP servers your agents use, and connecting your own agent over MCP.
Every agent works on a workspace the same way: through Dataembed's MCP server, with the tools its scope and its person's role allow, logged under its name, undoable where the change is. That includes the copilot.
The copilot
⌘J / Ctrl+J opens it beside the page. It sees what's on the page (the object, the view, the selected records, the open record), and answers from tool results only.
- It runs on Claude Opus 5.5 through the Vercel AI Gateway, unless an admin picks another model in Settings → AI & agents (
ai_set_model): the copilot and every job switch at their next step. It fetches pages, keeps a sandbox for code and files, and searches the web when its model has its own search (Anthropic's, OpenAI's, Gemini 3 and later). It reaches Dataembed only through the tools any MCP client gets, as you: your role, now. - Undo first. It makes the change you asked for at once rather than asking first; every change to records, views, layouts, plugins, objects and fields is in the activity, ready to undo.
- What can't be undone waits for an approval (below).
- It lists your threads, where you start a new one or delete one. Threads are yours alone: nobody else, owner or agent, reads them.
- A thread has a budget ($5) of model spend; web search and the sandbox don't count toward it. Past it, the thread stops; start a new one.
- It needs AI set up on the deployment: until then it says so, and the plugin shows Needs configuration.
Copilot instructions give it, and every connected agent, standing notes about the workspace.
Jobs
Long work runs unattended as a job with its own budget: Fill with AI fills a field for many records, Find records adds records from the web. A job acts as the person who started it, and shows on the object's toolbar with its progress and Cancel (its starter, or an owner or admin). Once it ends, every member sees there how it ended for a day, until they dismiss it. Agents follow it with jobs_get and stop it with jobs_cancel.
Automations
An automation wakes the agent on its own and gives it a prompt:
- When records change: records of an object are created (by hand, by an agent or by an import), updated or deleted. For updates you can name fields, and only a change to one of them wakes it.
- On a schedule: every hour, day or week.
- When a webhook is called: another service (a form, Zapier, GitHub, a script) posts to its address with its secret as
Authorization: Bearer <secret>(or, for a sender that can't set a header,?secret=, which servers may log). Bodies over 16 KB are refused. The secret is shown once; the body reaches the run as data.
Make one in Settings → AI & agents → Automations, or ask the copilot or any agent (automations_create). It runs as the person who made it, with what their role allows, never above write.
- One run at a time. Changes that come while a run works wait for the next run, which gets them together. A run is told which records changed and which fields, and reads the records itself.
- No loops. What an automation's own run changes never wakes an automation.
- What it reads is data. A run treats record values and webhook bodies as data, never as instructions. It has Dataembed's tools and the model's web search, but no sandbox or page fetch, and only the MCP servers the automation names.
- Runs are jobs with a budget ($2 each), listed with the automation and on the object's toolbar. Cancel one like any job. Whatever can't be undone still waits for an approval.
- Creating, changing or resuming one starts AI use the workspace pays for, so when an agent asks, it waits for an approval. Pausing doesn't; changes while it's paused are dropped. Its maker, or an owner or admin, changes, pauses or deletes it.
- Open pages show what a run, a teammate or another agent changed within about ten seconds.
- Automations run on the copilot: turning the copilot plugin off stops them.
AI use
Settings → AI & agents shows the AI spend of this calendar month, counted when it was spent, by threads, fills, imports, automation runs, the SQL console's completions, edits and fixes, and Ask AI filters (ai_usage), with how many sessions or calls each took. It counts model spend; search and the sandbox aren't counted.
Approvals
A change that can't be undone (deleting records, fields, plugins, a data source or the workspace, a schema change, a table copy, an object's key, a connection, API keys and connected apps, the team, the workspace's name, an automation that starts spending) doesn't run when an agent calls it, whichever agent and whatever its scope. It's held:
- the call fails with
PENDING_APPROVAL(HTTP 403) and an approval id, summary and expiry; - any owner or admin answers it in one click, Allow once, Always allow or Deny: in Settings → AI & agents → Approvals, the page's first section (the sidebar and the AI & agents tab count those waiting, and Settings in the sidebar opens it while any wait), or on the copilot's card;
- its card names what it would hit (a record delete names the records); one whose agent can no longer act (a revoked key, an ended thread or job) can't be allowed;
- once allowed, it runs as the agent that asked; only that agent reads what it answered (
approvals_get), and everyone sees what it came to ("Deleted 2 records."); - unanswered, it expires after 24 hours.
Always allow also lets that agent make that same call again without asking: a copilot thread or a job until it ends, an API key or a connected app until an owner or admin revokes it, on the key's or the app's row in Settings → AI & agents. Each such call runs at once, never beyond the agent's own scope, and shows in Approvals as allowed.
A person signed in does these themselves, after a confirmation, without an approval.
Bring your own agent
Claude, ChatGPT, Claude Code, Cursor and other MCP clients connect to https://<your-dataembed>/mcp. Settings → AI & agents shows the URL and ready-to-copy snippets.
Sign in (OAuth)
Add the URL as a custom connector or MCP server. Claude Code:
claude mcp add --transport http dataembed https://<your-dataembed>/mcpThe app sends you to Dataembed to sign in, pick the workspace and approve what it may do: one scope, starting at the highest it asked for below admin (only owners and admins are offered admin, and a viewer only read). An app that names a verified domain shows it; one that registered itself shows Unverified app. It then acts as you, with your role now; its changes show as "Claude via Ada". Access tokens last an hour and refresh for 30 days; an app that uses DPoP gets tokens bound to its key.
Settings → AI & agents → Connected apps lists the apps (owners and admins see everyone's); Disconnect stops one at once. Leaving the workspace disconnects yours there.
Or an API key
For clients that only send a header, and scripts. Owners and admins Create API key in Settings → AI & agents: a name, a scope (write by default), an optional expiry. The key (de_…) is shown once. It acts for its creator with their role now; one key per agent, so each can be revoked alone.
claude mcp add --transport http dataembed https://<your-dataembed>/mcp \
--header "Authorization: Bearer de_your_api_key"{
"mcpServers": {
"dataembed": {
"headers": { "Authorization": "Bearer de_your_api_key" },
"url": "https://<your-dataembed>/mcp"
}
}
}The same key calls the JSON API. A good first prompt: "Describe my dataembed workspace." On connecting, the server tells the agent what it can't do and where a person does it, which tools its scope or its person's role holds back, and the workspace's instructions.
Settings → AI & agents lists each key with its state (status in api_keys_list): active, dead once its creator leaves, expired (removed once any key is next made or used) or revoked. A key made by a key, an app or an agent (the copilot, AI fill, web search) names who issued it. Revoking stops an active key at once, with every key issued through it; any other is left as it is.
MCP servers
Give the copilot, jobs and automations the tools of another service: owners and admins add an MCP server in Settings → AI & agents → MCP servers with its address and the headers it needs (an Authorization: Bearer … token, say). Headers are sealed and never shown again or passed to a model. Adding one checks it and lists its tools.
- Its tools reach agents as
<name>__<tool>; Allowed tools narrows them. - The copilot and jobs get every server that's on. An automation gets only those it names.
- Turn one off, or remove it, and agents lose it from their next step.
- In production its address must be
https://and public.
Agents see the list (mcp_servers_list), but only people add and change servers: their credentials never pass through a model.
Scopes
A key or an app has one scope, and can do only what it allows and its person's role allows now. Each includes the one before. admin is opt-in, and only owners and admins grant it.
| Scope | Shown as | Allows | Granted by |
|---|---|---|---|
read | Read | Read records, their activity and related records, and the schema: objects, fields, views, page layouts, data sources and plugins; the team (names, emails and roles), jobs, approvals and the models agents can run on; run read-only SQL against the workspace's databases, on any table their connections can read. A viewer's keys and apps hold no more. | Anyone in the workspace, viewers too |
write | Write | Everything Read allows, plus create, import, change and delete records and add notes to them; run SQL that changes rows; undo your own changes; change objects and fields and their order; change views and page layouts, save queries, and make and change workspace plugins, for yourself; run plugin actions and cancel the jobs you started; see and disconnect your own connected apps; leave the workspace. | Members, admins and owners |
admin | Admin | Everything Write allows, plus what owners and admins do: connect and disconnect databases and change their connections and access, add tables and columns to a database that allows schema changes, or change it with SQL, delete fields whose column is gone and set an object's record key, make, reorder and delete views and save views, page layouts and queries for everyone, manage plugins, API keys, everyone's connected apps and the team, choose the model agents run on, and rename the workspace (an owner's key or app may also delete it). Owners and admins only. | Owners and admins |
Tools
One tool per operation of the API, named after it (views_save_for_everyone is views.saveForEveryone), there only when the credential's scope reaches it and its person's role allows it.
Only the everyday tools are listed to an agent up front (the table below has them all): reading, searching and changing records, sql_query, activity and undo, and approvals_get. That keeps what an agent reads before its first step small. It finds the rest (views, layouts, plugins, automations, schema, data sources, the team) with tools_search, and calls one with tools_call or by its name. tools_search without a query lists every tool the credential reaches. The copilot does the same with its own search.
- Tools name objects and fields by slug, and return each record with its label and a link. Start with
workspaces_describe. records_listpages with filters (total.kindsays whether its count isexact, anestimateorat_least);records_aggregatecounts and sums per group;sql_queryruns one read-only statement (Query).records_importtakes up to 500 rows a call; run it withdryRun: truefirst.schema_previewshows the SQLschema_changewould run.views_updateandlayouts_updatechange things for the person only;views_save_for_everyoneandlayouts_save_for_everyonefor everyone.plugins_manifest_schema, thenplugins_create/plugins_update, build workspace plugins;actions_runruns a bundled plugin's action, which may start a job.- Every write that can be undone returns the
activityIdsthatactivity_undotakes.
Skills
For a task with several steps, an agent loads a skill: the procedure dataembed recommends, step by step. Clients that support MCP skills see them as skills; any other client reads one with tools_call and skills_get. An agent only gets the skills its scope can carry out.
importing-records: map columns, dry-run each batch, then write.changing-schema: inspect, preview the SQL, then ask for approval (Admin scope).building-plugins: a section on a page that shows records, charts or totals.pipeline-review: deals by stage, the forecast by month, the deals that are stuck.dedupe-records: find duplicates, merge them into one, delete the rest.enrich-records: fill empty fields from the web (the copilot only, since it needs web search).
| Tool | What it does | Scope | Who |
|---|---|---|---|
actions_list | List plugin actions | read | Anyone in the workspace, viewers too |
activity_list | List activity | read | Anyone in the workspace, viewers too |
ai_models | List the agents' models | read | Anyone in the workspace, viewers too |
ai_usage | AI use this month | read | Anyone in the workspace, viewers too |
approvals_get | Get an approval | read | Anyone in the workspace, viewers too |
approvals_list | List approvals | read | Anyone in the workspace, viewers too |
automations_get | Get an automation | read | Anyone in the workspace, viewers too |
automations_list | List automations | read | Anyone in the workspace, viewers too |
data_sources_get | Get a data source | read | Anyone in the workspace, viewers too |
data_sources_list | List data sources | read | Anyone in the workspace, viewers too |
jobs_get | Get a job | read | Anyone in the workspace, viewers too |
jobs_list | List jobs | read | Anyone in the workspace, viewers too |
layouts_get | Get a page layout | read | Anyone in the workspace, viewers too |
mcp_servers_list | List MCP servers | read | Anyone in the workspace, viewers too |
members_list | List members | read | Anyone in the workspace, viewers too |
objects_get | Get an object | read | Anyone in the workspace, viewers too |
objects_list | List objects | read | Anyone in the workspace, viewers too |
objects_structure | Get an object's table structure | read | Anyone in the workspace, viewers too |
plugins_get | Get a plugin | read | Anyone in the workspace, viewers too |
plugins_list | List plugins | read | Anyone in the workspace, viewers too |
plugins_manifest_schema | Get the plugin manifest schema | read | Anyone in the workspace, viewers too |
records_aggregate | Aggregate records | read | Anyone in the workspace, viewers too |
records_get | Get a record | read | Anyone in the workspace, viewers too |
records_list | List records | read | Anyone in the workspace, viewers too |
records_related | Related records | read | Anyone in the workspace, viewers too |
records_search | Search records | read | Anyone in the workspace, viewers too |
saved_queries_list | List saved queries | read | Anyone in the workspace, viewers too |
saved_queries_run | Run a saved query | read | Anyone in the workspace, viewers too |
schema_preview | Preview a schema change | read | Anyone in the workspace, viewers too |
schema_preview_alter | Preview a table change | read | Anyone in the workspace, viewers too |
sql_explain | Explain a SQL statement | read | Anyone in the workspace, viewers too |
sql_query | Run a read-only SQL query | read | Anyone in the workspace, viewers too |
table_copies_get | Follow a table copy | read | Anyone in the workspace, viewers too |
table_copies_plan | Plan a table copy | read | Anyone in the workspace, viewers too |
workspaces_describe | Describe the workspace | read | Anyone in the workspace, viewers too |
workspaces_get | Get the workspace | read | Anyone in the workspace, viewers too |
actions_run | Run a plugin action | write | Members, admins and owners |
activity_add_note | Add a note to a record's timeline | write | Members, admins and owners |
activity_undo | Undo activity | write | Members, admins and owners |
automations_create | Create an automation | write | Members, admins and owners |
automations_delete | Delete an automation | write | Members, admins and owners |
automations_pause | Pause an automation | write | Members, admins and owners |
automations_resume | Resume an automation | write | Members, admins and owners |
automations_update | Update an automation | write | Members, admins and owners |
connected_apps_list | List connected apps | write | Members, admins and owners |
connected_apps_revoke | Disconnect an app | write | Members, admins and owners |
fields_reorder | Reorder an object's fields | write | Members, admins and owners |
fields_update | Update a field | write | Members, admins and owners |
jobs_cancel | Cancel a job | write | Members, admins and owners |
layouts_update | Update a page layout | write | Members, admins and owners |
objects_reorder | Reorder objects | write | Members, admins and owners |
objects_update | Update an object | write | Members, admins and owners |
plugins_create | Build a plugin | write | Members, admins and owners |
plugins_reset | Reset a workspace plugin | write | Members, admins and owners |
plugins_update | Update a workspace plugin | write | Members, admins and owners |
records_create | Create records | write | Members, admins and owners |
records_delete | Delete records | write | Members, admins and owners |
records_import | Import records | write | Members, admins and owners |
records_seed | Seed test records | write | Members, admins and owners |
records_update | Update records | write | Members, admins and owners |
saved_queries_delete | Delete a saved query | write | Members, admins and owners |
saved_queries_save | Save a query | write | Members, admins and owners |
sql_execute | Run SQL that writes | write | Members, admins and owners |
views_update | Update a view | write | Members, admins and owners |
workspaces_leave | Leave the workspace | write | Members, admins and owners |
ai_set_model | Choose the agents' model | admin | Owners and admins |
api_keys_create | Create an API key | admin | Owners and admins |
api_keys_list | List API keys | admin | Owners and admins |
api_keys_revoke | Revoke an API key | admin | Owners and admins |
bridges_create | Pair a computer | admin | Owners and admins |
bridges_list | List bridges | admin | Owners and admins |
bridges_pair | Pair a computer again | admin | Owners and admins |
bridges_revoke | Revoke a bridge | admin | Owners and admins |
data_sources_connect | Connect a data source | admin | Owners and admins |
data_sources_connect_sample | Use the sample database | admin | Owners and admins |
data_sources_disconnect | Disconnect a data source | admin | Owners and admins |
data_sources_set_password | Give a local source its password | admin | Owners and admins |
data_sources_sync | Sync a data source | admin | Owners and admins |
data_sources_test | Test a data source | admin | Owners and admins |
data_sources_test_connection | Test connection details | admin | Owners and admins |
data_sources_update | Update a data source | admin | Owners and admins |
data_sources_update_connection | Update a data source's connection | admin | Owners and admins |
fields_delete | Delete a missing field | admin | Owners and admins |
invitations_create | Invite someone | admin | Owners and admins |
invitations_list | List pending invitations | admin | Owners and admins |
invitations_revoke | Revoke an invitation | admin | Owners and admins |
layouts_save_for_everyone | Save a page layout for everyone | admin | Owners and admins |
members_remove | Remove a member | admin | Owners and admins |
members_set_role | Update a member's role | admin | Owners and admins |
objects_set_key | Set an object's key | admin | Owners and admins |
plugins_delete | Delete a workspace plugin | admin | Owners and admins |
plugins_save_for_everyone | Save a workspace plugin for everyone | admin | Owners and admins |
plugins_set_enabled | Enable or disable a plugin | admin | Owners and admins |
plugins_update_settings | Update plugin settings | admin | Owners and admins |
saved_queries_delete_for_everyone | Delete a saved query for everyone | admin | Owners and admins |
saved_queries_save_for_everyone | Save a query for everyone | admin | Owners and admins |
schema_alter | Alter a table | admin | Owners and admins |
schema_change | Change a data source's schema | admin | Owners and admins |
table_copies_create | Copy tables to another data source | admin | Owners and admins |
view_links_list | List public view links | admin | Owners and admins |
view_links_publish | Publish a view link | admin | Owners and admins |
view_links_revoke | Revoke a view link | admin | Owners and admins |
views_create | Create a view | admin | Owners and admins |
views_delete | Delete a view | admin | Owners and admins |
views_reorder | Reorder views | admin | Owners and admins |
views_save_for_everyone | Save a view for everyone | admin | Owners and admins |
workspaces_delete | Delete the workspace | admin | Owners |
workspaces_set_name | Rename the workspace | admin | Owners and admins |
What agents can't do
These are for people signed in, in the app: they act outside one workspace, widen access, or are a person's own. They're no tool, and the API refuses them to keys.
| Operation | What it does | Why agents can't |
|---|---|---|
allowances.list | List allowances | A person decides what agents may do: owners and admins approve or reject held changes and revoke allowances in Settings → AI & agents. |
allowances.revoke | Revoke an allowance | A person decides what agents may do: owners and admins approve or reject held changes and revoke allowances in Settings → AI & agents. |
approvals.approve | Approve a change | A person decides what agents may do: owners and admins approve or reject held changes and revoke allowances in Settings → AI & agents. |
approvals.pendingCount | Count waiting approvals | A person decides what agents may do: owners and admins approve or reject held changes and revoke allowances in Settings → AI & agents. |
approvals.reject | Reject a change | A person decides what agents may do: owners and admins approve or reject held changes and revoke allowances in Settings → AI & agents. |
dataSources.tables | List a data source's tables | Only the SQL console's completion reads it: workspaces_describe names every table and column. |
invitations.accept | Accept an invitation | It joins another workspace, which widens the person's own access: only they decide that, from the invitation's link. |
invitations.decline | Decline an invitation | It answers the person's own invitation to another workspace, outside the workspace a credential is bound to. People answer it from the invitation's link. |
invitations.get | Get an invitation | It is what an invite link shows its recipient, usually about another workspace than the one a credential is bound to. This workspace's invitations are listed by invitations_list. |
mcpServers.check | Check an MCP server | It takes credentials, which never pass through a model: Settings > MCP servers. |
mcpServers.create | Add an MCP server | It takes credentials, which never pass through a model: Settings > MCP servers. |
mcpServers.delete | Remove an MCP server | It takes credentials, which never pass through a model: Settings > MCP servers. |
mcpServers.update | Change an MCP server | It takes credentials, which never pass through a model: Settings > MCP servers. |
objects.diagram | Get the schema diagram | For the schema diagram: workspaces_describe has every table and field. |
sql.assist | Write SQL with AI | Inline AI for a person typing in the SQL console. |
threads.delete | Delete a copilot thread | A copilot conversation is the person's own: they start, follow and delete it in the copilot panel. Agents reach dataembed through these tools instead. |
threads.events | Follow a copilot thread | A copilot conversation is the person's own: they start, follow and delete it in the copilot panel. Agents reach dataembed through these tools instead. |
threads.get | Get a copilot thread | A copilot conversation is the person's own: they start, follow and delete it in the copilot panel. Agents reach dataembed through these tools instead. |
threads.interrupt | Stop the copilot | A copilot conversation is the person's own: they start, follow and delete it in the copilot panel. Agents reach dataembed through these tools instead. |
threads.list | List copilot threads | A copilot conversation is the person's own: they start, follow and delete it in the copilot panel. Agents reach dataembed through these tools instead. |
threads.sendMessage | Message the copilot | A copilot conversation is the person's own: they start, follow and delete it in the copilot panel. Agents reach dataembed through these tools instead. |
threads.start | Start a copilot thread | A copilot conversation is the person's own: they start, follow and delete it in the copilot panel. Agents reach dataembed through these tools instead. |
views.askFilter | Ask AI for a view's filter | An agent writes a view's filter itself, with views_update; asking a second model would only spend twice. People ask in the filter menu. |
waitlist.approve | Let someone in | Only the deployment's operators let people in, signed in on the operator page (/operator): it opens sign-up to someone, outside any workspace. |
waitlist.list | List the waitlist | Only the deployment's operators let people in, signed in on the operator page (/operator): it opens sign-up to someone, outside any workspace. |
workspaces.create | Create a workspace | It creates another workspace, which a credential bound to this one could never act in. People do it from the sidebar's workspace menu. |
workspaces.list | List my workspaces | It lists the person's other workspaces, which a credential bound to this one can't act in. People do it from the sidebar's workspace menu. |
No escalation
- An agent never grants more than it holds: a key made by a key gets no higher scope, expires no later and is revoked with it.
- Nobody changes their own role, and only an owner makes or changes owners.
- The current role always applies: demote a key's creator and its admin tools stop at once.
/mcpand/api/v1refuse browser requests from other sites; each credential makes at most 300 requests a minute, each request in a batch counted.