waafir-dataroom reference
The waafir-dataroom server is the stable API surface of this release. It
exposes the tools below for reading and managing your data rooms, grouped by
what they do: read tools, folder tools, file tools (file lifecycle and file
versions), a document-text tool, permission tools, and Q&A tools.
Connection: https://app.waafir.io/api/mcp/waafir, or the area server
https://app.waafir.io/api/mcp/waafir-dataroom — see
Setup.
Tool names. Each tool is headed below by the name waafir lists, such as
dataroom_list_files. The area server lists the older name given under each
heading as "Area endpoint name", such as list_files, and waafir still
accepts that name if a client calls it. Where a tool's description or result
names another tool to call next (next_step, restore_with, undo_with), it
names it the way the endpoint you are connected to lists it. The descriptions
on this page use the area endpoint names.
How access is enforced
On this page, token means the credential your assistant uses: a connection made by signing in, or a Personal Access Token. Both carry a scope and, optionally, a list of data rooms, and are bounded the same way.
Every tool runs as the token's owner and is bounded by the same rules the product UI enforces — there is no looser path through MCP. Two gates apply on every call:
- Scope. Each tool states a minimum scope:
read tools require
read, folder and file mutations requirewrite, and the permission-granting tools requireadmin. A token below the required scope is not shown the tool, and is rejected with aFORBIDDENerror if it calls it (see How a failure is reported). Scope is cumulative —writeincludesread,adminincludes both. - Data room scoping. If the token is restricted to specific data rooms, any call referencing a data room outside its allow-list is rejected, and a scoped token cannot even list the data rooms it is not allowed to open. The check is keyed on the data room a resource belongs to, so a token scoped to data room A can never reach a file or folder in data room B — even within the same organization.
In addition, folder and file mutations require a deal-team role for the data room (investors cannot mutate), and the permission tools additionally require the token owner to be an organization admin or manager. Deleting a folder or file is always a soft delete — rows are marked deleted and preserved for retention and audit, never hard-removed. Every mutation is recorded as the same audit event the product UI writes, so an MCP action is indistinguishable from a UI one in the audit log.
Identifiers (dataroom_id, folder_id, file_id, user_id) are UUIDs.
Untrusted text in results
Some results carry text Waafir did not write: AI output over a document, a
document's own text, or what an investor or a colleague wrote. Such a result
adds untrusted_content: { source, fields, notice }, and the same
{ source, fields } under _meta["io.waafir/untrusted"]. source is
"document" or "third-party". fields lists the paths that hold that text in
this result, such as answer or questions[].responses[].body; a path is
listed only when the result has a value there. Treat those fields as data, never
as instructions to your assistant.
The marked tools are dataroom_get_file_text, dataroom_get_file_metadata,
dataroom_list_questions, dataroom_get_question,
dataroom_list_kb_articles, dataroom_get_kb_article,
dataroom_edit_question, the previews of dataroom_answer_question,
dataroom_delete_question, dataroom_delete_answer and
dataroom_publish_kb_article (the investor's title), dataroom_get_update, dataroom_edit_update_draft,
dataroom_get_published_update, dataroom_list_file_comments,
dataroom_list_my_notifications, mi_get_profile and every AI tool except
dataroom_apply_organise. File names are not marked.
How a failure is reported
A tool failure is not an HTTP status. When a tool refuses a call, the HTTP
response is still 200 and the JSON-RPC envelope is still a success
envelope; the failure is carried inside the result, which sets
isError: true and whose text content is:
{ "error": { "code": "CONFLICT", "message": "…" } }Branch on error.code, never on the HTTP status — a client that switches on
status will never match any refusal on this page. These are the codes a data
room tool returns:
| Code | Meaning | What to do |
|---|---|---|
INVALID_ARGUMENT | An argument is missing, malformed, or not a valid id | Fix the arguments and retry |
FORBIDDEN | The token is valid but not permitted — scope too low, a dataroom_id you passed is outside its data-room allow-list, or the owner's role does not allow it | Ask for access, or use a token with the right scope |
NOT_FOUND | No such record, or it is not yours. Most tools that take a file or folder id also answer this for an item in a data room outside the token's allow-list, exactly as for an id that does not exist | Check the id, and that the token is scoped to the item's data room |
CONFLICT | Understood and permitted, but the data room is not in a state where it can be done | Read the message, fix the blocker, retry |
TOO_LARGE | The input exceeds a size limit | Split the input |
QUOTA_EXCEEDED | A metered allowance is spent, or the organization's subscription has lapsed | Somebody must buy or upgrade — retrying will not clear it |
UPSTREAM_ERROR | A downstream service failed — the stored document could not be fetched, or text extraction failed on it | Transient. Retry later before treating it as fatal |
UNAVAILABLE | Waafir cannot serve this right now: the file is still being checked, the stored file could not be read for its check, or the read could not be recorded to the audit log, so the content was withheld rather than disclosed unlogged | Transient. Retry later |
INTERNAL | An unexpected failure | Do not retry — escalate |
Do not collapse the two retry-later codes into "failed". UPSTREAM_ERROR
and UNAVAILABLE reach you today from get_file_text, and they mean ask
again, not give up. A client that treats every non-OK result as terminal
turns a passing blip into a permanent failure — the one mistake this table
exists to prevent. Note also that UNAVAILABLE is a deliberate refusal:
Waafir would rather withhold a document's text than hand it over without an
audit record.
A file that is still being checked. Waafir checks each newly uploaded file
and each new version before it serves the content. Until the check finishes, a
tool that reads the file's content answers UNAVAILABLE with an error.reason:
{ "error": { "code": "UNAVAILABLE", "reason": "ACTIVATION_PENDING", "message": "This file is still being checked. Try again shortly." } }It is transient: wait a short while and call again. Earlier releases answered it
with CONFLICT; branch on error.reason, not on the message. The check has two
other outcomes. In the data room tools they carry no reason, and the message
ends with the code in brackets:
- Blocked: the file failed its content check.
INVALID_ARGUMENT, with the message ending(ACTIVATION_BLOCKED). No retry of this file can succeed. - Unreadable: the stored file could not be read to check it.
UNAVAILABLE, with the message ending(CONTENT_UNREADABLE). Retry later.
The message names the blocking record wherever there is one. Transport-level
failures — an unknown server name, a missing or revoked connection or token, an unpurchased
paid add-on — are real HTTP statuses and are listed in
Setup.
Pagination
No list tool returns an unbounded array. Every tool that returns a list
accepts an optional limit and offset, and returns a pagination object
alongside the rows:
| Field | Meaning |
|---|---|
limit | the page size actually applied |
offset | the offset actually applied |
count | how many rows are on this page |
has_more | true when more rows exist beyond this page |
next_offset | the offset to pass for the next page, or null when the result is complete |
total | the full number of rows behind the window — present only where it is cheap to compute |
limit and offset are clamped, not rejected: a value above the maximum
comes back as the maximum, a value below the minimum as the minimum, and an
absent or non-numeric value as the documented default. The pagination block
always reports the values that were actually applied, so you can see what you
got rather than what you asked for.
Use has_more to decide whether a result is complete — never infer it from
count === limit, which is ambiguous on an exactly-full final page. To read a
whole list, follow next_offset until has_more is false.
Read tools
Require read scope.
dataroom_list
Area endpoint name: list_datarooms
List the data rooms the caller can access. For a token scoped to specific data rooms, the result is filtered to that allow-list. Archived data rooms are excluded.
- Inputs:
limit(optional, 1–200, default 50);offset(optional, default 0). - Output:
{ datarooms: [{ id, name, description, org_name, created_at }], pagination: { limit, offset, count, has_more, next_offset, total } }. - Ordered oldest-first by
created_at, with an id tiebreak so pages are stable.totalis the full number of data rooms this token can reach, counted after the allow-list filter is applied.
dataroom_get
Area endpoint name: get_dataroom
Get a single data room by id. The caller must be authorized for it; a token scoped to other data rooms is rejected.
- Inputs:
dataroom_id(required). - Output:
{ dataroom: { id, name } | null }.
dataroom_list_folders
Area endpoint name: list_folders
List folders in a data room. Honors deal-team vs investor visibility — an
investor only sees folders they may read. List one level under a parent, or pass
all for the whole tree. Deleted folders are excluded.
- Inputs:
dataroom_id(required);parent_folder_id(optional — omit for top-level folders);all(optional boolean — true lists every folder in the data room);limit(optional, 1–500, default 100);offset(optional, default 0). - Output:
{ folders: [{ id, name, parent_folder_id, created_at }], pagination: { limit, offset, count, has_more, next_offset, total } }. - Sorted by name, with an id tiebreak so pages are stable.
all: trueis paginated too — on a large tree, page through withnext_offsetrather than expecting the whole tree in one response.
dataroom_list_files
Area endpoint name: list_files
List active (non-deleted) files in a data room, optionally within a folder. Investor callers only see files they are permitted to read. Paginated.
- Inputs:
dataroom_id(required);folder_id(optional — omit for files at the data room root);limit(optional, 1–200, default 50);offset(optional, default 0);sort_dir(optional,asc|desc, defaultdesc). - Output:
{ files: [{ id, name, folder_id, size_bytes, mime_type, created_at, updated_at }], pagination: { limit, offset, count, has_more, next_offset } }. - No
total— counting the full match set is not cheap on this path. Usehas_more/next_offsetto page.
dataroom_get_file_metadata
Area endpoint name: get_file_metadata
Get metadata for a single file: name, MIME type, size, folder path, version list, and AI summary/category if present. The file must belong to the named data room; a file in another data room (even the same org) returns null.
- Inputs:
dataroom_id(required);file_id(required). - Output:
{ file: { id, name, mime_type, size_bytes, folder_id, folder_path, created_at, updated_at } | null, versions: [{ id, version_number, is_current, created_at }], ai_metadata: { summary, key_points, category, is_redacted } | null }.
dataroom_search
Area endpoint name: search_dataroom
Search files by name within a single authorized data room (case-insensitive substring match). Deleted files are excluded.
- Inputs:
dataroom_id(required);query(required, filename substring);limit(optional, 1–100, default 25);offset(optional, default 0). - Output:
{ files: [{ id, name, mime_type, size_bytes, created_at }], pagination: { limit, offset, count, has_more, next_offset } }. - Newest first, with an id tiebreak so pages are stable. When
has_moreistruethe query matched more files than were returned — page withnext_offset, or narrow the query. There is nototal.
Room tools
dataroom_create
Create a data room in the token's organization.
- Scope:
write, and the token owner must be on the deal team. A token or connection limited to specific data rooms is refused (FORBIDDEN, codePAT_ROOM_SCOPED); use one that is not limited to data rooms. - Inputs:
name(required, 1–100 characters). Leading and trailing spaces are trimmed, and a name that is only spaces is refused (INVALID_ARGUMENT). - Output:
{ id, name }. Passidasdataroom_idto the folder and file tools. - Not idempotent. Every call creates a new room. If a call's result was lost,
look for the room with
dataroom_listbefore calling again, or you will create a duplicate. - An organization whose subscription does not allow writes, or that is over its
seat limit, is refused with
QUOTA_EXCEEDED.
Folder tools
Require write scope and a deal-team role for the data room.
dataroom_create_folder
Area endpoint name: create_folder
Create a folder in a data room. Nest it under a parent, or omit the parent for
the data room root. Rejects a duplicate name under the same parent with a
CONFLICT.
- Inputs:
dataroom_id(required);name(required, 1–255 chars);parent_folder_id(optional — null/omitted for the data room root). - Output:
{ folder: { id, name, parent_folder_id } }. TheCONFLICTmessage names the conflicting folder's id, so you do not need to re-list the parent to find it.
dataroom_rename_folder
Area endpoint name: rename_folder
Rename a folder. The folder must belong to the caller's organization.
- Inputs:
folder_id(required);name(required, 1–255 chars). - Output:
{ folder: { id, name } }.
dataroom_delete_folder
Area endpoint name: delete_folder
Soft-delete a folder and its entire subtree — every nested sub-folder and
every file inside them. On a real data room that can be hundreds of documents
from a single folder id, so the result reports exactly how many folders and files
were removed. Pass dry_run: true to get those counts without deleting anything.
Rows are marked deleted, never hard-removed, and the whole cascade can be undone
with restore_folder.
- Inputs:
folder_id(required);dry_run(optional boolean — preview only). - Output:
{ deleted, dry_run, folder_id, folder_name, affected: { folders, files }, restore_with: "restore_folder" }. - A dry run changes nothing and records no deletion in the audit trail.
dataroom_restore_folder
Area endpoint name: restore_folder
Undo a delete_folder. Restores the folder and everything that delete removed
with it — anything deleted separately, earlier, stays deleted. Returns a conflict
if the parent folder is still deleted (restore that first) or if a live folder has
since taken the name; in both cases the message names the blocking folder's id.
- Inputs:
folder_id(required);dry_run(optional boolean — preview only). - Output:
{ restored, dry_run, folder_id, folder_name, affected: { folders, files } }. - A folder delete is lossless to undo, and deliberately unlike a file delete.
The cascade does not move your organization's storage counter and does not drop
the files' search-index chunks, so
restore_foldercredits nothing back — nothing was debited — and the restored files are still searchable.delete_file/restore_filebelow do both. Deleting a folder full of documents is therefore not the same accounting event as deleting each of those documents.
dataroom_move_folder
Area endpoint name: move_folder
Reparent a folder within the same data room. Nest it under another folder, or move it to the data room root. Rejects moving a folder into itself or a descendant (cycle), into a different data room, or where a sibling with the same name already exists.
- Inputs:
folder_id(required);new_parent_folder_id(optional — null/omitted for the data room root). - Output:
{ folder: { id, name, parent_folder_id, previous_parent_folder_id } }. Passprevious_parent_folder_idback asnew_parent_folder_idto undo the move.
File tools
File mutations require write scope; get_file_download_url requires read
plus Read document content on the token.
Uploading is brokered, and MCP never carries the bytes. Tool arguments are
JSON, so the protocol has no binary channel: request_file_upload mints a
presigned URL and your client PUTs the content to it directly. A client that
cannot issue an HTTP PUT with a raw binary body cannot complete an upload at all
— worth knowing before you start rather than after.
Which tool finalizes the upload depends on whether a file of that name is already
there, and you do not have to work it out: request_file_upload returns a
next_step field naming the tool to call.
request_file_upload returns | Meaning | Finalize with |
|---|---|---|
is_new_version: false, next_step: "register_file" | No same-name active file — a pending record was created at version 1 | register_file |
is_new_version: true, next_step: "finalise_file_version" | A same-name active file exists — this upload becomes a new version of it | finalise_file_version |
Call the tool next_step names. register_file only ever finalizes version 1 and
rejects anything else, so reaching for it on the new-version branch fails the call.
dataroom_request_file_upload
Area endpoint name: request_file_upload
Request a presigned upload URL for a file in a data room. Returns the URL and
headers to PUT the bytes to, the file id, and next_step — the tool that
finalizes this particular upload. If a same-name active file already exists in
the target folder, is_new_version is true and the returned id and
version_number target that existing file.
- Scope:
write. - Inputs:
dataroom_id(required);file_name(required, with extension);file_size(required, exact bytes, positive integer);mime_type(required);folder_id(optional — omit for the data room root). - Output:
{ upload_url, headers, file_id, s3_key, is_new_version, version_number, next_step }—next_stepis"register_file"or"finalise_file_version". - This tool moves no bytes; it only brokers the URL. If object storage is not configured the call fails outright rather than handing back a URL that cannot work.
dataroom_register_file
Area endpoint name: register_file
Finalize a pending first upload after PUTting the bytes from
request_file_upload: marks the file active, increments org storage, and records
version 1. Call it when request_file_upload returned is_new_version: false —
its next_step names this tool.
- Scope:
write. - Inputs:
file_id(required, the pending id fromrequest_file_upload);s3_key(optional);size_bytes(optional — derived from the uploaded object when omitted). - Output:
{ file_id, status: "active", version_number: 1 }. - Version 1 only, and it enforces that. A file that is already active, or that
already carries a version, is rejected — the refusal names
finalise_file_versionas the tool for versions 2 and up. - The storage key is derived server-side and the client's
s3_keyis never trusted. It is optional; if you do send it, it must equal the keyrequest_file_uploadreturned or the call is rejected.
dataroom_finalise_file_version
Area endpoint name: finalise_file_version
Finalize a new version of an existing file, after PUTting the bytes to the URL
request_file_upload returned with is_new_version: true. This is the MCP
equivalent of replacing a document in the UI, and the tool next_step names on
that branch.
- Scope:
write. - Inputs:
file_id(required);version_number(required — theversion_numberrequest_file_uploadreturned). - Output:
{ file_id, version_id, version_number, size_bytes, is_current: true, previous_version_number, previous_version_id, undo_with: "restore_file_version" }. version_numbermust be exactly the next version for this file. It is graded, not guessed: any other value is rejected rather than quietly written, and the storage key is derived server-side from it.- The new version becomes current and the previous one is retained in the
history. Pass
previous_version_idtorestore_file_versionto undo. - A file that has not completed its first upload is rejected — finalize version 1
with
register_filefirst. The call also fails if the bytes are not actually in storage yet, rather than recording a version with nothing behind it.
dataroom_restore_file_version
Area endpoint name: restore_file_version
Make an earlier version of a file current again — the undo of
finalise_file_version. It moves the current marker and re-points the file at
that version; it does not mint a new version row, so the version history stays
a faithful list of the revisions that were actually uploaded.
- Scope:
write. - Inputs:
file_id(required);version_id(required — must belong to this file;get_file_metadatalists the file's version ids). - Output:
{ file_id, version_id, version_number, already_current, new_version_created: false }. already_current: truemeans the version was already the current one and nothing changed — a no-op, not a failure.- There is no separate list-versions tool:
get_file_metadataalready returns the file's versions with their ids, numbers, and current flag.
dataroom_rename_file
Area endpoint name: rename_file
Rename a file — metadata only. This does not create a new version;
versioning is for content replacement, not relabeling. Names must be unique among
live files in the same folder; a clash returns a CONFLICT naming the existing
file.
- Scope:
write. - Inputs:
file_id(required);name(required, 1–255 chars). - Output:
{ file_id, name, previous_name, changed }. The returnednameis read back from storage, so it is what was actually persisted —changedis false if the stored name did not move.
dataroom_move_file
Area endpoint name: move_file
Move a file into another folder in the same data room, or to the data room root. Cross-data-room moves are rejected: a data room is a permission boundary, and re-homing content across one would change who can read it. Rejects a move where a live file of the same name already sits in the destination.
- Scope:
write. - Inputs:
file_id(required);folder_id(optional — null/omitted for the data room root). - Output:
{ file_id, name, folder_id, previous_folder_id, moved }. Passprevious_folder_idback asfolder_idto undo the move.
dataroom_delete_file
Area endpoint name: delete_file
Delete a file. The result echoes the name of the file that was actually deleted,
so a mistaken id is visible in the response. The file and its versions are kept
for retention and audit, never erased, and restore_file brings it back.
- Scope:
write. - Inputs:
file_id(required). - Output:
{ file_id, status: "deleted", name, folder_id, restore_with: "restore_file" }. - Storage is credited back only for an upload that actually completed. A file whose bytes landed returns its size to your organization's storage counter. A file still awaiting its upload was never charged for in the first place, so deleting it moves the counter by nothing — the delete is counter-neutral, not a refund of bytes you never stored.
- Deleting also drops the file's search-index chunks, so the document leaves
document search immediately.
restore_filecannot bring those back — see below. - The tool only ever resolves a live file, so calling it a second time on the
same id returns
NOT_FOUNDrather than deleting anything again. The storage counter cannot be debited twice for one file.
dataroom_restore_file
Area endpoint name: restore_file
Undo a delete_file: bring a soft-deleted file back to live, restoring the row
and the storage accounting that delete reversed. It does not restore the
file's search-index chunks — those are dropped on delete — so the file is live and
downloadable but must be re-indexed before document search finds it again.
search_index_restored is always false and says so rather than implying a
lossless undo.
- Scope:
write. - Inputs:
file_id(required). - Output:
{ restored, file_id, name, folder_id, storage_bytes_restored, search_index_restored: false }.
When a restore is refused. It fails rather than papering over a conflict, and names the blocking row where there is one:
| # | Condition | error.code | What to do |
|---|---|---|---|
| 1 | No such file, or not yours | NOT_FOUND | Check the id. |
| 2 | The file is not deleted — it is already live | CONFLICT | Nothing to restore. |
| 3 | The file's upload never completed | CONFLICT | Nothing to restore: its bytes never landed, so there is no document to bring back. Upload it again instead. |
| 4 | The containing folder is still deleted | CONFLICT | restore_folder first — that also brings back the files deleted with it. |
| 5 | A live file has since taken the name in that folder | CONFLICT | Rename the file that holds the name, then retry. |
These are in-payload codes, not HTTP statuses — see How a failure is reported.
The checks run in the order numbered above, and you are told about the first one that fails. The upload-never-completed case (3) is therefore reported after the not-found and not-deleted checks but ahead of the folder and name checks: a file whose bytes never arrived cannot be restored whatever its folder or name situation, so there is no point sending you to fix either.
dataroom_get_file_download_url
Area endpoint name: get_file_download_url
Get a short-lived download URL for a file. The caller must be authorized for the file (the per-file read/download permission). The URL serves the same copy the browser download gives you: watermarked when the room watermarks downloads, and the redacted copy of a redacted document for a recipient outside your organization. It expires after a few minutes.
- Scope:
read, plus Read document content on the token. Without it the call is refused withGRANT_REQUIRED. - Limit: at most 10 calls a minute per token, because each one prepares a
protected copy. Over it,
RATE_LIMITED. - If a protected copy cannot be prepared in time, the call is refused with
UNAVAILABLEand no link; try again, or download it in Waafir. - Inputs:
file_id(required). - Output:
{ download_url, expires_in_seconds }.
Document text tools
One tool, for reading a document's extracted text rather than downloading the file itself.
dataroom_get_file_text
Area endpoint name: get_file_text
Read a document's extracted text, one page at a time. Returns numbered segments
— for a PDF, one segment per page unless the page is very long — plus a
pagination block, so you can walk a long document with offset.
Two things make this stricter than a metadata read:
- You must be permitted to download the file, not merely view it. View-only permission is not enough, and a token restricted away from the document is refused.
- If the document has been redacted and you are not on the deal team, you
receive the text of the redacted version, and
sourcesays which artifact you got. It never silently hands a perimeter reader the original.
Every successful call is written to the organization's audit log, on the same footing as a document read in the product.
- Scope:
read, plus Read document content on the token. Without it the call is refused withGRANT_REQUIRED;dataroom_get_file_metadataanddataroom_summarise_filestill give the document's summary. - Inputs:
file_id(required);dataroom_id(optional — validated against the file's own data room when supplied, and a mismatch reads asNOT_FOUNDrather than confirming the file exists elsewhere);limit(optional, 1–5, default 3);offset(optional, default 0). - Output:
{ file_id, file_name, source, segment_max_chars, segments, pagination }.sourceis"original"or"redacted".paginationcarries atotal. - A file with no stored object — a note, whose body is held inline — returns
NOT_FOUNDwith "no extractable content". - A file whose type has no text to extract (an archive, say) is refused with a
400, and a stored file over 50 MB with a413(FILE_TOO_LARGE). Both apply only when the file's text has not already been extracted (text already extracted is served first), are refused before the document is fetched, and neither is a retry-later error. - This is the tool that produces the two retry-later codes:
UPSTREAM_ERRORwhen the stored document cannot be fetched or text extraction fails on it, andUNAVAILABLEwhen the audit write for the read fails — in which case the text is withheld deliberately rather than disclosed unrecorded. Both are worth one retry before you treat the document as unreadable.
Permission tools
These read and mutate who can see what. The three read tools require only
read scope (the two directory tools additionally require a deal-team role); the
four granting/revoking tools require admin scope and a token owner who is an
organization admin or manager.
A token never carries the owner/admin override on restricted files. In the
app, an organization owner or admin sees every restricted file; over a token
they reach one only if they created it or hold a grant on it, exactly like any
other member. A file tool refused on such a file answers NOT_FOUND with the
same text as a file that does not exist ("File not found in the requested
dataroom, or not readable by this credential"), so the answer never confirms
that a restricted file is there.
dataroom_get_file_permissions
Area endpoint name: get_file_permissions
List the permission grants on a file (direct and folder-inherited). Mirrors the UI's file-permissions view.
- Scope:
read. - Inputs:
dataroom_id(required);file_id(required);limit(optional, 1–200, default 50);offset(optional, default 0). - Output:
{ permissions: [{ user_id, can_read, can_download, access_revoked, expires_at, granted_by, created_at, source, source_folder_name?, source_folder_id?, user_email?, user_name?, granted_by_email? }], pagination: { limit, offset, count, has_more, next_offset, total }, identities_visible }(sourceis"direct"or"inherited"). - Grants are sorted on
created_at, thenuser_id, thensource, thensource_folder_id, so pages are stable across calls.totalis the full grant count on the file. - The identity fields (
user_email,user_name,granted_by_email) follow the same visibility rule as the directory tools below: they appear for deal-team callers, investor identities additionally require an organization admin or manager, and where you are not permitted the keys are absent rather thannull.identities_visibletells you which case you are in; the grants themselves are always listed.
dataroom_list_users
Area endpoint name: list_dataroom_users
List the users who hold an active access grant on a data room, with the user_id
the permission tools require plus each grantee's email address and name. This is
usually the first call when you need a user_id.
- Scope:
read, and a deal-team role in the data room's organization (the same gate as the team page). - Inputs:
dataroom_id(required);limit(optional, 1–200, default 50);offset(optional, default 0). - Output:
{ users: [{ user_id, email, name, is_deal_team, org_role, permission, granted_at, expires_at }], pagination: { limit, offset, count, has_more, next_offset, total }, investor_rows_visible }. - Investor identities are omitted unless you are an organization admin or
manager;
investor_rows_visiblereports which set you received. - Lists explicit grantees only. Organization owners and admins have implicit
access without a grant row and will not appear — resolve those with
find_user_by_email.
dataroom_find_user_by_email
Area endpoint name: find_user_by_email
Resolve an email address to the user_id that the permission tools require,
along with the user's organization role and current permission in this data room.
- Scope:
read, and a deal-team role in the data room's organization. Resolving an investor additionally requires an organization admin or manager. - Inputs:
dataroom_id(required);email(required, matched case-insensitively). - Output:
{ found: true, user: { user_id, email, name, org_role, dataroom_permission } }or{ found: false }. Adataroom_permissionofnullmeans the user is in the organization but has no access to this room yet — invite them first. - This is not a global directory lookup: only users inside the data room's
own organization, or holding live access to it, resolve. An unknown address, a
user outside your tenancy, and a user you are not permitted to see all return
an identical
{ found: false }, so a negative answer never reveals whether an account exists.
dataroom_set_file_permissions
Area endpoint name: set_file_permissions
Grant or update a user's read/download permission on a file. A read/write
token, or an owner who is not an org admin or manager, is rejected.
- Scope:
admin. - Inputs:
dataroom_id(required);file_id(required);user_id(required);can_read(required boolean);can_download(required boolean);expires_at(optional ISO timestamp, must be in the future). - Output:
{ success: true, effective: { can_read, can_download } }— the post-grant decision, which reflects file restrictions and folder inheritance and may therefore differ from what you requested. - This tool grants access; it cannot remove it. Passing
can_read: falsewrites an active grant with read denied, which other grants (organization membership, a data-room grant, folder inheritance) may still override. To actually remove a user's access to a file, userevoke_file_permission.
dataroom_revoke_file_permission
Area endpoint name: revoke_file_permission
Remove a user's direct permission grant on a file (soft-revoke: the row is
preserved for the audit trail). Returns revoked: false if the user had no
direct grant on the file.
- Scope:
admin. - Inputs:
dataroom_id(required);file_id(required);user_id(required). - Output:
{ success: true, revoked }. - Affects the direct grant only. Access inherited from a folder permission is
unaffected and must be revoked on the folder. Reversible by re-granting with
set_file_permissions.
dataroom_invite_user
Area endpoint name: invite_user_to_dataroom
Grant a known user data-room-level access at a given permission level — a direct access grant (not an email invite). Idempotent (upsert).
- Scope:
admin. - Inputs:
dataroom_id(required);user_id(required);permission(required — one ofviewer,downloader,contributor,manager);expires_at(optional ISO timestamp, must be in the future). - Output:
{ success: true, grant_id }.
dataroom_remove_user
Area endpoint name: remove_user_from_dataroom
Revoke a user's data-room-level access (soft-revoke: sets revoked_at,
preserving the audit trail). Returns revoked: false if the user had no active
grant.
- Scope:
admin. - Inputs:
dataroom_id(required);user_id(required). - Output:
{ success: true, revoked }.
Room admin tools
Folder grants, grants across many files at once, and the room's download
watermark. Each runs the same checks and writes the same rows as the Waafir
screen it mirrors. The writes require admin scope and a token owner who is
an organization admin. Recipients are always a user_id (from
find_user_by_email or list_dataroom_users), never an email address.
dataroom_get_folder_permissions
List the direct grants on a folder, and whether it is restricted (on its own, or through a restricted parent folder).
- Scope:
read, and the token owner must be on the deal team. - Inputs:
dataroom_id(required);folder_id(required). - Output:
{ folder_id, restricted, effectively_restricted, permissions: [{ user_id, can_read, can_download, expires_at, access_revoked, user_email?, user_name? }] }. The identity keys are absent where you may not see that person. - A folder you cannot see answers
NOT_FOUND, the same as one that does not exist.
dataroom_set_folder_permissions
Grant users access to a folder, or deny it with can_read: false, optionally
down the whole tree.
- Scope:
admin. - Inputs:
dataroom_id,folder_id,grants(required:[{ user_id, can_read, can_download, expires_at? }]);recursive(defaultfalse). - Output:
{ success: true, recursive, granted, skipped: { count, items } }. - Every grantee must already be in the room. A past
expires_atis refused. A grant that a deny on a folder above would cancel is refused (CONFLICT) before anything is written. A recursive grant skips the children where the grantee holds a deny, and lists them inskipped. Grantees get the in-app "Access Granted" notification.
dataroom_revoke_folder_permission
Revoke a user's direct grant on a folder, or lift their deny.
- Scope:
admin. - Inputs:
dataroom_id,folder_id,user_id(all required). - Output:
{ success: true, revoked }.revoked: falsemeans there was no live grant. - This does not cascade: grants that a recursive grant wrote on the folder's descendants stay.
dataroom_bulk_set_file_permissions
Grant the same users access to many files at once. In mode: "add" (the
default) it only adds: a field you leave out never takes access away. In
mode: "replace" it overwrites each grant exactly as given, so it can remove
download, clear an expiry or reinstate revoked access. Replace is two-step:
the first call returns a preview and a confirm_token, and the repeat with the
token applies it, provided no grant on the selection changed in between.
- Scope:
admin. - Inputs:
dataroom_id,file_ids(up to 200),grants(all required);mode;confirm_token. - Output:
{ success: true, mode, total_grants, left_revoked_user_ids }. - A file id that is not in the room, or that you cannot see, refuses the whole request with
NOT_FOUND. - Every file must be in the room and visible to you, and every grantee must already be in the room. If a folder deny would cancel any grant, the whole request is refused before any file is written.
- If a grantee's access was revoked, an
adddoes not reinstate it, and the grantee is listed inleft_revoked_user_ids.
dataroom_bulk_revoke_file_permissions
Revoke the given users' direct grants on many files at once. Folder grants and room access are untouched.
- Scope:
admin. - Inputs:
dataroom_id,file_ids(up to 200),user_ids(all required). - Output:
{ success: true, revoked_count }. - A file id that is not in the room, or that you cannot see, refuses the whole request with
NOT_FOUND.
dataroom_get_watermark_settings
Read the room's download-watermark modes, for single-file and bulk downloads:
two_layer (the downloader's identity plus a per-download IP and date pass), or
static (identity only). Read-only: change them in the Waafir settings.
- Scope:
read, and the token owner must be an organization admin on the deal team. - Inputs:
dataroom_id(required). - Output:
{ dataroom_id, single, bulk, stored: { single, bulk } }. Anullinstoredmeans the room never set it, so the default applies.
dataroom_archive
Archive a data room, so it leaves the room lists. Two-step: the first call
changes nothing and returns a preview (the room's name and how many files,
folders, people with access and active share links it has) and a
confirm_token. Repeat the call with the token to archive.
- Scope:
admin, and the token owner must be an organization owner or admin. - Inputs:
dataroom_id(required);confirm_token. - Output:
{ success: true, dataroom_id, name, archived: true, restore_with: 'dataroom_restore' }. - Archiving does not revoke anyone's access or grants, and nothing is
deleted. The room leaves the lists, and room-level reads (
get_dataroom,list_files,list_folders, search, Q&A, AI questions) answerNOT_FOUNDuntil it is restored. A link straight to one of its files still opens it.dataroom_restorebrings the room back, so keep thedataroom_id. The last active data room cannot be archived (CONFLICT). There is no tool that deletes a data room.
dataroom_restore
Restore a data room your organization archived. It returns to the room lists, and everything archiving hid comes back with it: AI search, digests, investor updates, Q&A and the room's add-ons. Folders, files and access are as they were, because archiving changed none of them. One call, no confirm step.
- Scope:
admin, and the token owner must be an organization owner or admin. - Inputs:
dataroom_id(required): the iddataroom_archivereturned. - Output:
{ success: true, dataroom_id, name, archived: false }. - A room that is not archived is refused (
CONFLICT, codeNOT_ARCHIVED). A room archived by Waafir support, or with its organization, is refused (CONFLICT, codeSUPPORT_RESTORE_ONLY): only support can restore it. - Refused while the subscription is inactive or the team is over its seat limit.
dataroom_rename
Rename a data room.
- Scope:
write, and the token owner must be on the deal team. - Inputs:
dataroom_id,name(both required). The name is trimmed and must be 1 to 100 characters. - Output:
{ success: true, dataroom_id, name }. - The audit trail records the old and the new name.
Team tools
The organization's team is org-wide, so a token limited to specific data rooms
is refused (FORBIDDEN, code PAT_ROOM_SCOPED).
dataroom_team_list_members
List the organization's active members. Pending invites are not included.
- Scope:
read, and the token owner must be on the deal team. - Inputs: none.
- Output:
{ members: [{ membership_id, user_id, email, name, role, last_active_at }] }.roleis one ofowner,adminormember.
The writes below need an admin-scope token whose owner is an organization
owner or admin. The four marked two-step return a preview and a
confirm_token on the first call, and act only when repeated with it.
dataroom_team_invite_member
Invite someone by email. Two-step; confirming sends the invitation email.
- Scope:
admin, plus the Send to people outside your organization grant. - Inputs:
email,role(owner,adminormember) (required);confirm_token. - Output:
{ membership_id, email, role, status: "pending" }. Never the invite link. - Only an owner can invite an owner. The seat limit and the daily invite limits apply.
dataroom_team_change_member_role
Change an active member's role. Two-step; the preview shows the old and new role.
- Scope:
admin. - Inputs:
membership_id,role(required);confirm_token. - Output:
{ success: true, membership_id, old_role, role }. - Only an owner can change an owner's role or promote to owner. You cannot change your own role, and the last owner cannot be demoted.
dataroom_team_remove_member
Remove a member, or revoke a pending invitation. Two-step; the preview shows how many of the member's file and folder grants and share links end.
- Scope:
admin. - Inputs:
membership_id(required);confirm_token. - Output:
{ success: true, membership_id, action, file_grants_ended?, folder_grants_ended?, share_links_deactivated? }. - Removal ends their grants in this organization and deactivates the share links they created; denies stay. Only an owner can remove an owner.
dataroom_team_resend_invite
Send a pending invitation again with a fresh link; the old link stops working. Two-step; confirming sends the invitation email.
- Scope:
admin, plus the Send to people outside your organization grant. - Inputs:
membership_id(required);confirm_token. - Output: the preview (
membership_id,email,role) on the first call;{ success: true, membership_id }once confirmed. - Only a pending invitation can be resent: any other membership is refused at the preview, with no token. The daily invite limits are charged when you confirm.
Investor and NDA tools
Tools over your investor roster, your organization's NDA and your investor firms' NDAs. Each one checks the token owner's current role in your organization on every call, so a person who has since been demoted, or a token capped below the role the tool needs, is refused.
Tools that read across the whole organization need a token that is not limited to particular data rooms. The roster includes engagement facts (when someone last opened the room, how many invitation emails went out, when they accepted) only for a token created with Read engagement analytics turned on. It never includes NDA waiver links or user ids.
Inviting an investor, removing or restoring their access, changing their
permissions, and attaching or revoking a firm NDA each take two steps. The
first call changes nothing: it returns a preview of exactly what will happen and
a confirm_token. Your assistant shows you the preview, and only once you agree
repeats the call with identical arguments plus that confirm_token. A token
works once and expires after a few minutes. If anything the preview showed has
changed in between, the second call is refused and your assistant asks again.
dataroom_list_investors
List the investors invited to your organization, or to one data room.
- Scope:
read. Role: owner or admin. - Inputs:
dataroom_id(optional; required for a token limited to particular data rooms);status(optional:pending,accepted,revokedoraccess_requested). - Output:
{ investors: [{ id, email, display_name, role, status, require_nda, nda, investor_org, can_view_monitoring, can_view_updates, expires_at, invited_at }] }. Theidis the invite id other investor tools take. With Read engagement analytics, each row also hasengagement: { last_seen_at, send_count, last_sent_at, accepted_at }.
dataroom_get_nda
Read your organization's NDA: the current version's title, text and clauses,
and the version history. Returns current: null when the organization has no
NDA yet; reading it never creates one.
- Scope:
read. Role: a deal-team member. - Inputs: none.
- Output:
{ current, versions, clauses, tally }.tally(signed, waived and pending counts) isnullfor a token limited to particular data rooms.
dataroom_list_firm_ndas
List your organization's investor firms and whether each has a live firm NDA.
- Scope:
read. Role: a deal-team member. Needs a token not limited to particular data rooms. - Inputs: none.
- Output:
{ firms: [{ id, name, has_live_nda }] }.
dataroom_get_firm_nda
Read one firm's NDA with your organization, and the completed e-signature envelopes you could attach as its NDA.
- Scope:
read. Role: a deal-team member. Needs a token not limited to particular data rooms. - Inputs:
investor_org_id(required). - Output:
{ agreement, attachable_envelopes }.agreementisnullwhen the firm has none.
dataroom_extend_investor_access
Extend an accepted invite's access by your organization's guest link expiry (7 days unless you changed it), and keep the investor's current session alive that long. Only for an invite to a data room.
- Scope:
write. Role: a deal-team member. Needs: Send to people outside your organization. - Inputs:
invite_id(required). - Output:
{ invite_id, expires_at, expiry_hours }. An invite that is not accepted is refused with a conflict.
dataroom_invite_investor
Invite an investor to a data room by email, re-invite them with a new role or
NDA requirement, or resend their invite. They get an email with a personal link
unless notify is false. The preview says whether this creates, updates or
keeps the invite, which of your arguments will be ignored (a resend keeps the
stored role and NDA), the status change (a removed investor is restored), any
NDA waiver, and whether an email goes out. Previewing spends none of the daily
invite limit; sending does.
- Scope:
admin. Role: owner or admin, on the data room's deal team. Needs: Send to people outside your organization. - Inputs:
email,dataroom_id(required);role(viewerordownloader);require_nda;resend;notify;confirm_token. - Output: the preview and
confirm_tokenon the first call; then{ status: 'sent' | 'added', invite_id, link_expires_at }.
dataroom_revoke_investor_access
Remove an investor's access. Their current session and their file and folder grants in the invite's data room end. Reinstating later restores room access, not file grants.
- Scope:
admin. Role: owner or admin. - Inputs:
invite_id(required);confirm_token. - Output: the preview and
confirm_token; then{ status: 'revoked', invite_id }.
dataroom_reinstate_investor_access
Reinstate a removed investor, or approve an access request. Room access only.
- Scope:
admin. Role: owner or admin. Needs: Send to people outside your organization. - Inputs:
invite_id(required);confirm_token. - Output: the preview and
confirm_token; then{ status: 'reinstated', invite_id }.
dataroom_set_investor_permissions
Change an invite's role, NDA requirement, and monitoring and updates access. The preview lists each change. Turning the NDA off records a waiver in your name, with an optional reason and link.
- Scope:
admin. Role: owner or admin. - Inputs:
invite_id(required); at least one ofrole,require_nda,can_view_monitoring,can_view_updates;nda_waiver_reason;nda_waiver_url;confirm_token. - Output: the preview and
confirm_token; then{ status: 'updated', invite_id, changes }.
dataroom_attach_firm_nda
Record a completed e-signature envelope as an investor firm's executed NDA, with its execution date and term. Any envelope you can see may be attached.
- Scope:
admin. Role: owner or admin. Needs a token not limited to particular data rooms. - Inputs:
investor_org_id,envelope_id,executed_at,term(required);confirm_token. - Output: the preview and
confirm_token; then{ status: 'attached', agreement }.
dataroom_revoke_firm_nda
Revoke an investor firm's NDA. An NDA started on Waafir that is still out for signature has its envelope voided too.
- Scope:
admin. Role: owner or admin. Needs a token not limited to particular data rooms. - Inputs:
investor_org_id(required);reason;confirm_token. - Output: the preview and
confirm_token; then{ status: 'revoked', investor_org_id, envelope_voided }.
Investor firm tools
Tools over your investor firms: the groups your investors belong to, as on the Investors page. Each needs an owner or admin role in your organization, checked on every call, and a token that is not limited to particular data rooms. An unknown firm, another organization's firm and a firm that was merged away all get the same not-found answer.
Putting someone in a firm and merging two firms each take two steps, like the investor tools above. Both can move a person out of their current firm. If the firm they join has an executed NDA, it covers them from then on, and their pending invites that ask for an NDA stop asking. When the preview lists such an invite, the token also needs Send to people outside your organization. Removing someone from a firm is not available here.
dataroom_list_investor_firms
List your organization's investor firms with their domain, member count, the deal team's private note and the firm's NDA status.
- Scope:
read. Role: owner or admin. - Inputs: none.
- Output:
{ investor_firms: [{ id, name, canonical_domain, member_count, deal_team_note, firm_nda }] }.deal_team_noteis marked as text a colleague wrote.
dataroom_create_investor_firm
Create an investor firm. With member_emails and canonical_domain, each
listed person on that domain who is already invited to one of your data rooms
and is in no firm yet becomes a member. Nobody is moved out of another firm.
- Scope:
admin. Role: owner or admin. - Inputs:
name(required);canonical_domain;member_emails(up to 500, needscanonical_domain). - Output:
{ status: 'created', investor_firm: { id, name }, added }.
dataroom_rename_investor_firm
Rename an investor firm.
- Scope:
admin. Role: owner or admin. - Inputs:
investor_org_id,name(required). - Output:
{ status: 'renamed' | 'unchanged', investor_org_id, name }.
dataroom_set_investor_firm_note
Set or clear the deal team's private note on a firm. Investors never see it.
- Scope:
admin. Role: owner or admin. - Inputs:
investor_org_id,note(required; an empty string clears it). - Output:
{ status: 'set' | 'cleared' | 'unchanged', investor_org_id, cleared }.
dataroom_assign_investor_to_firm
Put an investor, by email, into a firm, moving them out of their current firm if they have one. The preview names the firm they leave and the pending invites whose NDA step the firm's NDA would now meet. Someone already in the firm is left as they are, with no confirmation step.
- Scope:
admin. Role: owner or admin. Needs: Send to people outside your organization when the preview lists an invite. - Inputs:
investor_org_id,email(required);confirm_token. - Output: the preview and
confirm_token; then{ status: 'assigned', investor_org_id, email, moved_from, coverage_started }.
dataroom_merge_investor_firms
Merge one firm into another. Every member of the source firm moves to the target firm, and the source firm leaves your firm list. You cannot undo a merge from your assistant or the app. The preview lists the people moving and the pending invites whose NDA step the target's NDA would now meet.
- Scope:
admin. Role: owner or admin. Needs: Send to people outside your organization when the preview lists an invite. - Inputs:
source_investor_org_id,target_investor_org_id(required, and different);confirm_token. - Output: the preview and
confirm_token; then{ status: 'merged', source_investor_org_id, target_investor_org_id, moved_count, coverage_started_count }.
Engagement tools
Read-only tools over who read what, when and for how long. This is behavioural
data about named people, so every one needs a token created with Read
engagement analytics turned on, and a deal-team role. Each counts only
documents the token owner can read themselves. The room tools take the same
filter as the engagement page: range (or from and to), people,
firm_ids, folder_id and tz.
dataroom_get_activity_trail
Your organization's access log, newest first. Needs a token not limited to particular data rooms.
- Scope:
read. Inputs:counterparty,since,cursor,limit.
dataroom_get_room_engagement
One data room's scoreboard, heatmap and timeline, with its deal rollups.
- Scope:
read. Inputs:dataroom_id(required) and the filter.
dataroom_get_engagement_scores
Each investor's engagement score in one data room, ranked.
- Scope:
read. Inputs:dataroom_id(required) and the filter.
dataroom_get_investor_engagement
One investor's visits and documents opened in one data room. The view is recorded in your audit log, as it is in Waafir.
- Scope:
read. Inputs:dataroom_id,email(required) and the filter.
dataroom_get_document_engagement
Per-document reading by counterparty across your organization, and with
file_id, that document's time spent per page. Needs a token not limited to particular data rooms.
- Scope:
read. Inputs:counterparty,file_id,weeks,cursor,limit,page_range.
dataroom_get_firm_rollups
Weekly activity per counterparty across your organization. Needs a token not limited to particular data rooms.
- Scope:
read. Inputs:counterparty,weeks,cursor,limit.
Q&A tools
Two read-only tools over the investor Q&A threads in a data room. A deal-team
token cannot post a question here; an investor's own agent asks with
dataroom_ask_question (see Investor agent tools).
What a call returns depends on who owns the token:
- a deal-team member sees every thread in the data room, including the asker's email address;
- an investor sees only the questions they asked themselves, and no email addresses at all.
Attached documents come back as id and name only — never content, never a download link — and the name of a document the caller may not see is withheld. Use the document tools for content; they apply their own access checks. Org-wide Company Q&A questions, which are not attached to a data room, are never returned by either tool.
dataroom_list_questions
Area endpoint name: list_questions
List the Q&A threads in one authorized data room, newest first, each with its answers.
- Scope:
read. - Inputs:
dataroom_id(required);status(optional —open,answeredorclosed);file_id(optional — only questions asked about that document);limit(optional, 1–100, default 25);offset(optional, default 0). - Output:
{ questions, pagination }. Page withoffsetwhilepagination.has_moreistrue.
dataroom_get_question
Area endpoint name: get_question
Get one Q&A thread by id, with all of its answers.
- Scope:
read. - Inputs:
dataroom_id(required);question_id(required). - Output:
{ question }. - A question in another data room or another organization — or, for an
investor, one asked by somebody else — reports
NOT_FOUND. The tool never confirms that such an id exists.
Each question carries { id, dataroom_id, title, body, question_type, status, asked_by, file_id, file_name, created_at, updated_at, responses }, plus
asker_email only where the caller is entitled to it — for an investor the
key is absent from the payload rather than present and null. Each entry in
responses is { id, body, responded_by, is_ai_draft, created_at, updated_at, attachments }.
dataroom_answer_question (write)
Answer an investor's question. There is no draft: the investor sees the answer at once, and the asker is emailed if their settings allow. Neither can be recalled.
- Scope:
write. Deal-team members of the data room. - Grant: the token needs Send to people outside your organization.
- Inputs:
dataroom_id,question_id,body(all required);confirm_token. - Two steps. Without
confirm_tokennothing is posted and you get a preview (the question, how many answers it has, whether the asker will be emailed) plus a token. Call again with the same arguments and the token to post. A new answer or a closed thread in between makes the call fail, and you preview again.
dataroom_close_question (write)
Close one Q&A thread. Its asker, or an org admin or manager, may close it.
- Scope:
write. - Inputs:
dataroom_id,question_id(both required). - Output:
{ question_id, outcome, kb_draft, kb_draft_skip_reason }. - When the org pays for AI and has it on, closing a thread that has answers
also queues a knowledge-base draft. Otherwise
kb_draftisskippedand the reason says why. Nothing is sent to the investor.
dataroom_bulk_close_questions (write)
Close up to 100 threads of one data room. Each is judged on its own.
- Scope:
write. - Inputs:
dataroom_id,question_ids(both required). - Output:
{ requested, closed, results }. Each result'soutcomeisclosed,not_found,forbiddenoralready_closed.
dataroom_edit_question (write)
Edit a question's title and/or body. Admins and managers only.
- Scope:
write. - Inputs:
dataroom_id,question_id(both required);title,body(at least one). - Output:
{ question_id, title, body }.
dataroom_edit_answer (write)
Edit the text of an answer. Admins and managers only. The investor sees the edit at once, as in Waafir; no new email is sent.
- Scope:
write. - Inputs:
dataroom_id,question_id,response_id,body(all required). - Output:
{ response_id, question_id, body }.
dataroom_delete_question (write)
Delete a Q&A thread. Investors stop seeing it and its answers. Admins and managers only.
- Scope:
write. - Inputs:
dataroom_id,question_id(both required);confirm_token. - Two steps. Without
confirm_tokennothing is deleted and you get a preview plus a token. Call again with the same arguments and the token to delete. A token works once and expires after a few minutes.
dataroom_delete_answer (write)
Delete one answer on a thread. The investor stops seeing it. Admins and managers only.
- Scope:
write. - Inputs:
dataroom_id,question_id,response_id(all required);confirm_token. - Two steps, as for
dataroom_delete_question.
dataroom_publish_kb_article (write)
Publish a knowledge-base article, for example a draft made from a closed thread. Investors who can see the data room can then read it. Admins and managers only.
- Scope:
write. - Inputs:
dataroom_id,article_id(both required);confirm_token. - Two steps, as for
dataroom_delete_question.
Investor update tools
These mirror the investor-update editor in Waafir, with the same role checks. Every one needs the Investor Materials add-on on the data room. None of them sends anything to investors: publishing is done in Waafir.
dataroom_list_updates
List a data room's investor updates in every status, newest change first.
- Scope:
read. Deal-team members of the data room. - Inputs:
dataroom_id(required). - Output:
{ updates }, each{ id, title, period_label, status, version, published_at, updated_at }.
dataroom_create_update (write)
Create a draft update from portfolios and/or files (at least one).
- Scope:
write. Deal-team members of the data room. - Inputs:
dataroom_id,period_label(both required);title,period_start,period_end,tone_notes,portfolio_ids,file_ids. - Output:
{ update_id, status, portfolio_count, file_count }. Files and portfolios not in your organization are left out and not counted.
dataroom_get_update
Read one update as the editor shows it.
- Scope:
read. Owners and admins. - Inputs:
dataroom_id,update_id(both required). - Output:
{ update_id, status, document, latest_generation }.documentis the latest generated draft with your edits applied, or null before the first generation.
dataroom_get_update_generation
The status of a generation run.
- Scope:
read. Owners and admins. - Inputs:
dataroom_id,update_id,generation_id(all required). - Output:
{ generation_id, status, error_code }. A failed run gives its code, never the stored message.
dataroom_generate_update (write)
Start an AI generation of a draft or in-review update.
- Scope:
write, plus Read document content on the token: the run reads the selected files in full, guided by the update's tone notes. Owners and admins. - Inputs:
dataroom_id,update_id(both required). - Output:
{ generation_id, queued }. Polldataroom_get_update_generation. - Needs a paid plan and AI features on, and counts against the daily AI limit. It shares the editor's limit of 5 generations a minute.
dataroom_edit_update_draft (write)
Save your edits over a draft's generated content, as the editor does.
- Scope:
write. Owners and admins. - Inputs:
dataroom_id,update_id,overrides(all required).overridestakesnarrative_sections,chart_placementsandcitations. - Output:
{ update_id, status, document }. Only a draft can be edited.
dataroom_submit_update_for_review (write)
Move a draft update to in_review.
- Scope:
write. Admins and managers. - Inputs:
dataroom_id,update_id(both required). - Output:
{ update_id, status }. - The update needs generated content and no generation running.
dataroom_publish_update (write)
Publish an in-review update. The data room's investors can see it at once and each is emailed, which cannot be recalled.
- Scope:
write. Admins and managers. - Grant: the token needs Send to people outside your organization.
- Inputs:
dataroom_id,update_id(both required);confirm_token. - Two steps. Without
confirm_tokennothing is published and you get a preview (the update and how many investors will be emailed) plus a token. Call again with the same arguments and the token to publish. If the update or its investor list changed in between, the call is refused and you preview again.
dataroom_republish_update (write)
Copy a published update into a new draft version that you then edit, review and publish. The published version stays live until then.
- Scope:
write. Admins and managers. - Inputs:
dataroom_id,update_id(both required). - Output:
{ update_id, status, version }of the new draft.
Market Intelligence tools
Read-only. They need the Market Intelligence add-on (a preview works, with its limits), a token that is not limited to particular data rooms, and a deal-team member as its owner.
mi_get_subject
Your organization's Market Intelligence company.
- Scope:
read. - Inputs: none.
- Output:
{ subject, access }.subjectis{ id, name }, or null until someone has opened Market Intelligence in Waafir.
mi_get_profile
A company's profile: the confirmed version and the working draft.
- Scope:
read. - Inputs:
subject_id(required). - Output:
{ subject, confirmed, draft, file_names }. Each field isstated(with thefile_idandpageit was read from, or a public web page and its quote),entered,not_applicable, or null. - Quotes from data room documents are not returned. Read the file with the document tools if you need them.
mi_list_matches
The investors ranked for the company's profile, best first.
- Scope:
read. - Inputs:
subject_id(required). - Output:
{ profile_version, preliminary, similarity, live, country, caveat, total, matches }. Each match is{ entity_id, name, score, penalties, reasons, contacts_available, on_roster, addable }. - A preview shows the top 3. Similarity ranking is used only when your plan
pays for AI, AI is on and the daily AI limit allows;
similaritysays which. - Contact details are never returned. It shares the Waafir page's limit of 30 a minute.
AI tools
These tools do the AI work on Waafir's side and hand your AI client the result: an answer with citations, a summary, a review, a proposed folder plan or a draft. Your client never has to download the documents to get there. They need the AI add-on, count against your organization's daily AI budget, and pause when your administrators pause AI. Each one is limited per person to the same rate as the matching button in the app, and records what it returned in the activity log.
An answer can repeat what a document says when your client writes the
question, so dataroom_ask, dataroom_draft_answer and
dataroom_compare_files need Read document content on the token, as
dataroom_get_file_text does. Without it they are not listed, and a call is
refused with GRANT_REQUIRED. The other AI tools run a fixed task over the
room and work without it. Every result marks the fields that hold AI output in
untrusted_content (see Untrusted text in results).
Only documents the token's owner can open are ever used or cited. The tools work in data rooms of the token's own organization.
dataroom_ask
Ask a question about one data room and get a grounded answer.
- Scope:
read, plus Read document content on the token. Any member of the data room. - Inputs:
dataroom_id(required);question(required). - Output:
{ dataroom_id, answer, citations }. Up to 10 citations, each{ source_type, id, title, page? }. No document text is returned, and no chat conversation is saved.
dataroom_summarise_file
Get the AI summary and key points of one file.
- Scope:
read. Deal team, with download access to the file. - Inputs:
dataroom_id(required);file_id(required). - Output:
{ file_id, file_name, status: "ready", summary, key_points }, orstatus: "queued"when the file has no summary yet. Summarising then starts in the background, as with the Summarise button; call again later.
dataroom_list_facts
List the verified facts and key terms extracted from a data room's documents.
- Scope:
read. Deal team. - Inputs:
dataroom_id(required);file_id(optional);types(optional);limit(optional, 1–200, default 50);cursor(optional). - Output:
{ dataroom_id, facts, has_more, next_cursor }. Each fact is{ id, file_id, file_name, fact_type, value, page, confidence, created_at }. Whilehas_moreistrue, passnext_cursorback ascursorfor the next page. - Without Read document content on the token, each fact's
valuekeeps at most 20 words (160 characters), counted over the whole value, and the fact carriesvalue_truncated.
dataroom_compare_files
Compare two files in one data room and get the material differences.
- Scope:
read, plus Read document content on the token. Deal team, with download access to both files. - Inputs:
dataroom_id(required);file_id_a(required);file_id_b(required). - Output:
{ dataroom_id, file_a, file_b, differences }. Each file entry is{ id, name, truncated }: a very long document is compared on its first part, andtruncatedsays so. No document text is returned. - A file of a type with no text to extract is refused with a
400, and a stored file over 50 MB with a413(FILE_TOO_LARGE), before either is fetched, when the file's text has not already been extracted.
dataroom_review
Run the AI readiness review of a data room.
- Scope:
read. Deal team. - Inputs:
dataroom_id(required);force_refresh(optional). - Output:
{ dataroom_id, cached, readinessScore, presentDocs, missingDocs, flaggedForRedaction, flaggedForRename, flaggedOutOfDate, suggestions }. A current stored review comes back without a new AI run unlessforce_refreshistrue.
dataroom_propose_organise (write)
Step 1 of 2: propose a folder structure for a data room. Nothing moves.
- Scope:
write. Owner or admin. - Inputs:
dataroom_id(required). - Output:
{ dataroom_id, suggestion_id, applied: false, proposed_folders, unchanged_file_ids, files, total_files, accounted_for }.
dataroom_apply_organise (write)
Step 2 of 2: apply a proposal by its suggestion_id. Exactly the stored
proposal is applied, once; it cannot be edited on the way. Files the token's
owner may not move are skipped and counted. To undo, use the Organise panel in
the app.
- Scope:
write. Owner or admin. - Inputs:
dataroom_id(required);suggestion_id(required). - Output:
{ dataroom_id, suggestion_id, folders_created, files_moved, files_skipped }.
dataroom_draft_answer
Draft an answer to an investor question from the data room's documents.
- Scope:
read, plus Read document content on the token. Owner or admin. - Inputs:
question_id(required). - Output:
{ question_id, draft, is_draft: true, sources }. The draft is returned to you only: nothing is saved, sent or published. A person publishes the answer in the app. Organization-level questions are drafted in the app.
Readiness and knowledge-base tools
Read-only. Readiness returns the score and the counts behind it, never the
review's text; run dataroom_review for that.
dataroom_get_readiness_score
One data room's readiness score.
- Scope:
read, and the token owner must be an organization owner or admin. - Inputs:
dataroom_id(required). - Output:
{ dataroom_id, score, reviewed, questions_total, questions_answered, kb_articles, files_uploaded, present_categories, missing_categories }.scoreis 0–100, ornullwhen there is no AI review you can be shown.
dataroom_get_readiness_rollup
Readiness across the organization's data rooms, as the Dashboard shows it.
- Scope:
read, and the token owner must be on the deal team. A token limited to specific data rooms is refused. - Inputs: none.
- Output:
{ rooms: [{ id, name, investors, reading, updated, status, readinessPct, tone, reviewedAt, presentCount, missingCount, categories }] }. Category document counts include only documents the token owner may read.
dataroom_list_kb_articles
List a room's knowledge-base articles, its own and the organization-wide ones.
- Scope:
read. - Inputs:
dataroom_id(required);category;include_drafts(deal team only). - Output:
{ articles: [{ id, title, category, published }] }. - Someone admitted to the room only through a shared document sees no articles. An investor token sees published articles only.
dataroom_get_kb_article
Read one article.
- Scope:
read. - Inputs:
dataroom_id,article_id(required). - Output:
{ id, title, category, body, published, updated_at }. A draft reads as not found unless the token owner is on the deal team.
Investor agent tools
Tools for an investor's own agent: they work only with an investor access token, and a deal-team token neither lists nor calls them.
An investor token can also call these shared tools. Each one answers only with what the investor sees in the data room.
- Rooms and files:
dataroom_list,dataroom_get,dataroom_list_folders,dataroom_list_files,dataroom_get_file_metadataanddataroom_search. - Snapshots:
dataroom_list_snapshotsanddataroom_get_snapshot, for snapshots the investor views. - Downloads:
dataroom_get_file_download_url. The copy is always watermarked with the investor's identity, as their browser download is. - Q&A and articles:
dataroom_list_questions,dataroom_get_question,dataroom_list_kb_articlesanddataroom_get_kb_article. These return the investor's own questions and published articles. - AI:
dataroom_ask,dataroom_compare_files,translate_text,translate_fileandtranslate_file_status. An investor's translations are private to them.
An investor token is refused dataroom_get_file_text: plain text cannot carry
a watermark, so the agent uses the watermarked download instead.
Who pays for AI. Each AI call costs allowance units. The room's
organization pays up to a monthly allowance per investor per room (UTC months).
The deal team sets the allowance per room, and the default is 200 units. Past
the allowance, an organization the investor is a member of pays, if it has an
active subscription and AI turned on (organizations the investor owns first,
then the oldest). With neither, the call is refused before any model work with QUOTA_EXCEEDED (HTTP
402). The message gives the date the allowance resets.
Rate limit. An investor's agents share one limit of 60 calls a minute, across all of that investor's tokens and connections. Past it, the call is refused (HTTP 429) with the wait before retrying.
Each tool checks what the data room checks for the investor: access not expired or revoked, the NDA accepted, the deal team's per-room agent switch on, and, for a file, the investor's read access to it. A file they cannot read reports not found, and its name is never returned. Accepting an NDA stays in the data room.
dataroom_ask_question (write)
Ask the deal team a question in one data room. Only the investor and the deal team see it; the deal team is notified.
- Scope:
write. - Inputs:
dataroom_id,title(at least 5 characters) (required);description,category,file_id(a file the investor can read). - Output:
{ question_id, dataroom_id, file_id, status }.
dataroom_list_file_comments
The comments the investor can see on one file: their own, with the replies.
- Scope:
read. - Inputs:
dataroom_id,file_id(required). - Output:
{ comments: [{ id, content, page, resolved, created_at, author, replies }] }.
dataroom_add_file_comment (write)
Comment on a file the investor can read. Visible to the investor and the deal team, never to other investors.
- Scope:
write. - Inputs:
dataroom_id,file_id,content(required);page. - Output:
{ comment_id, file_id, created_at }.
dataroom_reply_file_comment (write)
Reply to a comment the investor can see. A comment on another file reports not found.
- Scope:
write. - Inputs:
dataroom_id,file_id,comment_id,content(required). - Output:
{ reply_id, comment_id, created_at }.
dataroom_get_my_nda_status
The investor's NDA standing in each room their agent can reach.
- Scope:
read. - Inputs: none.
- Output:
{ rooms: [{ dataroom_id, dataroom_name, basis, accepted, accepted_at, version, accept_step }] }.basisisorg_standard,firm_executed,firm_in_progress,waivedornot_required;accept_stepisclickthrough,heldornone.
dataroom_list_my_notifications
The investor's notifications from the token's organization: invitations, answers to their questions and changes to their folder access.
- Scope:
read. - Inputs:
unread_only;limit(1–50, default 20);offset. - Output:
{ notifications: [{ id, type, title, body, resource_type, resource_id, read, created_at }], unread_count, pagination }.
dataroom_mark_notifications_read (write)
Mark notifications read: the listed ids, or all with all: true.
- Scope:
write. - Inputs:
ids(1–100) orall. - Output:
{ marked }, how many changed.
dataroom_list_published_updates
The investor updates published to the investor in one room.
- Scope:
read. - Inputs:
dataroom_id(required). - Output:
{ updates: [{ id, title, period_label, version, published_at, unread }] }. - Refused when the deal team has turned updates off for the investor, and when the room does not have the Investor Materials add-on.
dataroom_get_published_update
Read one published update.
- Scope:
read. - Inputs:
dataroom_id,update_id(required). - Output:
{ update_id, title, period_label, version, published_at, document }.
Snapshot tools
A snapshot is a frozen copy of a room's folders and file versions, kept for an
audit trail. No tool returns file content or a download link; downloads stay in
the app.
dataroom_get_snapshot and the viewer tools refuse a token limited to specific
data rooms, as their app routes do.
dataroom_list_snapshots
- Scope:
read. The deal team sees every snapshot; anyone else sees only the ones they were added to as a viewer. - Inputs:
dataroom_id(required). - Output:
{ snapshots: [{ id, name, purpose, snapshot_at, file_count, folder_count, viewer_count? }] }.
dataroom_get_snapshot
- Scope:
read, and access to the snapshot. - Inputs:
snapshot_id(required). - Output:
{ snapshot, folders: [{ folder_id, parent_folder_id, name }], files: [{ file_id, folder_id, name, size_bytes, mime_type, can_download }], can_manage_viewers }. Files and folders the token owner may not see today are left out, and the counts match what is listed.
dataroom_create_snapshot
Freeze the room as it is now. Nothing in the room changes.
- Scope:
write, deal team only. - Inputs:
dataroom_id,name(required);purpose,notes. - Output:
{ snapshot: { id, name, purpose, snapshot_at, file_count, folder_count, viewer_count } }.
dataroom_list_snapshot_viewers
- Scope:
read, deal team only. - Inputs:
snapshot_id(required). - Output:
{ viewers: [{ viewer_id, email, granted_at, revoked_at, active }] }.
dataroom_grant_snapshot_viewer
Let someone open a snapshot by their email address. Two-step: the preview names the snapshot and the address. No email is sent: tell them yourself.
- Scope:
write, deal team only, plus the Send to people outside your organization grant. - Inputs:
snapshot_id,email(required);confirm_token. - Output:
{ viewer_id, email, active }.
dataroom_revoke_snapshot_viewer
Two-step.
- Scope:
write, deal team only. - Inputs:
snapshot_id,viewer_id(required);confirm_token. - Output:
{ success: true, viewer_id }.
Share-link tools
A share link lets whoever holds it into a room or a document, so creating one always takes two steps and a token with the Send to people outside your organization grant. No tool lists a link's URL.
dataroom_list_share_links
- Scope:
read, and the token owner must be an organization owner or admin. - Inputs:
dataroom_id(required);file_idfor one document's live links. - Output:
{ links: [{ id, kind, file_id?, mode, active, expires_at, has_password, require_nda, domain_allow_list, created_at, admitted_count? }] }. - Per-investor links are not listed; see the investor tools.
dataroom_create_share_link
Two-step. The preview states what is shared, who can get in, the NDA rule, when it expires and how downloads are watermarked. The confirmation must repeat the same arguments; if the investor list changes in between, confirm again.
- Scope:
write, organization owner or admin, plus the Send to people outside your organization grant. - Inputs:
dataroom_id,mode(openorrestricted) (required);file_id;expires_in_hours;domain_allow_list;require_nda(defaulttrue);confirm_token. - Output:
{ id, url, mode, active, expires_at, require_nda, file_id }. - A restricted document cannot be shared by link. There is no password option.
dataroom_revoke_share_link
Two-step. Everyone using the link loses access immediately.
- Scope:
write, organization owner or admin. - Inputs:
dataroom_id,link_id(required);confirm_token. - Output:
{ success: true, link_id, status: "revoked" }.
waafir-translate reference
Reference for the waafir-translate MCP server — translate short text synchronously with translate_text, or translate a whole document in a data room with translate_file and translate_file_status.
waafir-esign reference
Reference for the waafir-esign MCP server — every tool to create e-signature envelopes over your organization's files, collect legally-valid AES (PAdES) signatures from your AI workflows, track signing status, correct or recall an envelope, and download signed documents. Metered against your plan's monthly envelope quota.