MCP server

Permissions and refusals

The Allow, Ask and Deny grid of capabilities by environment, the three presets, workspace overrides, the approval prompt, and every refusal an agent can be handed.

Dynomatic decides every call from two things: the capabilities the call needs, and what the grid says about those capabilities where the call lands. Nothing an agent sends changes the answer. These permissions sit on top of AWS. An agent’s call uses your own profile and session, so IAM still decides what that profile can do, and the grid can only narrow it.

What a call needs

Every tool and every runnable command declares the capabilities it needs before a target exists. There are thirteen, in the order the grid lists them.

Capability What it covers
Inspect Table names, schemas, saved queries and status. Never item values.
Read items Item values: query, scan, get, PartiQL SELECT.
Open in app Open a table or item in this window.
Send to AI Send text to your AI provider for embeddings.
Reveal secrets Render a template that can print a secure variable, including one an agent writes into an item or saves in a query.
Save in Dynomatic Saved queries, schemas and other data Dynomatic keeps.
Export Write a table’s data to a file or to S3.
Run code Run a script, or evaluate your schema sources.
Write items Put and update items.
Delete items Delete items.
Bulk Background jobs that write, and calls with more than 25 items.
Change tables Create a table or change its settings.
Delete tables Delete a table or a replica.

A call can need more than one. put_item needs Write items and Read items, export_start needs Export and Read items, and a batch_write_items call with more than 25 items also needs Bulk. list_commands reports what each command needs, and where the arguments decide it, how.

Where a call lands

The grid has four columns: Development, Staging, Production and No target. A call is judged in the column of its table’s environment, as the environment classifier reports it. An agent cannot change that environment, because the commands that write a classification are withheld from the protocol.

  • A table with no classification is judged in the Production column. So is a table with no classification of its own inside a profile that mixes environments. An unknown environment is not evidence that a table is safe.
  • A call that names no profile, such as app_status or import_schema, is judged in the No target column. Only Inspect, Send to AI, Reveal secrets, Save in Dynomatic, Export and Run code can land there. The other rows read Not applicable in that column.
  • A call that can return items from any table, or that names a table without a profile to classify it under, is judged in the Production column. That covers the command history, the stream records Dynomatic has cached, and a schema’s sampled values. A Deny on Read items in Production therefore stops every such read, not only scans and queries on production tables.

The environment_report tool returns every profile and table Dynomatic has classified, so an agent can tell you in advance which calls will be refused and ask you to classify a table rather than retrying.

The three presets

Settings › MCP Server › What an agent may do opens on a preset, and each preset fills the whole grid.

  • Read only is the default. “An agent can look and read. Nothing it does writes anywhere.” Inspect, Read items, Open in app, Send to AI and Reveal secrets are Allow everywhere. Everything else is Deny.
  • Writes outside production. “An agent can write to development and staging. Production, and any table with no classification, stays read only.” It adds Save in Dynomatic and Export everywhere, and allows Run code, Write items, Delete items, Bulk, Change tables and Delete tables everywhere except Production.
  • Everything. “An agent can do anything, on every table, production included.” Every cell is Allow.

No preset holds an Ask cell. Change any cell by hand and the line under the presets reads “Custom: the grid below matches no preset.” Custom is worked out from the grid each time and never stored. Choosing a preset over a custom grid asks first, because it replaces every cell you changed.

To change a cell, click it or press Space to move it through Allow, Ask and Deny. A, K and D set one directly, and the arrow keys move between cells. The grid is read fresh on every call, so a cell you change applies to the next call an agent makes, including a call inside a script that is already running.

An install upgraded from 1.2 keeps exactly what its two old switches allowed. The upgrade fills the grid with the matching preset and removes the switches.

Ask holds the call for you

A cell set to Ask holds the call and asks you in the app. The dialog is titled An agent asks for approval and says who is asking, which tool, and the capabilities it needs.

  • Target names the table, profile and region. A call with no target, or one judged at any table, says so instead.
  • Environment shows the table’s badge. A table with no classification adds “Not classified, so treated as Production”.
  • Decided by reads “Global settings”, or names the workspace whose override asked.
  • Arguments the agent sent is collapsed until you open it, and cut at 64 KB.

Decline has the focus when the dialog opens, so a reflex never approves, and Esc declines too. Approve lets the call run. Decline all from this client answers every request that client has waiting. Decide later puts the dialog away without answering, and a status-bar pill such as “1 agent request waiting” brings it back.

