MCP tools: what an agent is shown, and why
Open Integrations → Odoo for the upgrade notice, permission mode (engine tables or follow the Odoo account, with risk confirmation), Always refuse (grouped defaults; removal requires confirmation; five fixed refusals remain), Which AIs may use the company account, and Colleagues’ own Odoo accounts (off by default) with the member credential list. In the employee editor → Integrations → Odoo, use Narrow permissions, Use the current requester’s Odoo account, and the per-table Activity / Internal note / Notify followers / Attachment controls; each requires confirmation. Members enter their own login and key under My connections → Odoo, which shows Configured by administrator until the Admin enables it. Admins revoke a member credential from Members → row menu → Revoke Odoo account.
Verify the local caller
Section titled “Verify the local caller”duduclaw identity whoami --json queries the current run’s gateway-issued identity.
It exits non-zero when the credential is missing, inactive or cannot be verified.
Third-party local MCP servers receive DUDUCLAW_RUN_CREDENTIAL,
DUDUCLAW_IDENTITY_ENDPOINT and DUDUCLAW_IDENTITY_SERVER through the proxy;
existing agent identity variables remain stripped. The gateway answers only the
run’s CLI process and its descendants, so a server started outside the run is refused. Check the identity for each
call and authorize it separately. See Getting and verifying the caller identity.
Skill archive recovery
Section titled “Skill archive recovery”Automatic skill staleness and archiving have been removed. [skill_curator]
is accepted but ignored, with one warning per process. Gateway startup restores
recorded archived skills without overwriting existing destinations; conflicts
remain in skills-archive for manual recovery. Linux and macOS restore flat global and agent skills in both modes through directory
descriptors, without following symlinked components. Other platforms retain archives
for manual recovery.
Use skill_list to inspect loaded skills. Resolve a destination conflict before
retrying restoration; keep the archived file until recovery succeeds. Gateway startup retries recorded archives on the next start.
DuDuClaw’s MCP server advertises its tools through the standard tools/list
call. This page explains two things that are easy to get wrong:
- why an agent sees fewer tools than the server actually implements, and
- where the long-form details went, now that every tool description is capped.
If you are adding a tool, read custom-mcp-tool.md first; this page is about the declaration surface, not the implementation. To run the server on its own, without the gateway, see mcp-standalone.md.
Configuration scope and startup results
Section titled “Configuration scope and startup results”| Configuration | Runtimes that read it | Dashboard |
|---|---|---|
Employee .mcp.json |
Claude, Codex, Grok and the in-process tool loop (OpenAI-compatible, direct API, local inference) | Editable by administrators; source: "mcp_json" |
Employee agent.toml, [[mcp.external]] |
In-process tool loop only | Read-only; source: "agent_toml" |
Claude, Codex and Grok do not load [[mcp.external]]. The MCP page shows
“Used by” for each entry; mcp.list exposes effective_runtimes (claude,
codex, grok, in_process). These are configuration capabilities, not proof
that a server connected. Disabled TOML entries stay disabled. No automatic
migration or credential transfer occurs between formats. When both formats
register the same server, the in-process loop prefers its TOML mount.
Adding or editing a stdio entry through administrator-only mcp.update saves it,
clears its previous start result, then runs the same bounded probe as the MCP
page’s Check now action (mcp.probe, {agent_id, server_name}, also Admin
only). The probe validates and produces the effective config in memory without
repairing .mcp.json or writing under the employee directory. Its only config
file is a 0600 temporary proxy config, removed on completion, failure or timeout.
It sends initialize and tools/list with a 10-second deadline, cleans up the
child, and never calls an upstream tool. mcp.probe returns
{ok, tool_count, reason_code}; mcp.update returns it in probe after saving.
A failed probe keeps the saved entry. Success confirms startup and visible tool
discovery, not tool-call permission or remote-service health. At most four probes
run gateway-wide, with a two-second permit wait; concurrent checks for the same
employee/server or an exhausted permit wait return busy. Retry shortly.
A proxy refusal keeps the same identity checks and fail-closed order. The proxy
writes no startup result to shared files: it answers its own peer’s first
JSON-RPC request with -32001, a fixed message and error.data.reason_code, and
prints a fixed reason-code line to its own stderr. identity_rejected covers the
verifier’s rejected verdict (including missing/invalid credentials or unreadable
policy/key); diagnostics do not re-run verification to infer a narrower cause.
Only the gateway records start results: a probe reads the reason from its proxy
peer’s error frame, and a gateway-spawned Claude system/init event supplies only
connected / not connected (connection_failed). The init observer accepts exact
names from that spawn’s frozen effective config, limits event size, names and
statuses, deduplicates up to 64 entries and appends at most one failure summary
per event. Failed probes may append one sanitised mcp_start anomaly through the
gateway’s locked, bounded channel_failures.jsonl helper. Tokens, env values and
upstream arguments are excluded. A failed init event does not fail the turn.
mcp.list reads last_start only from the gateway’s bounded memory map (oldest
entries are evicted); it never reads JSONL as a status source. The page shows the
translated reason and timestamp. After a runtime “not connected” result, use
Check now for the precise reason. Removing/updating a server or deleting its
employee clears the previous result; restarting the gateway loses the map.
Unknown remains unknown. This is not continuous health monitoring.
MCP client protocol versions
Section titled “MCP client protocol versions”The API/openai-compat client and remote MCP bridge prefer 2026-07-28. They
probe with server/discover and put the revision, client capabilities and client
identity in each request. HTTP requests include MCP-Protocol-Version, Mcp-Method
and, where required, Mcp-Name. Valid x-mcp-header tool arguments are mirrored
into headers; tools with invalid annotations are hidden. Unicode header values
use the protocol’s Base64 encoding.
Older servers fall back to 2025-11-25 or 2025-06-18 with initialize,
notifications/initialized and the negotiated session header. During initial
discovery, -32022 selects the newest mutually supported revision. Once connected,
the bridge refuses -32022, invalidates the connection and requires a conversation
restart to negotiate, list tools and apply the gates again; it never replays the
call under a different revision. The API client also terminates a tools/call
that receives -32022 and refuses all subsequent requests on that client. Its host
must reconnect, list tools and apply the gates again; initial handshake and
standalone list recovery remain available. Explicit modern capability/header errors do not
trigger a downgrade. Each new API HTTP connection performs its own discovery;
there is no global URL-only version cache. The bridge retains negotiation state
only for its own connection. Credentials, sessions and tool lists are not shared
between principals. The API client also tries deprecated HTTP+SSE if legacy initialization returns 400/404/405, accepting
an endpoint only on the configured origin.
The API client’s modern MRTR uses a fresh request ID, the original tool arguments
and the server’s unchanged requestState for each retry, with a finite round limit. It
supports a host-provided input handler; without one it declares no interactive
capabilities and refuses unsolicited input requests. There is no new consent UI
or automatic acceptance of elicitation. Tasks, sampling and roots are not enabled
by default. The remote bridge declares no modern interactive capabilities and
refuses every input_required result, including state-only results. It also
refuses downstream requests containing requestState or inputResponses before
sending them upstream. Bridge MRTR remains unavailable until the complete
continuation payload can pass egress and approval checks bound to the original
approved call generation. A broken tool response is an error; an uncertain side
effect is not silently replayed. Tool filters and third-party classification still apply.
Remote OAuth uses pre-registered credentials first. To use CIMD, an administrator may configure an existing public HTTPS metadata document:
[remote_mcp]client_metadata_url = "https://your-domain.example/mcp-client.json"When the authorization server supports CIMD, the document must identify that exact
URL, allow the configured callback URI and use public-client authentication
(token_endpoint_auth_method = "none"). Invalid selected metadata fails closed.
Otherwise dynamic registration remains the fallback, with application_type.
PKCE and resource indicators remain required; callback iss is checked before
code exchange, and saved credentials remain bound to their issuer. Both discovered
and stored OAuth resources must exactly match the MCP endpoint’s canonical
resource (scheme, host, port and path, with trailing slashes removed). Resource
query strings, fragments and other paths on the same origin are refused. Older
stored credentials that do not match require reconnection. Automatic
403 scope step-up and CIMD private_key_jwt are not implemented.
Meeting transcription
Section titled “Meeting transcription”meeting_transcribe takes source_path from the calling employee’s own attachments,
optional engine, language_hint (default zh-TW) and write_wiki (default false).
It starts a background job and immediately returns its ID and state. The audio is
sent to the configured transcription provider. Use meeting_transcribe_status and
meeting_transcribe_cancel with job_id for the employee’s own jobs. meeting_upload_link {} (also used when no usable source path exists) returns a single-upload link for the original conversation. It requires the same
messaging:send scope as transcribe_audio, plus an authenticated employee identity
and the existing capability, approval and outgoing-data gates. External fallback
namespaces cannot use it. Its effect is a stored-data change with network egress.
The optional engine must match the administrator’s selected provider.
Audio is sent to Gemini or OpenAI, and generated text uses Taiwan Traditional Chinese
conversion. RFC-23 masks saved text when enabled; it does not mask uploaded audio.
drive_file_id and write_wiki: true return explicit unsupported errors in this
version. Transcription runs in the gateway background. See Meeting transcripts
for ffmpeg requirements, provider limits, configuration and privacy.
MCP credential boundaries
Section titled “MCP credential boundaries”DUDUCLAW_ environment variables remain unchanged when MCP credentials are
moved into the encrypted store, regardless of the server name. This does not
make a duduclaw-* server trusted: only exact host-owned names reserve built-in
slots. Effective rewritten configs replace those slots wholesale with the current
host-generated command, arguments and env; stale keys or a different executable
in raw JSON are never used. Raw mcp-proxy invocations are always refused, as are
proxy-private env fields on third-party entries. Forked copies use the original
employee’s host-known identity and policy directory, even when the copied file
lives elsewhere.
MCP API keys (ddc_<env>_…) since v1.82
Section titled “MCP API keys (ddc_<env>_…) since v1.82”Keys created in the MCP API keys section of the dashboard’s Integrations → Tool servers tab are kept in
<home>/mcp_keys.db as SHA-256 fingerprints, never in config.toml. The stdio
duduclaw mcp-server (key in DUDUCLAW_MCP_API_KEY) and duduclaw http-server
(Authorization: Bearer) look the presented key up in that store on every call
(an indexed lookup by fingerprint, then a constant-time comparison of the matched
fingerprint), so a rename, a new expiry, a disable or a delete applies to the next
call without a restart. They open mcp_keys.db strictly read-only; only the
gateway writes it. Each key has the expiry the Admin chose (30 / 90 / 365 days, a
date, or none) instead of the old fixed 30 days. An expired and a disabled key get
the same refusal (API key is expired or disabled); the server log names the
reason and the key id, never the key.
Last use is recorded in a separate file, <home>/mcp_keys_usage.db (key id and
time, at most once a minute per key). The gateway reads it when it lists the keys.
It authenticates nothing: a damaged or edited usage file changes only what the
“Last used” column shows.
A dashboard key issued for a client ID is always external. Its scopes come
from one list on the server (memory:read, memory:write, wiki:read,
wiki:write, messaging:send); any other scope is refused with
mcp_key_scope_not_grantable, which names the scope. The client ID cannot be an
AI employee’s ID or name, or a reserved system name (dashboard, cron, default,
gateway-internal, …). An AI employee’s own key (RFC-21 per-agent keys, the v1.76
dedicated Google key) is requested explicitly with agent_id, which must be the
employee’s ID — its directory name under agents/, exact case. The [agent] name / display name, or another case of the ID, is refused
(mcp_key_employee_id_required). The key is bound to that employee at creation
(agent_binding, never changed afterwards). It is an internal key that acts as
that employee and carries only scopes the v1.81 picker offered, never admin. For
a colleague’s Personal employee, only the owner, or an Admin after a fresh audited
step-up, can create one. (Personal employees belong to the native Linux employee
isolation that is not available yet; current installations have none.)
Internal keys on duduclaw http-server. The HTTP server acts for one fixed
employee (its default agent) for every caller, and many tools act for that
employee rather than for the key: working_state_*, mail_*, every wiki_*
tool, canvas_*, send_message, tasks_list, plan_*, odoo_*, the
computer-use, fork and knowledge tools, and the rest of the set
DEFAULT_AGENT_HANDLER_TOOLS ∪ PROCESS_AGENT_TOOLS in
crates/duduclaw-cli/src/mcp/tools_list.rs. Over HTTP the rule is default deny:
- Only the gateway’s own internal key (the
gateway-internalkey whose fingerprint the gateway recorded, in a server whose own employee identity is verified) may call those tools. - Every other non-external key — an employee’s own key, a key created under a
display name, a migrated key, any unknown internal client ID — is refused all of
them (
-32003, audit classper_agent_key_process_tool, whatever scopes the key holds), andtools/listdoes not show them. This is decided from how the key was authenticated, never from the files on disk. - For the remaining tools (
memory_store,memory_search,file_read, …) such a key acts as the employee it is bound to, never as the server’s default agent.tools/listshows only the tools the key’s scopes let it call (a key with onlymemory:readdoes not seememory_store); tools that needadmin(such astasks_create) are never callable with a per-employee key and are not listed. - A non-external key with no binding, or whose bound employee no longer exists
(directory removed or renamed, or
status = "deleted"), is refused every tool (-32003, audit classremote_key_unboundwith the reason) and is shown an emptytools/list. The keys page marks such a key Employee no longer exists.
Deleting an employee revokes its keys for good. When an employee is deleted on
the dashboard, every key bound to it is deleted in the same operation (a tombstone:
the fingerprint is kept, so the key never authenticates again), each with an
mcp_key_deleted audit record (reason employee_deleted). Restoring the employee
does not bring the keys back, and a later employee created with the same ID never
gets them: issue that employee a new key. An employee removed outside the gateway
(MCP agent_remove moving its folder to agents/_trash, or a manually removed
folder) or marked status = "deleted" loses its keys the same way at the gateway’s
next key sweep (at start and every 10 minutes; nothing is decided while the whole
agents/ folder is missing). As a second line, the HTTP server refuses a key that
is older than its employee’s folder (reason employee_recreated, keys page Employee
no longer exists) — that is an employee re-created under a removed one’s ID, even
before the next sweep. This check needs the folder’s creation time from the operating
system (macOS, Windows, most Linux file systems); where it is not available, the
revocation above is the guarantee. Restoring or copying the whole DuDuClaw home from
a backup resets those creation times, so per-employee keys issued before the restore
are refused and must be re-issued.
Refused keys are audited. Every refused credential is recorded with a reason
— one of missing_header, bad_scheme, malformed_key, wrong_credential_type,
unknown_key, key_disabled, key_expired, key_deleted, key_unbound or
store_unavailable — and a fixed route label (mcp, mcp_v1_call,
mcp_v1_stream, …). A disabled, expired, deleted or unbound key adds its key id
(mk_…). No record contains the key, a part of it, its fingerprint, the query
string or the User-Agent. Records go to two files:
<home>/security_audit.jsonl, the hash-chained security audit (plus a warning in the server log). A refusal of an existing key — disabled, expired, deleted, or its employee no longer exists — is written at once asmcp_auth_failedwith the key id: once per key and reason per hour, and the rest of that hour’s attempts as one more record with acountafter the hour. Every other refusal is counted into onemcp_auth_failed_summaryper hour: the count per reason, the number of distinct sources (up to 1,024), any records that could not be written, and the name of the detail file. So someone without a valid key adds at most one record an hour to the security audit, and a revoked key that an integration keeps retrying shows up at once with its key id.<home>/mcp_auth_failures.jsonl(owner-only), the per-minute detail with thesource: the peer address the server’s socket saw (neverX-Forwarded-For; behind a reverse proxy this is the proxy). Onhttp-serverthe first failure per source, reason and key in a minute is written at once and the rest of that minute as one record with acount; at most 60 such records a minute, anything beyond summed into onesource: "many"record. At 4 MiB the file is renamed tomcp_auth_failures.jsonl.1, replacing the previous one, so the two together stay under about 8 MiB.duduclaw importdoes not migrate it.
The stdio mcp-server writes at most one mcp_auth_failed record per process to
the security audit, and no detail line.
External keys and each employee’s own stdio mcp-server are not affected. A later
version will run every tool as the key’s employee and lift the refusal; the current release
does not change this.
config.toml [mcp_keys] after the upgrade. At its first v1.82 start the gateway
records the fingerprints of the [mcp_keys] entries in config.toml as pending,
in one transaction. It then moves each entry into the store, writes its audit
record, and only then removes it from config.toml. When nothing is pending, it
writes a migration complete marker. A migrated key keeps its client, external
flag and scopes. It expires at the instant v1.81 would have started refusing it
(created_at + 31 days, to the second). A migrated internal key is bound to an
employee only when its client ID exactly equals an existing employee directory
ID and every one of its scopes is one a per-employee key may carry (never
admin); otherwise it has no binding (and is refused by the HTTP server, see
above). An employee’s legacy key with admin or another scope not allowed for a
per-employee key is moved with its scopes unchanged, but unbound: the keys page
marks it Needs re-issue: scopes not allowed for a per-employee key and the
gateway log names it by its hint (ddc_prod_…3f9a). Issue the employee a new key
by its ID and delete the old one. On a key bound to an employee only the
per-employee scopes ever take effect, so admin never stands in for another scope.
An entry whose created_at lies more than a few minutes in the future is never
accepted, selected or migrated (it is listed as ignored). The rules every reader
applies (the MCP server, the OAuth consent page and the Google key check):
mcp_keys.dbdoes not exist (no v1.82 gateway has started on this home, e.g. anmcp-serverlaunched before the upgraded gateway ever ran):[mcp_keys]is read under the v1.81 rules (30 days). This is the only bootstrap window. It closes for good the moment the gateway creates the store. Deletingmcp_keys.dbneeds write access to the home directory, and the store refuses a home that is writable by group or others.mcp_keys.dbexists but cannot be read, lacks its tables, or has an unexpected schema oruser_version: every key is refused (store unavailable), including the gateway-internal key. This is never treated as “no store”.- A stored key decides alone. A stale
config.tomlcopy of it is ignored and removed at the next start. - Before the completion marker,
config.tomlis accepted only for the fingerprints recorded as pending. After it,config.tomlis never consulted for a non-internal key. An entry added later is not imported and never authenticates. It is logged once as an ignored legacy entry and listed on the keys page by its hint (ddc_prod_…3f9a), so an Admin can remove it. gateway-internal: the gateway records the fingerprint of the key it provisions or rotates inmcp_keys.db. Only that key is accepted, as clientgateway-internal, with itsconfig.tomlentry present and within 30 days. An entry that merely claims that client ID is refused. On the first start after the upgrade the gateway issues itself a new internal key (or keeps theDUDUCLAW_MCP_API_KEYit was started with, rewriting that key’sconfig.tomldate), records only that one, and hands it to its own MCP registrations; later in the same start every employee’s.mcp.jsonis rewritten with it. Everygateway-internalentry already inconfig.toml, whatever its date, is not adopted, not recorded and never authenticates; it is logged once by its hint and listed on the keys page as an ignored legacy entry.
The OAuth consent page (http-server) accepts an active internal (non-external)
key from the store, or a config.toml key allowed by the rules above, as operator
proof. Consents given with a key before it moved into the store remain valid.
Downgrading is one-way for keys. v1.81 does not read mcp_keys.db. After a
downgrade, external keys must be re-issued on v1.81. Do not restore an old
config.toml to get them back: it would bring back keys that were deleted or
disabled on v1.82.
Local text to speech
Section titled “Local text to speech”synthesize_speech uses providers available in the MCP process: installed local
Kokoro or Piper models. Paid TTS keys are held only by the gateway and are not
available to this process. Audio is returned as base64, in MP3 or WAV format
according to the provider.
Per-employee tool list pruning
Section titled “Per-employee tool list pruning”In an employee’s overview, Admins can open Tool list pruning to select a mode, inspect unused tools and estimated token savings, or restore the list while pruning is on. The selector uses the existing employee update path. The status and restore RPCs are Admin-only: agents.tool_pruning_status {agent_id} and agents.tool_pruning_restore {agent_id}. Estimates use each candidate tool’s serialized definition length divided by four; they are not tokenizer measurements or measured provider savings.
[capabilities]tool_pruning = "shadow" # "off" | "shadow" | "on"The default is shadow: observe and report, with the same tools/list response as off. Unknown or malformed values behave as off and warn once. Only on hides eligible tools, after all existing discovery filters. This never grants or revokes permission: a hidden tool remains callable through the existing dispatch gates. A successful hidden-tool call makes it visible again through notifications/tools/list_changed.
The calculation reads at most the last 5 MB of tool_calls.jsonl. Missing or unreadable logs, and fewer than ten recorded turns, leave the list intact. A candidate must be unused across at least ten turns spanning two sessions, or five sessions. Memory, tasks, working state, messaging, approvals, wiki reads, tool discovery, Admin/unknown-effect tools and tools with active scoped task grants stay visible. A turn is a distinct host-stamped (session_id, turn_id) pair, not a log line. Channel calls use the conversation session and turn; dispatched work uses its own dispatch session and run (one run is one turn). Older rows without these identities do not establish turn samples, but a successful use still resets that tool’s unused window. Thresholds count the turns and sessions since each tool’s last successful use. Results are cached per process for five minutes. Restore writes an employee-specific reset marker; usage before that marker no longer contributes, so the full eligible list returns. Existing permission filters still apply.
Claude CLI minimal_context uses --tools for built-in CLI tools; it does not prune MCP definitions. Its behavior is unchanged.
The rule: discovery follows authorization
Section titled “The rule: discovery follows authorization”tools/list only lists the tools the calling agent can actually call right now.
Authorization filters mirror the dispatcher gates. Optional per-employee pruning
then narrows discovery only: an authorized tool can be callable while hidden.
This matters for cost as much as correctness. The tool schemas are a fixed
prompt cost paid on every spawn: the CLI reads tools/list once per session and
the whole payload lands in the model’s context before the first user token. A
schema for a tool the gate would reject is paid for twice — the tokens, and the
model planning around something it cannot use.
Hiding a tool is not an authorization decision. Calling an unlisted tool still reaches the real gates, which accept or refuse it under the existing rules.
What is filtered
Section titled “What is filtered”| Filter | Source | Effect when off / empty |
|---|---|---|
| External client whitelist | principal.is_external |
Only the 7 legacy whitelist tools plus tools in explicitly granted scopes; then the scope row below applies |
| Scopes of a non-employee caller | principal.scopes, for a key that holds no admin and is not an AI employee (not the gateway-internal key, not a per-agent key, not a process the gateway spawned for an employee) |
Only tools whose minimum scope the key holds; tools that act for the process’s own agent (working_state_*, canvas_*, shared_wiki_delete, memory_search_by_layer and three consolidation reads, …) are hidden from it, and from every external key, and the dispatch gate refuses them by the same rule (process_agent_tool). See mcp-standalone.md |
| Google Workspace | config.toml [integrations] google_workspace |
All 38 Google tools, including google_status, are hidden while off. Dashboard setup and tests remain available: Connect Google. |
| Google identity (v1.76.0) | agent.toml [google] identity, else config.toml [integrations.google_identity] default_identity |
none hides the same 38 tools and the dispatch gate refuses them. Any other value keeps them listed; a call that cannot use the identity returns the reason. google_status now starts with who the employee acts as |
| GitHub | config.toml [integrations] github |
5 github_* tools hidden |
denied_tools / allowed_tools |
agent.toml [capabilities] |
Denied tools hidden; a non-empty allowlist hides everything else. An entry matches a tool exactly, or by a trailing *: *, mcp__duduclaw__* (every DuDuClaw tool), mcp__duduclaw__odoo_* / memory_* (anchored prefix). mcp__<other server>__… never names a DuDuClaw tool; a * elsewhere is literal. The approval lists and scoped_tools use the same rule |
os_native |
agent.toml [capabilities] |
6 os_* automation tools hidden |
recording |
agent.toml [capabilities] |
5 browser/desktop recording tools hidden |
system_operator |
agent.toml [capabilities] |
19 appliance operation tools hidden |
codrive |
agent.toml [capabilities] |
codrive_run / codrive_status hidden |
computer_use |
agent.toml [capabilities] |
8 computer_* tools hidden (see computer_* below) |
computer_use_config.workspace |
agent.toml [capabilities.computer_use_config] (with computer_use) |
3 computer_workspace_* tools hidden (see computer_workspace_* below) |
db_sources |
agent.toml [capabilities] |
4 db_* tools hidden |
[fork] enabled |
agent.toml |
6 forking tools hidden |
[knowledge] enabled + collection grants |
config.toml / knowledge.db / agent.toml [knowledge] collections |
4 knowledge_* tools hidden unless the knowledge base is on and at least one collection is granted to the employee or its department (after [knowledge] collections narrowing); a grant change sends list_changed (see knowledge_* below) |
[responsibilities] enabled |
config.toml |
3 responsibility_* tools hidden (see responsibility tools below) |
scoped_tools |
agent.toml [capabilities] + live grant |
Hidden until a task-scoped grant is active |
| Team role membership (v1.82) | agents/.ephemeral/eph-* scaffold whose [team_member] names the same parent as its ephemeral.toml, plus a token-verified identity (DUDUCLAW_AGENT_TOKEN) |
team_handoff hidden from every other caller, under every delegation policy; an ordinary employee therefore sees one tool fewer than before. The handler refuses the same callers with not_a_team_member |
The machine-operation console (/console) is available only to administrators. Machine-operation tools used by a system_operator employee also verify on the server that the person requesting them is an active administrator; ordinary chat with other AI employees remains available according to existing access rules.
A freshly created agent has none of these opted in, which is the point: the default deployment pays for the tools it can use and nothing else.
How a mid-session change reaches the agent
Section titled “How a mid-session change reaches the agent”Hiding a tool used to make it permanently unreachable, because an MCP client
reads tools/list once when the session opens. The server now declares
tools.listChanged in its initialize response and emits
notifications/tools/list_changed whenever the caller’s visible set actually
changes — compared as a set, so touching a config file without changing it
sends nothing.
So this sequence works without a restart:
- An agent hits a
scoped_toolsdenial, or an operator grants a capability. capability_requestis approved (or the dashboard savesagent_update, or someone editsagent.toml).- Within a few seconds the server notices the change and notifies the client.
- The client re-reads
tools/listand the tool is there.
A task-scoped grant is revoked at every task terminal state, and the same mechanism takes the tool back out of view.
Caveat: an agent cannot self-discover a scoped_tools name
Section titled “Caveat: an agent cannot self-discover a scoped_tools name”A tool listed in scoped_tools is hidden until a grant is active, so the agent
cannot read the name off tools/list in order to ask for it. Tell it the name
another way — in its SOUL.md, in a playbook rule, or by minting the grant at
goal kickoff with a grant:<tool> tag. This is the one place the pruning costs
something, and it is deliberate: advertising a tool that is denied right now is
the failure mode the rule above exists to remove.
Exceptions since v1.68.0: listed but refused
Section titled “Exceptions since v1.68.0: listed but refused”Two new gates refuse a call without removing the tool from tools/list:
agent.toml [permissions]: a flag written asfalserefusescreate_agent(can_create_agents);send_to_agent,spawn_agent(can_send_cross_agent);create_reminderandtasks_createwith aschedule(can_schedule_tasks);skill_hub_install,shared_skill_adopt,skill_graduate,skill_from_recording(can_modify_own_skills). The refusal is JSON-RPC error -32003 and apermission_deniedaudit event. Anagent.tomlthat exists but cannot be read or parsed refuses these tools; a missing one allows them.tasks_createwithout aschedulestays allowed, which is why these flags are checked per call. Ephemeral role members are scaffolded withcan_create_agents,can_modify_own_skillsandcan_schedule_tasksset tofalse.config.toml [odoo] features_*: Odoo tools stay listed and are refused per call for models of a switched-off module (project and hr are off by default).
Record relationship checks: listed but refused
Section titled “Record relationship checks: listed but refused”Some tools change or trigger a record that belongs to an AI employee. They stay listed for every caller and check the relationship per call:
- Tasks:
tasks_updateandactivity_postwith atask_idpass for the task’s assignee, claimer or creator;tasks_completeandtasks_blockpass for its assignee or claimer;tasks_claimpasses for an unassigned task or one already assigned to the caller. Anything else needs a delegation relationship with the assignee (same department,reports_toabove or below, or a whitelist pair, per[delegation] policy). An unassigned, unclaimed task must be claimed first. Taking another employee’s task for yourself throughtasks_updatealways needs the relationship. - Task fields: an AI employee cannot change
titleordescriptionof a goal-mode task (acceptance_criteriais refused for every MCP caller), and cannot add, remove or reorder tags starting withoutcome:orgrant:or theauto-researchtag, intasks_updateor intasks_create’stags. - Parent of a new task: the gateway tells the MCP server which task the
current round works on (
DUDUCLAW_TASK_ID, the same value approval cards carry). When that task is the caller’s own and belongs to a continuous responsibility run (the run’s task or any task under it, including a sub-task woken by the task board),tasks_create(includingkind="goal") places the new task under it when noparent_task_idis given, and aparent_task_idthe employee gives must be that task or one of its sub-tasks, or the call is refused. A value that is present but empty or malformed is refused, never read as “no round”. In every other case (an ordinary goal round, a task-board wake-up of a task outside any run, no round information) there is no default parent. New in this release for every caller: a givenparent_task_idneeds a relationship to the parent (assignee, claimer, creator, or the delegation policy), where v1.69 wrote it unchecked;kind="goal"acceptsparent_task_id, which v1.69 ignored; and a task can hold at most 200 unfinished sub-tasks created by AI employees (aschedule, routine or reminder, is not a sub-task). The round is not passed to a server started from Bash, or under the Grok runtime; a task created there is not placed under a run unless the employee names the run, and is not counted toward its spending. Correct placement also relies on the employee not being able to rewrite theduduclawentry of its own.mcp.json, a separate platform fix that must ship first. - Routines:
update_cron_task,delete_cron_task,pause_cron_taskandrun_cron_taskneed the caller to be the employee the routine runs as, or to have the relationship with it. Addressed byname, they act on exactly one routine; a shared name is refused with the candidate ids. - Reminders:
create_reminderwith anagent_idother than the caller needs the relationship with that employee. agent_updateon yourself: an AI employee cannot sendreports_to,db_sources,db_sources_add,db_sources_remove,budget_cents,reply_language,memory_language(v1.84.0),runtime,timeout_secs,max_turnsorroleabout itself (auditagent_authority_refused).agent_updateauthority changes: updates are written atomically and support identity, model, budget, heartbeat, container, and database-source fields. AI callers may only narrow authority fields, including on subordinates; widening budgets, capabilities, or database sources requires an administrator in the dashboard. Existing self-edit and organization checks still apply. Tell the requesting person when administrator action is needed.
An operator (an MCP key that maps to no AI employee, in a process that is not
running for one) is not restricted. The shared internal key in a process with
no employee identity owns no record, so it is refused on everyone’s. A process
whose identity is a system sender name (dashboard, cron, …) is treated as
untrusted. Every refusal is audited in tool_calls.jsonl. Details:
task board,
delegation isolation.
The description budget
Section titled “The description budget”Each tool’s description is capped at 200 bytes and each parameter’s
description at 200 bytes (one documented exception, below). The cap is
enforced by a test, not by convention.
Two consequences for anyone adding or editing a tool:
- Say what the tool does and what will refuse it. Safety-critical clauses — “this does not send”, “this is publicly visible”, “rejected whole, never truncated” — stay in the description. Rationale, worked examples and design labels do not.
- Put the long version here. Link a section of this page, or the tool’s own spec page, from the description.
The one exception
Section titled “The one exception”team_handoff’s packet parameter carries the full TaskPacket shape (capped at
1,024 bytes). build_tool_schema types a parameter as a bare JSON-Schema
string unless the short PARAM_TYPES list gives it a scalar or string-array
type, so for an object such as a TaskPacket the parameter description is the
only place its real shape can be stated — and a TaskPacket is rejected whole rather than truncated, so an agent
that cannot see the shape cannot produce a valid one. The full reference is
../spec/task-packet.md.
Exceptions live in one list (PARAM_CAP_EXEMPTIONS) with a test that fails when
an exemption stops being necessary.
Tool annotations
Section titled “Tool annotations”Every tool in tools/list carries MCP annotations, derived from the same
effect table the dispatch gate and action_rules use
(duduclaw_core::effect_of):
| Effect class | readOnlyHint |
destructiveHint |
|---|---|---|
read |
true |
(omitted) |
draft, send |
false |
false |
publish |
false |
true (a publish can replace what others already read) |
modify |
false |
true, except memory_store, user_profile_record, wiki_rebuild_fts (they only add or regenerate). wiki_export stays true: it overwrites the previous export, including an Obsidian vault someone may have edited |
delete, purchase, admin, and any unknown name |
false |
true |
Memory, wiki, user-profile and code_map tools also say openWorldHint: false;
memory_alias_add, wiki_export and wiki_rebuild_fts say
idempotentHint: true. The overlays live in
crates/duduclaw-core/src/mcp_tool_defs/annotations.rs.
The hints are for the MCP client (for example, whether it asks before a call). They never authorize anything: every DuDuClaw gate still runs on the call. They are also left out of the description budget above, because Claude Code and Codex build the model’s tool list from name, description and input schema only.
Long-form details moved out of descriptions
Section titled “Long-form details moved out of descriptions”tasks_create schedules
Section titled “tasks_create schedules”For a cron schedule, cron_timezone defaults to the company time zone. If it is unset or invalid, the schedule uses UTC and the confirmation says so. Member-created routines use UTC with a notice when the company time zone observes daylight saving. One-shot schedule times must include a UTC offset, for example 2026-11-28T09:00:00+08:00.
tasks_create / tasks_update — goal cost cap
Section titled “tasks_create / tasks_update — goal cost cap”tasks_create accepts cost_cap_cents with kind="goal": a positive integer in US cents (up to 9223372036854775807). Omit it to use [goal_loop] default_cost_cap_cents (0 means no default cap). Non-goal and scheduled requests reject the argument. Example: {"kind":"goal","title":"Review the report","assigned_to":"agnes","cost_cap_cents":500}. Keep the usual description and acceptance criteria for your goal.
tasks_update accepts the same field for a goal. Employees may add or narrow a ceiling, but cannot raise or remove an effective ceiling; raising is an operator action. Saving a new cap does not itself resume a paused goal. The dashboard’s Raise cap and retry saves it, then uses the existing retry decision. At or above the measured task-tree cap, the goal pauses as budget_exhausted; unreadable cost skips dispatch. See goal loop.
tasks_create — per-goal run limit
Section titled “tasks_create — per-goal run limit”tasks_create with kind="goal" (not scheduled) accepts timeout_secs, an integer from 30 to 3600: the limit for each CLI run / API request of that goal’s rounds, replacing the assignee’s own run limit. Over MCP it can only be shorter than or equal to that limit; giving a goal more time is an Admin decision on the dashboard. Claude employees also obey it; execution is capped by the current global [runtime] max_timeout_secs. tasks_update refuses the field. Example: {"kind":"goal","title":"Reconcile the ledger","assigned_to":"anna","timeout_secs":180}.
office_script — bundled office scripts
Section titled “office_script — bundled office scripts”office_script runs a manifest-verified script bundled in the binary for
docx, xlsx, pptx, or pdf. Select create, extract, or to_pdf;
.py is optional and script names cannot contain paths. Skills installed in an
agent’s skill folder may change the prompt/instructions, but cannot replace the
executable script. This tool runs on Linux and macOS.
Pass args as a JSON string array, for example ["outline.md", "--out", "attachments/deck.pptx"]. Input may come from the agent directory or shared
attachments. Output must be a new file under the agent directory, with an
existing parent directory and the expected extension. Pass each flag and value
as separate array elements; --key=value, symlinks and path traversal are
refused. To hand a produced file to the user, end the reply with
DELIVER:<absolute path>.
codrive_run — the three-rung execution ladder
Section titled “codrive_run — the three-rung execution ladder”Each step is dispatched through three rungs, tried in this order; prefer the highest one that applies.
- C-L2 —
api_action. Calls a registered third-party app’s native API/CLI/D-Bus action fortarget_appbefore touching the GUI at all. Prefer this whenever the app and action you need are registered.actionis a short registered identifier (chromium’sopen_url, networkmanager’sstate, …);paramsis that action’s payload, validated against the action’s own schema at dispatch time. A registry miss or an exec failure falls through to the step’sactionfield — which is whyactionis required even here. - C-L3 —
locate. Resolves amove/clickstep’s coordinates by(role, name)lookup intarget_app’s AT-SPI2 accessibility tree instead of hand-guessed pixels. Far more robust to layout, resolution and theme changes. Ignored fortext/key_name/wait/take_over. A miss falls back to the literalx/y. - C-L1 — literal
x/y. The fallback when the other two are absent or fail.
Other script-level rules:
target_appis a single script-level field, not per-step. One script drives one app; issue a secondcodrive_runcall to drive another.- Every consequential step (
send/submit/delete/purchase/other) pauses for human approval before any rung dispatches it. A refuse-list hit (banking pages, CAPTCHA bypass, …) is rejected outright, before a connection is attempted. - A login/password/payment step (
take_over, or acredentialclass) hands the shared desktop to a human. You never send the credential text yourself through any rung; the script resumes when they hand control back. - Any human input on the shared desktop immediately freezes the agent’s seat. The dropped step is retried once a person hands control back.
watch_mode: truearms idle-based supervision for the rest of the run.- Maximum 50 steps.
working_state_handoff — structured mode
Section titled “working_state_handoff — structured mode”Two modes:
-
Plain note. Omit
status; legacy behaviour, silently truncated at about 1,200 characters. -
Structured (Ralph-loop style). Pass
statusand it is validated together withnext_steps/evidence/blocker:continue— requires non-emptynext_steps, forbidsblocker.complete— requires non-emptyevidence, forbids bothblockerandnext_steps. A self-declared “done” with no evidence, or with a leftover next step, is rejected: “I finished” is not evidence.blocked— requires a non-empty, specificblocker.
The combined payload is capped by
config.toml [memory] working_state_handoff_max_bytes(default 16,384, CJK-safe byte count). Going over rejects the whole call; it is never silently truncated, because truncating could delete exactly the evidence that made the handoff authoritative.
skill_search — picking a source
Section titled “skill_search — picking a source”Leave source alone unless you already know where the skill lives.
all(default) — configured hubs plus this agent’s learned skill bank, de-duplicated by name and labelled with its source. Hub results are ranked by relevance × trust × install count × freshness, with official first-party skills floored into the top results.github— a skill you expect in a public GitHub repo.hub— the curated registries (anthropic-skills,github,clawhub,lobehub,skills-sh); narrow to one withhub.bank— only what this deployment learned on its own.hubis not accepted with this source.
evolution_toggle — fields and permissions
Section titled “evolution_toggle — fields and permissions”field accepts gvu_enabled and skill_budget_unlimited (bool; skill_budget_unlimited is administrator-only), max_silence_hours,
skill_token_budget and max_active_skills (numbers). The old
stagnation_* fields are no longer writable. See
evolution-switches.md.
An AI employee may change its own settings or those of its subordinates for
the original four fields, using the same identity check and organization gate
as agent_update. The open delegation policy permits cross-team changes;
human operators remain unrestricted. Callers rejected by either check are
refused before reading the target configuration. Only an administrator may
change skill_budget_unlimited through this tool, because it removes the cap on injected skill
content. The employee’s Owner can turn it off in the dashboard.
execute_program — where the script runs
Section titled “execute_program — where the script runs”The script runs in the script sandbox: a container from the image in
config.toml [container.sandbox] image (the same image as the
task sandbox, never pulled automatically). The container
runs as the host user (1000:1000 when the host process is root, and always on
WSL2), with all capabilities dropped, no-new-privileges, a read-only root
filesystem, no network, 2 GiB of memory with no swap, 256 processes, one CPU
and a small /tmp tmpfs. Only a private directory holding the script is
mounted, read-only, at /workspace. timeout_seconds (default 30, at most
300) applies under a hard cap of 600 seconds, stdout and stderr come back as
one output (the read is capped at 2 MiB, the reply at 1 MiB), and the container
is force-removed if the call is cancelled. Docker is used on macOS and Linux;
on Windows WSL2 is tried first, then Docker.
When the sandbox cannot run (no Docker, image missing, invalid
[container.sandbox], …) the script is not run: the tool returns
Script sandbox unavailable (<code>): … with the docker pull <image>
command and writes the audit event script_sandbox_unavailable. Older versions
silently ran the script on the host instead. To get that back, set
[container.sandbox] script_when_unavailable = "run_unsandboxed" (a separate
key from the task sandbox’s when_unavailable); every host run is then
audited as script_sandbox_bypassed.
A script cannot call platform tools back: there is no RPC socket inside the container.
computer_* — sessions run by the gateway
Section titled “computer_* — sessions run by the gateway”The nine tools drive one computer-use session per employee: an isolated
container with a virtual display and a kiosk browser. The MCP server only
forwards each call to the gateway over loopback
(POST /api/internal/computer-use, signed per request); the gateway owns the
container and runs every check, so the gateway must be running. Hidden unless
agent.toml [capabilities] computer_use = true.
| Tool | Parameters | Notes |
|---|---|---|
computer_session_start |
task string, optional; width integer 320–1920; height integer 240–1200; workspace string, optional: "new" or a ws-… id from computer_workspace_list |
One session per employee. The result lists the limits, whether high-risk actions can be confirmed in a chat, and the sites computer_navigate can open. With workspace it also returns workspace_id, mount_path (/workspace/files, read-only, root only), the revision, usage and quota |
computer_screenshot |
none | MCP image block (PNG, masked) followed by a text block with actions used and time left. A fully masked picture is reported as such in the text, with the reason (several windows, sensitive or unreadable front window, detection failure) and the next step |
computer_click |
x, y integers (required); button string left/right; double boolean |
double is left button only |
computer_type |
text string (required), 1–2,000 characters |
Audited as a character count only |
computer_login |
credential (required label string) |
Gateway fills and submits a saved login for an allowed employee; only status and a sentence are returned |
computer_key |
key string (required): letters, digits, +, -, _ |
e.g. Return, ctrl+s |
computer_scroll |
x, y integers (required); direction string up/down (default down); amount integer 1–20 (default 3) |
|
computer_navigate |
url string (required) |
https:// only, host exactly on the employee’s [capabilities.computer_use_config] allowed_domains and resolved at session start, port absent or 443, no user name or password, at most 2,000 bytes. With no allowlist the session has no network and the call is refused |
computer_session_stop |
session_id string, optional |
Removes the container |
computer_login is the ninth session tool. An Admin creates the labeled login in System → Security → Website login credentials, with an HTTPS login_url and a non-empty allowed-employee list; passwords go in that form, never chat. Optional allowed_paths defaults to none and only permits exact same-origin second-step paths with a visible password input after the helper submits step one. The gateway first navigates to the saved URL through the existing navigation checks; this navigation and the login each consume one session action. The helper checks the exact origin/path and effective POST, including the selected submitter’s formmethod in native requestSubmit and fallback paths and rechecks after submit handlers. It intercepts every request and redirect hop to refuse other origins, rejects non-POST queries containing a complete credential value and bypasses service workers. The MCP request carries only the label. Session start and status responses expose the caller’s available labels, never usernames. Use the existing takeover flow when the result is needs_takeover; no OTP tool is provided. logged_in only means the password field disappeared. Failed cleanup (failed_uncleared) stops and removes the session and container and returns an error requiring a new session; navigation cannot restore it. Before removing interception, the helper tracks Network.requestWillBeSent, Network.loadingFinished and Network.loadingFailed to confirm requests have ended. It waits for at most three seconds and requires two quiet command barriers with no pending requests. If completion cannot be confirmed, it returns failed_uncleared and calls Browser.close while the Fetch fence is still active; the gateway then removes the session and container. Screenshots are suppressed during the call.
Login is restricted to the saved origin (scheme, host, port), and form submission must use the same origin. HTTPS is required, including for localhost. Same-origin page JavaScript can read filled fields. 2FA requires a person. Rebuild the computer-use image for the new helper before use.
Integer and boolean parameters also accept numeric and "true"/"false"
strings. Click, type, login, key, scroll and navigate each count as one action
against max_actions (default 50). Limits, the approval and confirmation
rules, the network allowlist and its residual risks are in
Browser automation.
computer_workspace_* — durable workspaces
Section titled “computer_workspace_* — durable workspaces”A folder the gateway keeps for one employee across computer-use sessions.
Listed only when [capabilities] computer_use and
[capabilities.computer_use_config] workspace are both true; every call also
needs config.toml [computer_use.workspaces] enabled = true (except that the
owner may still list and read when the feature is switched off). A workspace
of another employee, a malformed id and a missing one all get the same
“not found” answer.
| Tool | Parameters | Notes |
|---|---|---|
computer_workspace_list |
none | The caller’s workspaces: state, data_revision, bytes_used, files_used, quota, expires_at, leased, and for readable ones files (path, size, sha256, hash_unknown), files_truncated (more than 200 files) and unprocessable_items (a count; names are never shown) |
computer_workspace_read |
workspace_id string (required); path string (required) |
One UTF-8 text file of at most 48 KiB. The content comes back inside a <computer_workspace_file> data fence with injection-scan flags |
computer_workspace_write |
workspace_id string (required); path string (required); content string (required); expected_revision integer, optional |
Only into the workspace the caller’s live session attached. At most 48 KiB of UTF-8, and the whole request must fit 64 KiB after JSON encoding, so content full of quotes, backslashes, newlines or control characters fits less. Atomic; refused over quota, on a revision mismatch, and while the session is stopped or paused or the threat level is not GREEN. Content is never restored from redaction tokens |
Paths are relative, at most 4 levels, letters, digits, inner spaces and
-_.()() only. The audit rows carry a path hash and a character count, never
the path or the content. Settings, the lease, operator commands and known
limitations: Computer-use workspaces.
os_* — device operations on DuDuClaw OS
Section titled “os_* — device operations on DuDuClaw OS”The os_* tools that need root (power, update status, the update install that sysd re-verifies, boot
assessment, rollback, factory reset) keep every check they had in the MCP
server (Admin scope, [permissions], the confirmation, the factory-reset
approval) and then send the request to the gateway over loopback
(POST /api/internal/sysd, signed per request like the computer_* route).
The gateway forwards it to duduclaw-sysd with its own connection, so the
tools work when sysd answers only the gateway process. The route accepts only
those verbs; SSH, network, hostname, timezone and local-model operations are
refused there. This needs platform v1.73.4 or later on the device, so it applies
from DuDuClaw OS v0.4.0, which embeds v1.73.4 (v0.3.0 embeds v1.73.1, where the
tools still call sysd directly). When the gateway is not running, or the MCP server was not
started by the gateway (no employee identity), the tool fails with a reason;
it never talks to sysd directly. Off DuDuClaw OS nothing changes.
belief_stats / belief_settle — verified and self-reported settlements
Section titled “belief_stats / belief_settle — verified and self-reported settlements”Only a settlement cross-checked against a platform price counts toward
calibration. Nothing in production supplies that cross-check today:
belief_settle records every settlement as the employee’s own report
(settle_source = "agent_unverified"), so calibration reads “no verified
settlements” on every current deployment.
belief_settle returns the settled row plus counts_toward_calibration
(boolean) and, when it is false, a note saying the settlement was recorded
but does not count.
belief_stats returns (the same object as the dashboard’s belief.summary
stats, plus a note):
| Field | Meaning |
|---|---|
n_submitted |
every belief submitted, settled or not |
n_settled_all |
every settled belief (verified.n + self_reported.n) |
calibration_status |
no_verified_settlements, insufficient_samples (1–29 verified) or calibrated (30 or more) |
verified |
n, hits, and hit_rate, hit_rate_wilson_low, mean_brier, overconfidence (all null unless calibrated) |
self_reported |
n and a descriptive hit_rate (null when n is 0); not calibration |
per_subject[] |
subject, verified (n, hits, mean_brier), self_reported (n) |
The flat fields of earlier versions (n_total, n_settled,
insufficient_samples, top-level hit_rate …) are gone. See
Belief loop.
create_agent / agent_remove — removed names are reserved
Section titled “create_agent / agent_remove — removed names are reserved”agent_remove moves the employee to ~/.duduclaw/agents/_trash/ and answers
that the employee was removed, that the administrator can restore it, and that
the name is reserved. It returns no path. create_agent then refuses that
name for every MCP caller while a trash entry exists, while org.toml still
records the id without a directory, or while the trash cannot be listed; a
different name works. Operators can reuse the name from the dashboard or a
terminal. Over HTTP with a non-internal key, both tools act as that key’s own
client id. Details:
Delegation isolation.
create_agent — persona and seats (v1.82.0)
Section titled “create_agent — persona and seats (v1.82.0)”The persona goes in soul_md (soul is the older alias; an empty value counts
as not sent, and two non-empty values with different text are an error). It
passes the same SOUL.md scan as template creation, and a rejected persona or a
failed SOUL.md write refuses the whole call with nothing left on disk; the
refusal names the reason (HTML comment, invisible characters, hidden content,
prompt-injection phrasing) without quoting the text. Arguments the tool does
not read are not rejected; the reply lists them under “Ignored arguments (no
effect)” (at most 20 names, each cut to 64 characters, then “… and N more”).
The licence seat check excludes deleted employees and verified Personal avatars of active member Owners
(one per member; archived employees still count); when it refuses, the reply gives only the
limit and the number of seats in use — it does not list who holds them (an
administrator sees that list in the dashboard). The check and the creation are
one step under a lock shared with the dashboard and the pack importer, so
concurrent creates cannot together exceed the limit. An employee cannot change
its own [agent] status with its file tools, and agent_update refuses a
status change for an archived or deleted employee; archive, restore and
delete are dashboard actions. To change a persona later, see
Change an employee’s persona after creation.
responsibility_get / responsibility_followup / responsibility_ask — responsibility tools
Section titled “responsibility_get / responsibility_followup / responsibility_ask — responsibility tools”The three tools for continuous responsibilities.
They are listed only while config.toml [responsibilities] enabled is true and
the caller is an employee identity (external clients never see them), and every
call is refused while the feature is off. Like the tasks_* tools they sit
behind the Admin scope, which the gateway’s own key carries.
| Tool | Who may call | Rules |
|---|---|---|
responsibility_get |
Any employee; an operator key may read any responsibility | No responsibility_id: lists the caller’s own. With an id: the summary (schedule, subscriptions, window spend and runs, the open run, cost_not_counted). Another employee’s responsibility reads as not found unless the delegation policy relates the caller to its owner |
responsibility_followup |
The owning employee, only while its own run of that responsibility is open and the responsibility is active | One one-shot wake-up at due_at (RFC 3339), at least min_wake_interval_secs from now and no later than stop_at. It counts toward the window’s run limit and is refused when that limit is used up; it is never silently moved to another time |
responsibility_ask |
Same as responsibility_followup |
One question (at most 1,000 characters) with up to 5 options (each at most 1,000 characters); ttl_secs defaults to one day and is held between 60 seconds and stop_at. The question is scanned for prompt injection and shown to the operator as quoted text cut to 200 characters, with a warning when the scan matched. Any push goes through the responsibility’s notification gates and per-window cap. The answer wakes the next run as data and grants nothing. Stopping the run withdraws the question |
A responsibility holds at most one live wake-up armed by its employee, so a
pending responsibility_followup and a pending responsibility_ask exclude
each other. Operator keys cannot use the two wake-up tools, since that would be
acting as the employee. Closed error codes: not_found, not_active,
no_open_occurrence, invalid_due_at, period_occurrence_limit,
agent_followup_limit, epoch_changed, invalid_question.
There is no tool for creating, changing, resuming or re-enabling a responsibility, and none for steering a task.
memory_store / user_profile_record / decision_resolve / wiki_write — sources and refusals
Section titled “memory_store / user_profile_record / decision_resolve / wiki_write — sources and refusals”Every memory write records where it came from, and wiki_write stamps the page it writes. The gateway supplies the source through the environment of the employee process (turn id, conversation id, and the number and time of the user message of that turn, or the run key of a scheduled or dispatched run); the model cannot name or change it. A call from an external MCP client is recorded as one call of that client.
A memory write is refused with a tool error in two cases:
- The source was forgotten by the operator (
duduclaw memory forget-source): “Not stored: the conversation this write comes from was forgotten by the operator (forget by source), so nothing derived from it may be stored again”.decision_resolveanswers “Not resolved: the conversation this choice comes from was forgotten by the operator”. The refusal is audited asmemory_write_fenced. - The employee process carries a conversation or run identity from the gateway that is malformed: “Not stored: this employee process carries a malformed conversation or run identity from the gateway, so the write could not be tied to its source. Restart the gateway; if it persists, report it.” The write is not recorded as an anonymous external call.
A write that is derived from other memories and names a parent memory that does not exist is also refused. The memory, key fact and its source rows are written in one transaction, so a write either has its source recorded or does not happen.
wiki_write (both scopes) adds a host_sources key to the page’s frontmatter with the sources of that write, keeping the newest 20 across rewrites. A host_sources value the employee writes itself is dropped. The key is only read by forget by source, which lists such pages for human review and never deletes them. No MCP tool performs a forget: it is an operator command, refused in an employee’s session.
Reads on a chat turn (v1.83.0). When the employee process serves a channel conversation turn, memory_search, memory_read, memory_fetch_batch, memory_search_by_layer, memory_get_history, memory_get_at and memory_improve return only memories the employee explicitly stored, memories an operator imported or migrated from a legacy system, and memories the system organised from this same conversation (by their recorded source). Everything the system organised automatically from other conversations (key facts, user-profile traits and their summary, conversation summaries, consolidated memories, recorded decisions) is left out, and so is an automatically organised memory with no recorded source; memory_read of its id answers exactly like an id that does not exist. user_profile_get and user_code_profile follow the same rule: when only other conversations’ data remains, the answer is the one for a user with no profile. decision_list and decision_resolve likewise see only the open decisions recorded in this conversation, and another conversation’s decision id gets the not-found answer. memory_successful_conversations returns only rows visible under the same rule (applied before limit; nothing when the conversation is unknown), group_history_read reads only the group or thread this conversation belongs to (a one-to-one chat reads none; any other target gets the usual not-available answer), and memory_invalidate_by_origin, memory_episodic_pressure and memory_consolidation_status, which cover every conversation of the employee, are refused with a fixed error. Scheduled and dispatched runs and external MCP clients behave as before.
Chat turns in v1.84.0. memory_search, memory_search_by_layer, memory_get_at and memory_improve now apply the conversation rule inside the search itself (full-text, graph ranking and vector search count only rows this conversation may see), so other conversations’ memories no longer crowd out this conversation’s own results before limit; memory_get_at returns this conversation’s newest value at that time even when another conversation recorded a newer one. memory_get_history keeps the v1.83.0 filter after the query. memory_store refusals no longer reveal other conversations: the duplicate check compares only memories this conversation can see and answers “Not stored: this is already remembered (a near-identical memory exists).”, and the trust guard answers “Not stored: a more trusted value already exists, so it was not changed.”; neither carries an id (the id goes to the server log). For memories the employee stores explicitly, supersession and the trust guard still look across the employee, so another conversation’s row can still cause that second refusal. User profiles are keyed by platform and user id (user:<channel>:<id>, WebChat unchanged as user:webchat:<owner>), with the platform always taken from the turn, never from the arguments; user_profile_record refuses when the turn’s conversation cannot be identified. A profile value recorded in one conversation, including one the employee writes itself with user_profile_record on a chat turn, no longer replaces another conversation’s value; a value written by scheduled or dispatched work is keyed user:<id> and judged across the employee. By contrast, an entry the employee stores with memory_store replaces older values of the same fact in every conversation. On the first start after the upgrade, existing profile rows whose sources all come from conversations on one platform are rewritten once to the new key; rows with mixed platforms, non-conversation sources or no sources stay as user:<id> and are read only as a fallback, when no newer row is visible, on LINE and Discord, and only for well-formed ids (LINE: U plus 32 hexadecimal characters; Discord: a 17- to 20-digit number). Scheduled and dispatched runs and external MCP clients keep addressing profiles as given (pass telegram:alice to reach a channel profile). Wiki tools on chat turns: see Wiki knowledge layer.
knowledge_* — document knowledge base
Section titled “knowledge_* — document knowledge base”knowledge_search, knowledge_get_passage and knowledge_list_collections read the
document knowledge base. Scope knowledge:read, which
cannot be granted to external MCP keys. Each call goes to the gateway over the signed
loopback route POST /api/internal/knowledge; the gateway works out which collections the
call may read (the employee’s own and department grants, narrowed by agent.toml [knowledge] collections, intersected with the person the turn is for and the sensitivity
rules) and writes an access-log row. When the gateway is not running the tools say so; they
never read the database themselves.
Results are labelled as document content: every passage (and every collection name and description) sits in a marked block whose lines start with │ , and titles and locations are flattened to one line with [ ] replaced, so a document cannot forge a result header or close the block. knowledge_search numbers its passages
[n] title · location (collection) chunk_id=… so a reply can cite them; a passage flagged
at index time as instruction-like text carries a warning line. collections only narrows.
knowledge_get_passage re-checks permissions on every call and answers a missing chunk and
a forbidden one the same way (permission denied). Inside a channel or WebChat reply the
numbers continue the turn’s citation numbering (passages already put into the prompt keep
theirs), so [n] in the answer points at the same passage the reader can open.
knowledge_add_source (scope knowledge:write, also not grantable to external keys)
proposes a document for a collection on the employee’s own side: collection plus exactly
one of path (a file in the employee’s own attachments/), url or text, and an
optional title. It refuses in a public visitor’s, an unbound sender’s or an unregistered
turn, and when too many of the employee’s cards are waiting. It never adds anything itself: it files a
knowledge_add_source card that only an Admin or the collection’s editor can decide, in the
dashboard, and answers with the card id. There is no exemption, for any caller.
knowledge_search and knowledge_list_collections start their answer with the search mode
(hybrid = keywords plus meaning-based vectors, or keywords only) and, when vectors were not
used, the reason (no model installed, cloud provider not acknowledged, redaction off, a
cloud error, …); knowledge_list_collections also reports each collection’s vector
coverage. Vectors only ever rank passages inside the collections the call may read.
odoo_schema_overview — saved Odoo structure
Section titled “odoo_schema_overview — saved Odoo structure”The employee model/action and sensitive-model restrictions below describe Engine mode. Follow uses the selected personal Odoo account while retaining feature switches and common refusals.
odoo_schema_overviewrequiresodoo:read. With no parameters it lists scanned model names and short labels. Optionalmodelreturns fields for one model; optionalquerysearches model / field names and labels. The response is narrowed to models the employee’s Odoo model / action settings, feature switches and block list (with the employee’s effective unblock list) allow; a blocked model’s name, fields and relations are never returned. Snapshot metadata does not grant access to blocked business records.- Odoo schema scans are available only to dashboard administrators through Re-scan Odoo structure (
odoo.schema_scan), with a persisted 60-second limit per saved profile, including failures. The overview marks metadata as untrusted, screens and caps labels, and drops invalid technical names. odoo_schema_fields {model}still reads live metadata for one permitted model; a blocked model is refused before contacting Odoo, and relations naming models hidden from the employee are omitted. Built-in and generic reads with explicit field lists drop missing fields using livefields_get; a metadata failure or an empty surviving projection refuses the read.- The long-lived gateway holding the instance lock checks every effective identity every 30 minutes, starting at gateway startup. It scans missing or truncated snapshots, changed server versions, changed installed-module names/versions, or missing access metadata. Completed scans and definitive failures consume the one-hour automatic slot; cancellation does not. MCP turns never launch scans. While preparation is pending, use
odoo_schema_fieldsfor a specific model. Same-version field-only changes still require a manual scan; reconnect active sessions withodoo_connectto refresh live field caches.
Each scan retains at most 400 models and 500 fields per model. Metadata and field discovery have a five-minute budget, with four concurrent fields_get calls; account ACL probing has a separate 30-second overall limit. Built-in models come first, followed by models from installed business modules (CRM, sales, purchase, stock, accounting, project, HR, manufacturing, helpdesk and website), then remaining models alphabetically. A timed-out scan is marked truncated and reuses completed fields next cycle when identity, server version and modules are unchanged. Module/model catalogs cap at 5,000 entries. A partial diff never proves removal.
Odoo personal identities use the gateway’s verified URL, database and SHA-256 server fingerprint for the whole connection. Local endpoint changes cannot redirect an already issued personal credential; the fingerprint also separates connection and credential caches. Agent and company credentials retain their existing endpoint selection.
Person-key Odoo listing and dispatch both load the local Odoo access policy. Invalid policy hides and refuses these tools. Personal writes require follow_odoo_account with a valid administrator acknowledgement; gateway-hosted person tools retain scope-only listing.
Generic mutations of ir.model, any ir.model.* model, ir.rule, and any mail.* model are refused in every mode. Engine mode preserves v1.85 approval behavior for odoo_execute and button actions, including odoo_sale_confirm: employee approval lists, action rules and effect classes still apply, with no additional forced approval. Follow-Odoo-account mode requires human approval for every non-read odoo_execute call and every action_*, button_* or toggle_* action, including odoo_sale_confirm. Follower messages (odoo_message_send) always require approval in every mode. These forced approvals cannot be waived by an allow rule; they bind the exact tool and arguments and are single-use.
Follow-mode and person-key audits retain result metadata only: model, method, record/ID counts and byte length; no result hashes. This also applies in every mode to ir.config_parameter, res.users.apikeys and its dot descendants, ir.mail_server, fetchmail.server, payment.provider, res.users, ir.attachment, and models with an exact dot- or underscore-delimited segment of token, tokens, secret, secrets, key, keys, password, passwords, credential, credentials, apikey or apikeys. Result bodies and upstream error text are omitted from these audit rows.
odoo_attachment_add — employee file attachment (v1.86.0)
Section titled “odoo_attachment_add — employee file attachment (v1.86.0)”odoo_attachment_add {model, res_id, file, name?} creates a private attachment on an existing, readable Odoo record and returns its ID and the account used. It requires odoo:write, has effect modify, reads private data and is classified as outbound data transfer. The caller must have a verified employee identity; person API keys cannot use this tool.
fileis relative to<home>/agents/<verified employee>/attachments/. Shared attachments, other employee folders, absolute paths, parent traversal, symlinks and Windows reparse points are refused. The tool reads the validated open file with a size bound; inline content and base64 arguments are refused.[odoo_access] attachment_max_mbdefaults to 10 MiB and must be an integer from 1 through 25. Invalid configuration refuses the operation. Optionalnamedefaults to the file name and must contain 1–255 plain-text characters without control characters or path separators. Its extension must match the validated format (for example, a PDF may only be named*.pdf; JPEG allows.jpgor.jpeg).- Allowed extensions and content must agree: PDF, PNG, JPG/JPEG, WebP, UTF-8 TXT/CSV without NUL, and XLSX/DOCX/PPTX. HTML, HTM, SVG, XML, executables, scripts and all other extensions are refused.
- Images must fully decode in the format implied by the source extension, with width and height each limited to 12,000 pixels and a decoder allocation budget of 256 MiB. Decode or encode errors refuse the upload. Fresh encoders write only decoded pixels: PNG stays PNG, JPEG is re-encoded at quality 90, and WebP is converted to PNG with the Odoo display-name extension changed to
.pngand MIME type toimage/png. Original metadata and trailing payloads are discarded; for example, an otherwise decodable PNG with trailing bytes uploads only the re-encoded PNG. Animated inputs produce a single decoded image. Both the original file and encoded output must fitattachment_max_mb. - PDFs must start with
%PDF-1.or%PDF-2.and contain%%EOFwithin the last 1 KiB with only PDF whitespace afterward. A bounded scan checks the whole original byte buffer, including incremental updates and unindexed objects, instead of relying on a parser’s reference table. PDF names are decoded for#xxescapes (malformed escapes are refused) and matched case-insensitively againstJavaScript,JS,Launch,EmbeddedFile,EmbeddedFiles,OpenAction,AA,RichMedia,XFA,SubmitForm,ImportData,GoToR,GoToE,Sound,MovieandEncrypt. This conservative scan also checks name-like bytes in strings, comments and raw stream data. - PDF streams may be unfiltered or use only
FlateDecode(Fl), including arrays/chains of Flate filters. Flate output is name-scanned at every stage and bounded by both a per-stream cap ofmin(10 × compressed stream length, 50 MiB)and a cumulative per-file cap ofmin(10 × original file size, 50 MiB); reaching a cap or an inflate error refuses the upload. Stream bounds use a consistent/Lengthor search forendstream; duplicate/Lengthor/Filterkeys are refused. Delimitedstream+ EOL syntax is refused in every raw stream payload (including compressed bytes before inflation) and every inflated Flate stage, without recursive decoding. Sole image filtersDCTDecode,JPXDecode,CCITTFaxDecodeandJBIG2Decodeare allowed without decoding, but their raw bytes undergo the same nested-stream check; even genuine images containing that syntax are refused. All other filters and mixed filter chains are refused. Limits are 100,000 name tokens across original/inflated bytes, 10,000 streams, and 32 structural nesting levels or Flate stages. Reading and scanning run on a blocking worker. This is a conservative content scan, not full PDF conformance validation or an antivirus scan; valid PDFs outside these limits can be refused. PDFs that pass upload exactly their original bytes. - Office files require ZIP structure,
[Content_Types].xmland the corresponding document part; VBA, ActiveX and external relationships in any.relspart are refused. Relationship inspection is bounded and refuses unsupported encodings, entities and DTDs. These format checks and PDF active-content refusals are not an antivirus scan. - Engine mode requires the target in
allowed_modelsand an exactattach:<model>token inallowed_actions. Follow-account mode uses the selected personal Odoo account. Both modes retain fixed refusals andalways_refuserules such asattach:*; read-only mode refuses attachment creation. - The connector writes only
name, file-deriveddatas,res_model,res_id, validatedmimetypeandpublic=false. It never setsaccess_token; generic tools cannot create, write or unlinkir.attachment.
odoo_create / odoo_write — generic create and update (v1.81.0)
Section titled “odoo_create / odoo_write — generic create and update (v1.81.0)”odoo_create {model, values}creates one record and returns its id;odoo_write {model, ids, values}updates 1–100 records (duplicate ids are dropped) and returnsok. Both requireodoo:writeand are effect classmodify, soaction_rules, approval lists and the explore lane apply as toodoo_crm_create_lead.- Engine mode: explicit grant plus a separate opt-in. The tools are listed and callable only when the employee has its own Odoo settings (
agent.toml [odoo]),allowed_modelsnames the model exactly,allowed_actionsholdscreate/write(orcreate:<model>/write:<model>), and the per-table opt-in tokengeneric_create:<model>/generic_write:<model>is inallowed_actions. The opt-in is off by default and has no all-tables or*form; existing settings are unchanged — a configuration that already granted Create / Update does not gain the generic tools until the opt-in is switched on. No own settings, an empty list or*grants nothing. This is stricter than the legacy dedicated Odoo tools, where empty lists are unrestricted; those tools are unchanged and ignore the opt-in tokens. Grant in the dashboard: Employees → Edit → Integrations → Odoo, tick the table, give it Create or Update in a rule for that table and switch on Allow general create / update (允許通用新增/修改) next to them; this lets the AI set any writable field of that table. The tool is listed exactly when some granted table also clears the never-writable list, the feature switch and the block list. - Never generically writable in Engine mode, whatever the grants, opt-ins or unblock settings (“This capability is not available”):
res.users,res.groups,res.company,res.users.apikeys(and otherres.users.*/res.groups.*tables), everyir.*table (includingir.actions.*andir.ui.*),mail.mail,mail.followers,mail.message,mail.template,mail.compose.message,discuss.channel,mail.channel(and their.*sub-tables). The same list applies to tables reached through x2many commands. - In Engine mode, checked in order before any record is changed: never-writable list, grant and opt-in, feature switch, block list, then
valueslocally (an object, at most 64 KiB; x2many command lists may use only 0 create, 1 update and 4 link — 2 delete, 3 unlink, 5 clear and 6 set are refused; nesting at most 3 levels;activemay only be set totrue, archiving is refused), then, after connecting, the account ACL from the schema snapshot (create/writemust be known to be allowed; unknown refuses) and every key ofvaluesagainst the snapshot: a stored, non-readonly field that is not a related /_inheritsfield (which would write through to another record). One2many / many2many values must be a non-empty command list:false,null,[]and plain id lists (which clear or replace the set) are refused. Every table a command reaches must pass the same never-writable list, feature switch and block list; commands 0 and 1 (and 4 on a one2many, which moves the record from its current parent) also need that table’s own grant, opt-in and account right, and their nested values are checked against that table’s snapshot. A link (4 on a many2many) needs no grant of its own. Without a snapshot for this connection the call asks to wait for the background schema preparation; a snapshot scanned before v1.81.0 does not record related fields, so such fields are refused until the schema is re-scanned. Deleting and archiving records are not offered. - Audit lines name the model, field names and record count, never the values; a failed call records only the error class and length, never Odoo’s error text.
The overview without filters returns model names and short labels only, capped at 16 KiB. Fields are included only for a specific model or a query matching at most five authorized models, capped at 32 KiB. Responses include total matching model count and truncation. The shared-wiki summary is capped at 16 KiB; odoo/schema-fields remains a search-only deep reference page capped at 32 KiB and is not automatically injected into context.
Rescan covers the saved global connection and every employee’s effective [odoo] settings, including company scope. Authenticated identities are deduplicated, at most two connections scan concurrently, and results show Ready or Failed for each employee. Metadata stays isolated by connection identity; one Odoo user never reuses another user’s snapshot. The dashboard actions share their persisted 60-second manual cooldown. After successful preparation, obsolete profile data is removed only if all effective identities are known. Cleanup holds a catalog lock while deleting idle lock files; an in-progress scan and its lock are preserved.
Deprecated aliases are still listed
Section titled “Deprecated aliases are still listed”A deprecated tool name keeps appearing in tools/list with a
[deprecated → …] prefix on its description, because hiding it would make it
uncallable — the opposite of what a deprecation window is for. The full old →
new table is deprecations.md. No MCP tool is deprecated at the moment: the aliases of the v1.66.0 window were removed in v1.69.0.
Related
Section titled “Related”- custom-mcp-tool.md — adding a tool
- mcp-bridge.md — mounting external MCP servers
- remote-mcp.md — the HTTP/OAuth transport
- ../spec/task-packet.md — the TaskPacket schema
- ../spec/reversible-context-ccr.md — the
duduclaw_ccr_*tools, which are injected by the direct-API tool loop rather than dispatched by the MCP server
Declare a credential’s service
Section titled “Declare a credential’s service”credential_declare accepts credential_id and service only. Employee notes are rejected; the service must match ^[a-z0-9][a-z0-9._-]{0,63}$ and pass credential detection. Only an authenticated employee holding that credential may declare it, through the signed gateway loopback route. An employee cannot override an Admin-set service. This tool annotates existing audit metadata; it does not retrieve a secret, grant another holder access or substitute a value into a tool call. Use Security → Credential audit as an Admin to review and correct records. See Credential audit.
Third-party MCP environment credentials
Section titled “Third-party MCP environment credentials”Third-party MCP keys leave the employee’s config files. .mcp.json stores secret://mcp/<server>/<ENV_NAME> references; values are encrypted in <home>/secrets/mcp/<agent_id>.enc with the existing .keyfile. All third-party env entries use the store except PATH, HOME, NODE_ENV, LOG_LEVEL and existing secret:// references. DuDuClaw’s own server entry and its DUDUCLAW_* variables are unchanged.
A built-in slot must use exactly duduclaw, duduclaw-pro or the current instance key; duduclaw-evil is a third-party server. Rewriting replaces the entire built-in definition with the host’s current canonical entry, including after MCP key rotation or an executable change. A forged built-in command cannot survive into that effective config. Raw proxy invocations remain forbidden under every name, and third-party entries cannot carry proxy-private env. Claude’s existing no-flags behavior remains when no proxy purpose is active or the file contains only built-in slots; the ordinary built-in preparation path still owns their repair. Copied fork configs always regenerate built-in slots, including when gates are off, because a source project may not have passed employee preparation. Secret reads require a valid DUDUCLAW_AGENT_TOKEN HMAC for the store owner, even with lenient delegation settings; a default agent cannot authorize a read.
The proxy resolves references for its own employee only, immediately before starting the upstream server. It proves that employee with the DUDUCLAW_AGENT_TOKEN the host puts into the proxy’s entry of the per-spawn MCP config (Claude, an owner-only temp file removed when the CLI exits) or into the spawn environment (Codex, Grok, openai-compat); the employee’s .mcp.json never holds it for a proxy, and the upstream server never receives it. Missing, invalid or undecryptable references prevent that server from starting; the error names the server and variable, never the value. A config requiring secret resolution cannot fall back to direct Claude/Grok loading if proxy rewriting fails. Exports retain environment names with empty placeholders, so the importer must enter values again.
At gateway boot, legacy literal env values are migrated after an encrypted backup is saved to <home>/backups/mcp-migrate/<agent>-<timestamp>.enc. The encrypted store is written and read back before the config is replaced atomically. Every stage waits for a parent-directory fsync barrier in this order: key, encrypted backup, store, config. A failed stage aborts that employee; failure after config replacement restores the original bytes. If restoration also fails, the error is reported and the durable encrypted backup is retained for recovery. Migration continues with other employees; at most three migration backups are retained per employee after cleanup; an I/O failure is logged and cleanup is retried on the next sweep. Deleting a server or employee removes its store entries. Restoring a deleted employee requires re-entering its keys.
The Read guard denies <home>/secrets. This is not isolation from Bash: an employee running under the same OS user can still read gateway files, including .keyfile; real isolation requires no Bash or the task sandbox. Only env is covered: keys in args or url, and tool results that echo a key, are not covered. Existing plaintext exports and backups are not retroactively cleaned.
Google Chat read tools
Section titled “Google Chat read tools”google_chat_spaces lists spaces the connected user belongs to: resource name, display name, type and last active time when Google supplies it. limit defaults to 20 (1–50); filter accepts exactly SPACE, GROUP_CHAT or DIRECT_MESSAGE.
google_chat_messages reads recent messages from a strict spaces/... resource name, newest first. limit defaults to 30 (1–100); optional since must be RFC3339 and thread must be a thread resource within that space. Each message includes its sender, creation time, text (at most 2,000 characters), thread and attachment names. Attachments are never downloaded. Sender names use Google’s returned display name or the users/... resource; no People API or extra membership permission is used. The complete returned content is capped at 30,000 characters.
- An administrator enables Google Chat read in the dashboard under Manage → Integrations → Google (
[google] chat_read = true, default false). - The user reconnects their own Google account in My connections and selects both Chat read permissions. The optional scopes are
https://www.googleapis.com/auth/chat.spaces.readonlyandhttps://www.googleapis.com/auth/chat.messages.readonly; existing users are not asked for them while the switch is off. - In the OAuth client’s Google Cloud project, enable Google Chat API and configure a Chat app, even for user authentication. A Workspace administrator may also need to allow the OAuth app.
These tools use the same employee/account ownership, scope, approval and private-data egress gates as Gmail reads. They read the account selected by that existing identity policy; they do not accept a user/account argument. Apps Script does not support these Chat reads. This is separate from the Chat bot channel’s DMs and mentions. Disabling the switch blocks new Chat reads, including existing tokens; it does not revoke Google’s previously granted permissions.
Returned content is untrusted reference data, wrapped and scanned with the group-history policy. Any injection hit refuses the whole response with not available. Audit entries retain space identifiers and counts, never message text. Fixture and local tests do not establish real-account access; verify consent and reading with the customer’s account before acceptance.
mail_send — Requester confirmation for mail
Section titled “mail_send — Requester confirmation for mail”mail_send uses the existing recipient and outgoing-data guards. An eligible verified requester with current Operator access may confirm the full recipients, subject and body summary in the original one-to-one conversation or authenticated dashboard WebChat; otherwise a dashboard Admin decides. The single-use approval binds final arguments and expires as deny. [security] mail_requester_approval = false restores Admin-only decisions; the default is true, while unreadable or malformed configuration fails closed. See requester rules and limits. Only an adapter-attested one-to-one conversation or authenticated dashboard WebChat is eligible. Group chats and unknown chat types still need a dashboard Admin; public WebChat widget visitors are never eligible. Channel notices for ineligible requests contain no recipients, subject or body; full content stays in the dashboard.
This confirmation clears the outgoing-data gate only. The native mail tool still creates its existing outbox draft confirmation; clearing this gate is not a receipt that the email was sent.
Notification destination for MCP schedules and reminders
Section titled “Notification destination for MCP schedules and reminders”For tasks_create with schedule, notify_channel is the channel type and notify_chat_id is the chat, channel or room ID. For create_reminder, use channel (for example, telegram or line) and chat_id. To use the verified source conversation, omit both fields of the pair; this includes authenticated WebChat turns when the executor is the same employee. Never supply webchat as a channel: only the gateway may select that conversation. One-shot runs require a destination, either this verified source or an explicit pair.
An explicit Google Chat own-app section takes precedence over the shared app. If that section is incomplete or unreadable, preflight refuses it; a stray bot_token is not a configured Chat app and does not trigger fallback to shared credentials.
When an employee creates a recurring schedule (tasks_create with a cron schedule), a one-time schedule, or a reminder (create_reminder) from a supported channel conversation, omitting both destination fields returns the result to the conversation this was created from. This applies only when the scheduled executor is that same employee and the person in the conversation is a linked account that the gateway verifies for that live turn. The gateway resolves and records the conversation from the live turn, and the MCP tools give the employee no parameter to choose it, so an employee without Bash cannot direct a schedule’s default notifications to another conversation. An employee granted Bash runs as the same OS user as the gateway and can read and write the gateway’s local databases; for that employee this is a speed bump, not containment. Mitigations today are not granting Bash to employees that should not have it, the task sandbox, or native Linux employee isolation (not available yet); see What these guards do not cover. Supported destinations are Google Chat, Telegram, LINE, Discord, Slack, WhatsApp, Feishu, Microsoft Teams, WeCom and DingTalk. WebChat continues to receive results in its conversation history; reopen the conversation to read them.
An explicit pair (notify_channel / notify_chat_id for schedules, channel / chat_id for reminders) takes priority. Without a verified conversation destination, recurring jobs keep results in their run records; reminders and one-time schedules still require a destination. Goals created with tasks_create kind=goal also return progress and requests for human input to their source conversation under the same conditions; a goal created without one uses the employee’s notification settings.
Delivery to the creating conversation is re-checked at send time, before every notification (and again when a notification held back by quiet hours or a human takeover is finally delivered): the creator’s account must still be active and allowed to use the employee, their channel identity must still be linked, and the conversation must not have been cleared or recreated. If any check fails or cannot be read, the notification is not sent and is never redirected to another conversation; a goal keeps only its Activity Feed entry. Public visitor conversations (website widget, Live Chat) never receive these notifications. Schedules and reminders created in WebChat before the upgrade continue returning to their original conversation after the upgrade. The gateway confirms each one once, at the first start after the upgrade that completes this check (a start that cannot complete it is not recorded as done, and the next start retries)—that the creator’s account is still active and allowed to use the AI employee, and that the conversation is still owned by the creator and has not been cleared—and then re-checks it before every send like a new one; anything it cannot confirm is refused with origin_unproven and is never redirected elsewhere. A held-back goal request whose goal was deleted is dropped.
Google Chat notifications can use the employee’s own Chat app, the app recorded for that space, or the shared app, following the existing app selection order. The selected app must still have access to the space. Recipient protection remains active: a stored, verified source conversation is allowed as a source; choosing another destination does not gain that exemption. An unlinked channel sender does not gain a verified-source exemption merely by creating a schedule.
Cron lists and details report execution and notification separately: last_status describes the work; last_delivery_status is delivered, delivery_failed, delivery_refused (the send-time check above refused it), or empty when no delivery was attempted. last_delivery_reason contains the fixed code notification_delivery_failed on delivery failure, or on refusal one of origin_unproven, origin_proof_invalid, origin_public_visitor, origin_state_unreadable, origin_account_inactive, origin_access_revoked, origin_identity_unbound or origin_conversation_changed. These fields describe the latest run. Reminder lists retain delivered / failed status and include error when available (a refused reminder is failed with the same code). A failed send is never recorded as a delivered notification.
Native Google creation and editing tools
Section titled “Native Google creation and editing tools”These tools require google:write and the matching existing Google service scope. Read-only employees cannot list or call them. Both personal OAuth and domain-wide delegation use these names; no new OAuth scopes are requested.
| Tool | Parameters | Result |
|---|---|---|
docs_create |
Required title, optional body; creates in My Drive root |
documentId, url |
docs_replace_text |
document_id, nonempty find, replace, optional boolean match_case (default true) |
documentId, url, occurrencesChanged |
sheets_create |
title, optional sheet_names array (max 100) |
spreadsheetId, url |
sheets_update |
spreadsheet_id, A1 range, 2-D values (max 10,000 cells); value_input_option: RAW (default) or USER_ENTERED |
spreadsheetId, url, updatedRange, updatedCells when reported |
calendar_update_event |
event_id, calendar_id (default primary), at least one of summary, description, location, RFC3339 start / end, attendees (email array) |
id, htmlLink, sendUpdates |
These five write tools and Gmail reply fields (thread_id, in_reply_to, references) require native REST. Apps Script Bridge lists only supported tools and omits reply fields; backend changes trigger notifications/tools/list_changed. Gmail to and cc accept comma-separated email addresses (up to 1,000 characters per field); each mailbox is validated and control characters are refused.
New write results expose these fields in structuredContent and screened JSON text. Text inputs have a 20,000-character limit; titles 1,000; sheet names 100; A1 ranges 1,000. Over-limit inputs are refused before action rules, approval or digest binding; inputs are never truncated. Every calendar_update_event call uses the same Send effect / approval path as calendar_create_event, because attendee calendars can change regardless of notifications. The notification parameter remains sendUpdates=none by default; notify_attendees=true changes it to all. Other new writes use the existing Modify effect. An empty attendee array clears the attendee list.
gmail_create_draft also accepts thread_id plus in_reply_to (the original RFC Message-ID, required for replies) and optional references (defaults to in_reply_to). Preserve the original subject for threading. This supplies the Gmail threadId and reply headers without adding a read scope; the operation remains draft-only and never sends. Its structured result contains draft_id, message_id and the Gmail drafts URL. New operations require native REST access; Apps Script Bridge does not support them. For setup and self-hosted MCP name mappings, see Google Workspace.
Confirmed Gmail send and Calendar delete
Section titled “Confirmed Gmail send and Calendar delete”gmail_send_draft {"draft_id":"r…"} and calendar_delete_event {"event_id":"…","calendar_id":"primary","notify_attendees":false} require google:write and gateway native REST execution. Apps Script hides and refuses both. Legacy bearer-only Home execution hides and refuses them; use a dedicated employee Google connection or an account-bound gateway connector.
Every call creates a new confirmation card. allow, Admin scope and persistent workflow grants cannot waive it; block still refuses. The Gmail card comes from Google: sending account, To/Cc/Bcc, subject, body preview and attachment names/sizes. Approval binds that account, employee incarnation, draft ID, operation and MIME hash. The gateway rechecks the draft and sends the approved MIME snapshot; changed content or account requires a fresh confirmation. Recipient policy includes all To/Cc/Bcc addresses, including display-name addresses; ambiguous recipient syntax is refused.
The Calendar card shows the title, start/end with timezone, attendees, calendar, whole-series deletion flag and notification choice. It binds the event version and uses If-Match; a changed event requires a new confirmation. calendar_id defaults to primary; sendUpdates=none is explicit unless notify_attendees=true requests all. Empty HTTP 204 is success. Calendar deletion also reads the primary calendar account and selected calendar name/timezone using the existing calendar.calendarlist.readonly scope (or a broader calendar scope).
The MIME remains in gateway memory; the approval stores the curated preview and content hash. A denied, expired, consumed or mismatched approval cannot mutate Google. A timeout or uncertain write reports result_unconfirmed: inspect Google before retrying; the operation never automatically resends. Confirmation expires after 90 seconds.
The transport contract follows Gmail drafts and Calendar conditional modifications.
Send Google Chat as yourself
Section titled “Send Google Chat as yourself”google_chat_send {space, text, thread?} sends text to an existing space using the verified requesting member’s own Google account. It requires google:write and is off until an administrator enables [google] chat_send = true. A home/shared account, another member, Apps Script, or a Chat app token (chat.bot) cannot substitute for the member.
For personal OAuth, connect your account first, then open My connections → Google Chat sending and grant the separate chat_send purpose. Additional-service consent explicitly requests the already-consented ordinary services plus https://www.googleapis.com/auth/chat.messages.create, without automatic merging of prior Google grants; the existing Google subject must remain unchanged and Google must actually grant the scope. Domain-wide delegation requests a separate send scope set for this tool; a Workspace administrator must authorize it. It is never added to every Google request.
Every send waits for the member’s own single-use confirmation, valid for five minutes. The card shows the account, space resource name, thread and full final text, with a private-data warning. A verified private conversation can carry a short card; group requests and long messages use the member-only My connections page. Admin approval, an allow rule, Admin MCP scope and recipient allowlists cannot replace this confirmation. Any organisation-required egress approval still applies in addition. Editing the message, destination, account, credential or policy invalidates confirmation.
The gateway keeps one request ID with the operation and never automatically resends an unknown outcome (result_unconfirmed). Check Google Chat before asking for a new send. Attachments and space creation are not supported; a specified thread must belong to the same space. Google displays the user as sender and also attributes the application by name. Google Chat API reference.
Administrator AI settings
Section titled “Administrator AI settings”admin_settings_read reads the everyday settings exposed by the administrator AI feature. admin_settings_propose creates a review card; it does not apply changes directly. Both are available only during an eligible administrator’s personally attended conversation through their own AI avatar. Changes can be proposed only in private chats or signed-in WebChat. Group reads omit schedule prompt text and skill descriptions. The feature must first be enabled by an administrator with a risk acknowledgement. Every proposal, including one item, requires confirmation in the dashboard inbox by its proposer within ten minutes.
The feature can change ordinary profile, model, runtime limit, wake-up, prompt-only schedule and installed-skill enabled settings. Dashboard-only settings include permissions, channels and credentials, isolation, engines, budget increases, organization and delegation authority, external tool connections, personality/work contract, employee deletion and installing external skills.
For AI callers, agent_update can only lower budgets. Budget increases and other protected security changes are refused. Adding database sources creates an approval card that only an administrator can decide in the dashboard; removing sources remains a reduction. These restrictions apply under every delegation policy, including open.
Cloud-drive write tools
Section titled “Cloud-drive write tools”These nine native tools require google:write. Administrators control create, modify, move and trash separately; all four start off. Enabling an action or widening its policy requires an explicit acknowledgement of the risks and records the administrator and time. No additional sign-in is required for that settings change. Use Integrations → Google → Drive writing for the four actions, approval mode per action and folder list. Its readiness panel shows delegated scopes, a per-employee test and company-account consent. Members connect through My connections → Drive writing and review write confirmation cards there. For records, open Logs → History → Drive writing.
Each action defaults to confirmation by the member. An administrator can turn confirmation off per action, or require both member and administrator approval. Required member confirmation lasts five minutes and only that member can decide. Tool allowlists, Admin tokens and standing workflow approval cannot replace it. Background or unattended work is refused when confirmation is required. With personal connections or delegation to the owner, the requester must be the account holder; shared company and fixed-delegation connections use the verified requesting member.
| Tool | Parameters and result | Action switch | Effect class |
|---|---|---|---|
drive_create_file |
Required name; optional parent_folder_id. Choose exactly one of text (up to 100,000 characters), attachment (this conversation’s attachment filename), or folder=true. Optional convert_to: document or spreadsheet; mime_type: text/plain, text/csv or text/markdown. Creates a file or folder. |
Create | Publish |
drive_copy_file |
Required file_id, parent_folder_id; optional name. Copies a readable source file into the destination folder. |
Create | Publish |
drive_update_file |
Required file_id; at least one of name, description, text. Renames, changes the description or replaces text (up to 100,000 characters, non-Google-format text files only). |
Modify | Modify |
drive_move_file |
Required file_id, destination_folder_id. Moves within the same drive; current parents are read from Google. |
Move | Publish |
drive_trash_file |
Required file_id. Moves the item to trash only. |
Trash | Delete |
docs_insert_text |
Required document_id, text (1–20,000 characters). Choose at="start", at="end" or after_text (a unique anchor, 1–1,000 characters). Optional tab_id. |
Modify | Modify |
docs_format |
Required document_id, operations (1–50). Supports paragraph/text styles, table-cell background, a header and adding a document tab; details below. |
Modify | Modify |
sheets_add_sheet |
Required spreadsheet_id, title; optional copy_from_sheet (an existing sheet name). Adds a blank sheet or duplicates a sheet in that spreadsheet. |
Modify | Modify |
sheets_add_note |
Required spreadsheet_id, range (A1, up to 1,000 cells), note (up to 5,000 characters; empty clears notes). Sets cell notes, not threaded comments. |
Modify | Modify |
IDs can also be supplied as supported Google file or folder URLs. Omitting parent_folder_id for creation means the My Drive root and is allowed only with an empty folder list. Uploads accept only attachments attached to the current conversation request, up to 5 MB (5 MiB); arbitrary local paths and employee workspace files are refused. Conversion to a Google document or spreadsheet is optional. Permanent deletion, emptying trash and sharing or permission changes are unavailable.
For docs_format, each operation has a type and only its supported fields:
paragraph_style:textas a unique anchor,named_style(NORMAL_TEXT,TITLE,SUBTITLE,HEADING_1–HEADING_6), optionalalignment(START,CENTER,END,JUSTIFIED).text_style: uniquetext, and at least one ofbold,italic,underline,font_size_pt(6–96).table_cell_style: zero-basedtable_index(0–99),row(0–499),column(0–49), andbackground_hex(#RRGGBB).header:text(up to 1,000 characters).add_tab:title(1–100 characters).
Folder rules and limits
Section titled “Folder rules and limits”An administrator can list folders or entire shared drives. A file in a listed shared drive is in scope. Otherwise every parent chain must reach a listed folder within 12 parent steps. Unreadable parents, trashed targets or ancestors, exceeded check limits, and insufficient Google permissions refuse the action. A call has a shared limit of 16 metadata lookups, including rechecks.
Create and copy check the destination folder; a copied source must be readable and not trashed. Modify, move and trash check the target’s location. Listed folders themselves cannot be renamed, moved or trashed. Moves require both source and destination in scope and cannot cross from My Drive to a shared drive or between shared drives. Shortcuts cannot be listed as allowed folders or used as destinations. Modify refuses shortcuts; move and trash affect the shortcut itself and check its own parents, without following the target.
With an empty folder list, create and modify can act anywhere the account can write; move and trash are unavailable. Folder checks run before and after writes, with another check after approval. They are best effort: Google has no folder allowlist and concurrent changes can occur. Detected post-write violations notify administrators; incomplete checks are recorded. Every attempt, including refusals and uncertain outcomes, is logged without file contents or tokens. An uncertain result is not automatically retried; check Google before requesting another write.
The existing docs_append, docs_create, docs_replace_text, sheets_append, sheets_create and sheets_update keep their existing gates and remain outside these four switches and folder rules. The four new Docs/Sheets tools above use Modify. The official Google Drive remote MCP never receives a token with full Drive access; these write tools execute only inside the main gateway process.
See connection setup and personal write consent for account requirements. Real Google OAuth isolation and revocation, delegated scopes, document tabs, conversion, shared-drive roles and private-message confirmation delivery still require real-account acceptance; this reference does not certify those checks.
Person tools and Odoo access (v1.86.0)
Section titled “Person tools and Odoo access (v1.86.0)”Personal member keys expose only the following tools, intersected with the key’s scopes and the administrator’s current allow_mcp_scopes:
| Scope | Tools |
|---|---|
tasks:read |
my_tasks_list {status?, limit?}: authorized tasks, default limit 50, range 1–200; truncated reports bounded or omitted results. |
agents:status |
my_agents_status {}: visible employee IDs, names, status and can_call. |
odoo:read |
odoo_search, odoo_crm_leads, odoo_sale_orders, odoo_inventory_products, odoo_inventory_check, odoo_invoice_list, odoo_payment_status, odoo_partner_search, odoo_schema_overview, odoo_schema_fields, odoo_status. |
odoo:write |
odoo_create, odoo_write, odoo_activity_create, odoo_note_post. Requires acknowledged follow_odoo_account. |
These calls use the holder’s current authority. Odoo uses only their own connected account, never an employee or company credential. odoo_execute, odoo_report, odoo_connect, odoo_message_send, odoo_attachment_add and dedicated CRM/sales mutations are outside the person-key subset. The two my_* tools are person-only and are not employee tools.
Four dedicated Odoo write tools
Section titled “Four dedicated Odoo write tools”All four require odoo:write and an existing, readable target record. Text is plain text, HTML-escaped, with no mentions or caller-chosen recipient list.
| Tool / arguments | Behavior |
|---|---|
odoo_activity_create {model, res_id, summary, note?, date_deadline?, activity_type_xmlid?, user_id?} |
Schedule an activity. Text fields allow at most 10,000 characters; deadline is YYYY-MM-DD; default type is mail.mail_activity_data_todo. Engine assigns the connected account; only Follow accepts user_id. |
odoo_note_post {model, res_id, body} |
Add an internal note; body at most 10,000 characters. |
odoo_message_send {model, res_id, body} |
Notify record followers; body at most 10,000 characters. Always requires human approval bound to the exact content. Employee identity required. |
odoo_attachment_add {model, res_id, file, name?} |
Add a private attachment from the calling employee’s own attachment folder. No inline/base64 data, absolute paths, traversal, symlinks or shared folder. Accepts PDF, PNG, JPEG, WebP, UTF-8 TXT/CSV and OOXML XLSX/DOCX/PPTX with matching validated content. Original and encoded files must fit attachment_max_mb (10 MiB by default, 1–25). Employee identity required. |
Engine requires the exact target in allowed_models and exact activity:<model>, note:<model>, message:<model> or attach:<model> in allowed_actions; empty lists do not grant these tools. Follow uses the personal Odoo account’s permissions instead of employee model/action grants and the Engine sensitive-model block list. Company feature switches, always_refuse, fixed refusals, input checks, approvals and Odoo ACLs remain. Company/AI-owned identities always use Engine. Employee permission_override=engine keeps Engine; read_only removes writes. Global Follow requires a valid administrator acknowledgement; missing/invalid acknowledgement falls back to Engine.
agents.update accepts odoo.allowed_actions entries activity:<model>, note:<model>, message:<model> and attach:<model>. These four actions require an exact model name; bare verbs and wildcard models are not accepted for new entries. Generic writers refuse employee-level Odoo permission widening and direct the administrator to that employee’s edit page.
For an avatar or act_as_requester employee with no usable own or permitted company credential, the employee identity route returns odoo_member_credentials_off while [odoo] member_credentials is not literally true; its message says the company has not enabled members’ own Odoo connections and asks them to contact an administrator. When the switch is true, the corresponding missing-connection refusal is odoo_not_connected.
Default always_refuse: unlink:*, create:ir.*, write:ir.*, execute:ir.*, create:res.users, write:res.users, create:res.groups, write:res.groups, method:execute_import, method:signal_workflow. Rules use an exact model, * or dot descendants such as ir.*; method:<name> matches an exact method. Dedicated rules use semantic verbs (activity:, note:, message:, attach:) against the target model.
| Rule | Always refused |
|---|---|
| F1 | Updating or deleting ir.attachment; creating it through a generic tool. Use odoo_attachment_add to create an attachment from a file. |
| F2 | Mutations of ir.model, every ir.model.* descendant, and ir.rule. |
| F3 | Mutations of res.users.apikeys and its dot descendants. |
| F4 | Mutations of mail and every mail.* descendant; generic calls to message_post, message_notify, message_subscribe, send_mail, or action_send_mail. Use the dedicated note/message tools. |
| F5 | Methods starting with _, plus init and uninstall_hook. |
Engine mode preserves v1.85 approval behavior for odoo_execute and button actions, including odoo_sale_confirm: employee approval lists, action rules and effect classes still apply, with no additional forced approval. Follow-Odoo-account mode requires human approval for every non-read odoo_execute call and every action_*, button_* or toggle_* action, including odoo_sale_confirm. Follower messages (odoo_message_send) always require approval in every mode. These forced approvals cannot be waived by an allow rule; they bind the exact tool and arguments and are single-use. Other writes retain their normal approval and outgoing-data gates. Admins manage policy through audited odoo.access_get/set; widening Follow/company-account/refusal-list settings requires acknowledge_risk.
Per-employee changes use the admin browser RPC odoo.agent_access_set {agent_id, permission_override?, act_as_requester?, acknowledge_risk?}: only inherit, engine, and read_only are accepted; enabling requester identity or loosening an override requires acknowledge_risk=true. It edits only those two fields, rechecks the live admin session, and audits before writing; an audit failure blocks the change. odoo.agent_config_get returns both fields. Raw/profile writers still refuse widening. The controls are in employee editor → Integrations → Odoo.