Klarefi

v0.4.0
com.klarefi/mcp Checked 10 hours ago Published 3 days ago

AI intake agent that prepares complete, cited files.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_connector_from_openapi Import connector from OpenAPI

Import a public OpenAPI JSON URL as a Klarefi verification connector. JSON specs only (convert YAML first). The result reports whether the configuration is active or staged for operator approval. Set connection_status to not_connected to import before credentials exist.

ParameterTypeDescription
connector_key *string
openapi_url *string
base_urlstring
connection_statusstring
labelstring

create_connector Create or update connector

Create or update a Klarefi verification connector manifest. The result reports whether the configuration is active or staged for operator approval. Set connection_status to not_connected and omit credentials to add now; upsert with connected and credentials later. Checks remain open until connected.

delete_connector Delete connector

Delete a configured Klarefi connector by key or stage its deletion for operator approval.

ParameterTypeDescription
connector_key *string

create_intake_session Create intake session

Create a hosted Klarefi intake session. Pass case_type_id, or workflow_id (internal preview, published workflows only).

ParameterTypeDescription
case_type_idstring
external_applicant_idstring
external_case_idstring
external_customer_idstring
localestring
prefillobjectPrefill payload passed through to the session; schema owned by the prefill feature
return_urlstringApproved return URL for the closing receipt link (internal preview).
ttl_hoursnumber
workflow_idstringPublished workflow ID (internal preview; omit case_type_id).

get_case Get case

Retrieve a Klarefi case and resolved facts.

ParameterTypeDescription
case_id *string

list_operator_queue List operator queue

List the bounded Klarefi operator queue for this API key's environment. Requires cases:review.

ParameterTypeDescription
limitnumber

get_case_workspace Get case workspace

Inspect a case workspace with facts, cited evidence, blockers, ownership, and timeline. This does not mutate the case.

ParameterTypeDescription
case_id *string

get_case_package Get case package

Get the cited case_package.v1 artifact and a signed read-only case-file URL. The package carries the facts, the calculated facts, and the offer or decline on the case with its files.

ParameterTypeDescription
case_id *string

submit_case_review Submit case review command

Submit an auditable intake-review command. Allowed commands review or correct facts, update evidence, escalate, or record a case-wide checks go. For checks_go supply payload.decision as go, not_now, or withdraw and an optional rationale; poll get_review_command, because a decision sent before the case has started stays accepted until it applies. This tool cannot complete or reopen a case.

ParameterTypeDescription
case_id *string
command_type *string
payload *object
idempotency_keystring
rationalestring
trace_idstring

get_review_command Get review command

Poll the status and result of an intake-review command.

ParameterTypeDescription
case_id *string
command_id *string

list_workflows List workflows

List versioned Form · Fact · Verify workflow declarations.

save_workflow_draft Save workflow draft

Validate and save a workflow declaration as a draft. This tool cannot publish or activate the workflow. Each input_bindings entry on a check is a fact ID, { "literal": value } for a fixed plain-text value (never a secret), or { "case": "case_id" | "case_reference" | "external_case_id" }. A parameter left out uses the connector's default.

ParameterTypeDescription
workflow *object

open_intake Open intake

Read an applicant intake from a signed URL or from session_id plus access_token. No Klarefi API key is required. On the hosted MCP endpoint, include the same intake credential in each later intake tool call.

ParameterTypeDescription
access_tokenstringApplicant access token. Use it with session_id instead of url.
api_base_urlstringOptional Klarefi deployment URL for local stdio use. The hosted MCP endpoint does not accept this override.
session_idstring
urlstringSigned hosted intake URL. Include it in every call to the hosted MCP endpoint.

get_intake_state Get intake state

Get the current applicant intake state. Pass url, or session_id with access_token, on the hosted MCP endpoint.

ParameterTypeDescription
access_tokenstringApplicant access token. Use it with session_id instead of url.
api_base_urlstringOptional Klarefi deployment URL for local stdio use. The hosted MCP endpoint does not accept this override.
session_idstring
urlstringSigned hosted intake URL. Include it in every call to the hosted MCP endpoint.

answer_question Answer intake question

Answer the active applicant question with free text, optionally targeting a task_id. When the applicant cannot supply what it asks for now, say so and why; the question is then closed and not asked again unless something new is sent.

ParameterTypeDescription
text *string
access_tokenstringApplicant access token. Use it with session_id instead of url.
api_base_urlstringOptional Klarefi deployment URL for local stdio use. The hosted MCP endpoint does not accept this override.
session_idstring
task_idstring
urlstringSigned hosted intake URL. Include it in every call to the hosted MCP endpoint.

answer_fields Answer intake fields

Answer structured requested facts by fact_id. Values must be strings; yes_no fields take "yes" or "no", and date fields use YYYY-MM-DD.

ParameterTypeDescription
fields *objectString values keyed by fact_id.
access_tokenstringApplicant access token. Use it with session_id instead of url.
api_base_urlstringOptional Klarefi deployment URL for local stdio use. The hosted MCP endpoint does not accept this override.
session_idstring
task_idstring
urlstringSigned hosted intake URL. Include it in every call to the hosted MCP endpoint.

upload_document Upload intake document

Upload a requested applicant document. Use content_base64 on the hosted MCP endpoint. Local stdio clients can use file_path. Inline content is limited to 5MB decoded; local files can be up to 25MB.

ParameterTypeDescription
access_tokenstringApplicant access token. Use it with session_id instead of url.
api_base_urlstringOptional Klarefi deployment URL for local stdio use. The hosted MCP endpoint does not accept this override.
content_base64string
file_pathstring
filenamestringRequired with content_base64. Defaults to the basename of file_path.
mime_typestring
session_idstring
task_idstring
urlstringSigned hosted intake URL. Include it in every call to the hosted MCP endpoint.

submit_intake Submit intake

Submit the applicant intake. Returns submitted, blockers, and the fresh intake state.

ParameterTypeDescription
access_tokenstringApplicant access token. Use it with session_id instead of url.
api_base_urlstringOptional Klarefi deployment URL for local stdio use. The hosted MCP endpoint does not accept this override.
field_valuesobjectOptional final field values; each value must be string or null.
session_idstring
urlstringSigned hosted intake URL. Include it in every call to the hosted MCP endpoint.

save_intake_draft Save intake draft

Save applicant form draft fields without submitting. Field values must be strings or null.

ParameterTypeDescription
fields *objectDraft field values keyed by field_id.
access_tokenstringApplicant access token. Use it with session_id instead of url.
api_base_urlstringOptional Klarefi deployment URL for local stdio use. The hosted MCP endpoint does not accept this override.
session_idstring
urlstringSigned hosted intake URL. Include it in every call to the hosted MCP endpoint.

wait_for_next_action Wait for next intake action

Poll until the intake leaves processing or the timeout expires. If timed_out is true, call wait_for_next_action again.

ParameterTypeDescription
access_tokenstringApplicant access token. Use it with session_id instead of url.
api_base_urlstringOptional Klarefi deployment URL for local stdio use. The hosted MCP endpoint does not accept this override.
session_idstring
timeout_secondsnumber
urlstringSigned hosted intake URL. Include it in every call to the hosted MCP endpoint.