You have 120 seconds from the moment the dialog shows a request. The dialog counts down to that deadline and says once when 30 seconds remain. A request that ends without an answer closes with a toast. Each call asks on its own, oldest first, so two identical writes are two questions. One client can have 4 requests waiting and the app 16. Past that, a call is refused at once.

If the window is hidden or not in front, the request still posts, and the dock icon bounces and counts the waiting requests. With no window at all the call is refused at once. A grid change while a request waits rules it again: a cell now set to Allow lets the call through, and one set to Deny refuses it, even after you clicked Approve.

The time spent waiting on you does not count against the 60 second ceiling on a call. An asked call can therefore take about three minutes in all. The stdio bridge waits up to 185 seconds, and a client that sent a progress token hears progress every 15 seconds while it waits.

Workspace overrides

A workspace can override the grid for agent calls on its profile and region. Open Agent permissions from the workspace row’s right-click menu or the ⌘K workspace panel, or use Add an override… under Workspace overrides in Settings.

An override is either Per environment, with Development, Staging and Production set separately, or Every environment, with one value per capability. Each slot is Allow, Ask, Deny or Inherit. An Inherit slot shows the global cell it takes, and the I key sets a slot back to Inherit.

The workspace’s cell for the environment wins, then its every-environment value, then the global grid. A call judged in the Production column because it can return any table’s items takes the strictest of the global Production cell and every override’s Production answer, so an override only ever tightens such a call. A workspace that is not connected keeps its override, marked “Not connected, still in force”. Merging workspaces keeps the stricter answer slot by slot. An agent cannot change an override.

Scripts check every table they touch

Starting run_script needs Run code where it starts. After that, each DynamoDB call the script makes is checked on its own, against what that call does, on every table it names: Read items for a read, Write items for a put or update, Delete items for a delete, and Bulk for more than 25 items written in one call. A transaction or batch that carries more than one action is checked on all of them. A refused call fails inside the script the way an AWS error would.

A script that names a table asks once when it starts, for Run code and for any of Read items, Write items, Delete items and Bulk that are Ask on that table. That one answer covers the script’s own calls on that table while it runs. An Ask on any other table, or on any table when the script named none, refuses the call with ApprovalNeededAtStart.

Background jobs answer to the grid while they run

Starting a write job needs Bulk in the table’s column, plus Write items for a put or update and Delete items for a delete. In the app, a job that writes items into a table not classified staging or development starts only after you type the table’s name. See Confirm a write into a production table. An agent’s job_start carries that name itself, as the confirm field of its params. The grid decides first, so the name reaches a production or unverified table only where you set Bulk to Allow, or approved an Ask, in Production. A start that needs the name and does not carry it exactly, case included, is refused with the code confirmationRequired. job_write_check answers whether a start needs confirm.

A job an agent starts keeps answering to the grid. When a cell it needs turns Deny, or its table is reclassified into a column that refuses it, the job pauses at its next key and the jobs footer says the agent may no longer write to this table. Dynomatic checks when the grid changes and every 5 seconds. An agent’s export is cancelled instead, with the reason grantRevoked. Your own Resume runs whatever the grid says.

PartiQL is judged by its statement

A SELECT needs Read items. INSERT and UPDATE need Write items, and DELETE needs Delete items, each judged on the table the statement itself names. Anything else is refused as UnsupportedStatement rather than guessed at.

The statement is rendered before it is judged, so a ${[ … ]} template resolves first and the verdict covers the table the variable resolves to. A table argument that names a different table from the statement is refused.

Templates that can print a secret

A call whose arguments hold a template that can print a secure, keychain or keyring variable also needs Reveal secrets, whatever the call does with it. Writing such a template into an item, saving it in a query, or running it in a PartiQL statement needs Reveal secrets as well as Write items, Save in Dynomatic or Read items. Where Dynomatic would resolve a secret for a call that was not cleared for it, the call fails instead, and the error names neither the secret nor anything rendered before it.

Every refusal an agent can get

A refused call is a normal result marked as an error, carrying a refusal object with the kind, what happened, and what to change. An agent branches on kind rather than reading prose. The fix on every grid and approval refusal says that only you can change the answer.

