waafir-redact reference
The waafir-redact server exposes Waafir's redaction to a connected AI
client, in two shapes:
redact_text— a block of text, redacted inline and returned immediately.redact_file/redact_file_status— a whole document in a data room, analyzed for PII and prepared for human review.
Applying a redaction to a document is deliberately not available over MCP. Applying changes what every other party sees when they open the file, so a person must approve it in the AI Redaction review screen. No tool on this server changes what any reader sees.
Connection: https://app.waafir.io/api/mcp/waafir, or the area server
https://app.waafir.io/api/mcp/waafir-redact; the tool names are the same on both — see
Setup. redact_text needs only a read-scope
(or higher) PAT — it touches
no data room, so there is no per-file or per-room check to clear (it still
needs a paid plan and AI enabled, like every tool that runs a model).
Both document tools are deal-team only. redact_file needs write scope
and deal-team membership of the data room — and so does
redact_file_status, even though it only reads: a read-scope PAT is
necessary but not sufficient, because the existence of a redaction job is
itself a fact about the document. A caller outside the deal team gets
FORBIDDEN, whatever scope the token carries. Token scope is the token's
ceiling; deal-team membership is the person's — both must clear.
redact_text
Redact PII from a block of text. The text is processed by your organization's redaction agent, and the tool returns the redacted text together with the list of entities it identified. Optionally narrow the result to specific entity types.
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
text | string | yes | The text to redact (must be non-empty). |
types | string[] | no | Restrict redaction to these PII types. Omit to redact everything detected. |
Output
{ redacted_text, entities, truncated, processed_chars, total_chars, max_chars,
filtered_out_count, unclassified_redacted_count, unclassified_types,
filter_exact }redacted_text— the analyzed text with sensitive spans blacked out.entities— the PII that was removed.typeis the label the redaction model used;canonical_typeis the standard type it maps to, ornullif it could not be classified.truncated/processed_chars/total_chars/max_chars— see Size limit.filtered_out_count/unclassified_redacted_count/unclassified_types/filter_exact— see Filtering by type.
The redaction runs against your organization's own redaction configuration, so results reflect the same agent the product uses. As with everything on this surface, the call acts as the token's owner and is scoped to that organization.
Size limit
Only the first 80,000 characters are analyzed. This has always been the
case; the result now tells you. When truncated is true, the text beyond
processed_chars was never examined — do not treat the response as a
redaction of the whole input. Send the remainder in a follow-up call.
Filtering by type
types accepts only these values:
name, email, phone, ssn, account, address, financial,
confidential, url, username
⚠️ Breaking change (August 2026).
typespreviously accepted any string. It now accepts only the values above, and anything else —"emails","PII","credit-card", or a different capitalization like"EMAIL"— returns a validation error.This replaces a silent failure with a loud one. An unrecognized value used to match nothing, so the tool redacted nothing and returned your original text as
redacted_textinside a successful response. If you passtypes, map your values onto the list above. Calls that omittypesare unaffected.
One entity type is redacted even when you did not ask for it. If the redaction model labels something with a type we cannot recognize, that entity is redacted anyway rather than dropped — we cannot prove it falls outside what you asked for, and leaving PII in the text is the worse mistake. When this happens:
filter_exactisfalse(it istruewhenever the filter applied exactly),unclassified_redacted_countsays how many entities that affected, andunclassified_typeslists the labels involved.
Entities you deliberately filtered out are counted separately, in
filtered_out_count.
Requirements: a paid plan and your organization's AI features enabled (on by default; an organization admin can turn them off in Settings → AI & Integrations). Calls are also refused once your organization reaches its daily AI usage limit, or while Waafir has paused the feature; the error message says which.
redact_file
Analyze a whole document in a data room for PII. This analyzes only — the
document is not changed, and nobody's view of it changes. Analysis is
asynchronous; poll redact_file_status.
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
file_id | string | yes | The file's UUID. |
override_redacted | boolean | no | Re-analyze a document that has already been redacted. Without it, an already-redacted file is refused. |
Output
{ file_id, job_id, status: "analysis_started", applied: false,
review_required: true, review_with, apply_via }There is no auto_apply option, by design — see the note at the top of this
page. Image files are not supported.
Requirements: a write-scope PAT, deal-team membership of the data room,
a paid plan, and your organization's AI features enabled (on by default; an organization admin can turn them off in Settings → AI & Integrations).
A file that is still being checked. If the file is a new upload or version
that Waafir has not finished checking, redact_file and redact_apply answer
UNAVAILABLE with error.reason: "ACTIVATION_PENDING" and the message
This file is still being checked. Try again shortly. Nothing is analyzed or
applied; call again after a short wait.
redact_file_status
Check a document redaction analysis.
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
file_id | string | yes | The file's UUID. |
Output
{ file_id, status, entity_count?, applied: false, apply_via }status— one ofidle,analyzing,applying,review_ready,completed,failed,error.applyingandcompleteddescribe a redaction being applied in the Waafir UI by a person — you cannot reach them from MCP, but you will see them if someone approves the review while you are polling.entity_count— how many PII entities the analysis proposed, once the review is ready.appliedis alwaysfalse: approving and applying the redaction happens in the Waafir UI.
Treat an unrecognized status as "keep polling", not as an error. The
terminal states are held only briefly before the job marker is cleaned up, so a
poller that arrives late sees idle (or a reconstructed review_ready) rather
than the state it was waiting for — and idle means "no job in flight", not
"nothing ever happened". Poll for the state you want, with a deadline, rather
than asserting the value is one of a fixed list.
redact_history
A file's latest redaction analysis, as counts by entity type. The redacted text itself is never returned.
- Scope:
read. Deal-team members, on a file they may read the content of. - Inputs:
file_id(required). - Output:
{ file_id, analysis }.analysisis{ history_id, analysed_at, entities: { total, by_type } }, or null when the file has never been analyzed.
redact_list_terms
A data room's redaction terms: phrases always redacted (always) and phrases
never redacted (never).
- Scope:
read. Deal-team members. - Inputs:
dataroom_id(required). - Output:
{ terms }, each{ id, term, kind, created_at }.
redact_add_term
Add a term to a data room. It applies to the next redaction of a file in the room and changes no file now.
- Scope:
write. Deal-team members, on a paid plan. - Inputs:
dataroom_id,term(both required);kind(alwaysornever, defaultalways). - Output:
{ term }.
redact_remove_term
Remove a term from a data room. It changes no file now; adding the term back undoes it.
- Scope:
write. Deal-team members. - Inputs:
dataroom_id,term_id(both required). - Output:
{ removed, term_id }.
redact_revert
Un-redact a file. Every reader, investors included, is served the original document again at once. The redacted version is kept, so it can be re-applied.
- Scope:
write. Deal-team members, on a file they may edit. - Inputs:
file_id(required);confirm_token. - Two steps. Without
confirm_tokennothing changes and you get a preview plus a token. Call again with the same arguments and the token to revert. - A file that is not redacted is refused (
409). So is one with an analysis or burn running (409): you are told at the preview, so no token is issued for a revert that cannot run, and the check runs again when you confirm.
redact_apply
Apply a file's latest analysis from redact_file, minus any entity types you
exclude, plus the data room's always-redact terms. Every reader, investors
included, is then served the redacted document. redact_revert undoes it.
- Scope:
write. Deal-team members, on a paid plan, on a file whose content they may read. - Inputs:
file_id(required);exclude_types;confirm_token. - Two steps. Without
confirm_tokennothing changes and you get a preview (the targets counted by type, never the text) plus a token. Call again with the same arguments and the token to start the burn. If the analysis, the file, the room's terms or the targets changed in between, the call is refused and you preview again. - With AI turned off for your organization, only the room's saved always-redact terms can be applied, as in Waafir.
Connections
See and revoke the AI assistants connected to Waafir by signing in. Covers what a connection is, how long it lasts, the limit per person, what owners and admins can see and revoke, and how revokes appear in the activity log.
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.