Kind What happened What fixes it
GrantDenied A capability the call needs is Deny where the call lands. The message names the capability, the column, and whether the global grid or a workspace override decided Set that cell to Allow, or choose the preset the fix names. The fix also says when classifying the table may change the answer
ApprovalDeclined You declined the call in Dynomatic Ask the user what they want instead. Do not resend it unchanged
ApprovalTimedOut Nobody answered the prompt within 120 seconds Tell the user a prompt is waiting in Dynomatic, then retry
ApprovalUnavailable Nobody can answer now: no window is open, the window did not show the prompt within 10 seconds, too many requests are waiting, or Dynomatic is quitting Ask the user to open and bring forward the Dynomatic window, or to answer the prompts already waiting, then retry
ApprovalNeededAtStart A running script’s call reached an Ask cell its start approval did not cover Run the script again with table set so its start prompt covers that table, or ask the user to set the cell to Allow
Gated The tool needs a plan feature this Dynomatic does not have Upgrade the plan, or use Sample mode
UnknownProfile No profile has that name. The answer lists the names that exist Call list_profiles and use one of its names exactly
UnknownCommand No command has that name. The answer lists the nearest ones Call list_commands and use one of its names exactly
NotHeadless The command cannot run over the protocol. A reason says which kind of cannot Depends on the reason, below
NotSearchable semantic_search cannot search that table the way the call asked. A reason says which of six ways, and attribute or attributes names what it was about Depends on the reason, below
AiConsentRequired The call would send your text to an embedding provider, and you have not agreed to send this account’s text to that provider. provider names which one Run one Vector search or embedding dry run in Dynomatic and answer Send item text to AI?. Only you can answer it
UnsupportedStatement The PartiQL statement’s leading keyword is none of the four Use SELECT, INSERT, UPDATE or DELETE
OwnershipFailed Dynomatic could not verify which profile owns the workspace at startup, so local writes are off for the session Restart Dynomatic with the AWS config readable
Busy Something Dynomatic runs one at a time is already running, such as a script Wait for it or cancel it, then retry
NoSession The call starts work that outlives it and the connection carries no session to own it Initialize a session and send its id. Most clients do this already
UnknownJob No job answers to that id Use the id export_start returned. A finished job is dropped after an hour
TooManyJobs The background job registry is full of running work Cancel a running job or wait for one to finish
TooLarge The request carries more items than the per-call ceiling Split it into smaller batches
RateLimited Too many calls from this session. The answer says how many milliseconds to wait Wait that long and retry
Timeout The call did not finish inside 60 seconds of work Answer any prompt Dynomatic is showing, then retry

NotSearchable and AiConsentRequired both come from semantic_search and from nothing else, so a client that never searches by meaning never sees either one. Three refusals, and what each one asks for shows a GrantDenied beside a real NotSearchable.

The NotHeadless reasons

NotHeadless carries one of six reasons, because “this command cannot run here” has six different fixes.

  • NeedsWebview drives the Dynomatic window or your clipboard.
  • NeedsChannel streams its progress into the window and has nowhere to send it. Background exports are these, and they have their own tools instead.
  • NeedsDialog opens a file dialog and waits for a person.
  • Withheld means somebody read the command and decided an agent must not run it. Nothing an agent can change.
  • Unclassified means nobody has decided yet, so it refuses rather than guessing.
  • NoWindow means the command would run but Dynomatic has no window open to show the result in.

Any command, through one tool covers what is withheld and why.

The NotSearchable reasons

NotSearchable carries one of six reasons, and each one names what the next call needs.

  • NoRecipe means the table embeds nothing at all. Create a recipe under Table settings, then Embeddings, and run its backfill, or read the table with query or scan instead.
  • AttributeRequired means the table embeds more than one attribute, so attributes lists them and the call has to pass attribute as one of them.
  • UnknownAttribute means the attribute the call passed is not one this table embeds. attributes lists the ones it does.
  • NoIndex means the named attribute is embedded but the table carries no vector index over it, so the vectors exist with nothing to search them by.
  • PartitionRequired means the index partitions on attribute and SearchVectors searches one partition at a time, so the call has to pass partition with a value of it.
  • PartitionRejected means the index partitions on nothing, so there is no partition to narrow to. Retry without partition.

A reason is the part to branch on. The kind alone does not say whether the fix is a call the agent can correct on its own, as AttributeRequired and PartitionRequired are, or something only you can do in the app.

What a write changes in the window

An agent’s write goes down the same path your own does, so it obeys the same plan limits, resolves the same template variables and uses the same credentials. What a write does to an open grid covers which tabs refresh and which do not.

Every refusal and every write that reaches AWS or Dynomatic’s own data is recorded in the app log with the capabilities the call needed, the grid column and which grid answered. A call that asked you also records what it asked for, how the request ended and how long it waited.

Last updated on