Oneflow MCP by usefulapi
v1.2.1Read contracts, parties, data fields and files; create draft contracts and comments in Oneflow.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
oneflow_get_account Get account information
Get information about the connected Oneflow account (name, country, logo and similar). Oneflow API: GET /accounts/me.
oneflow_list_users List users
List users of the Oneflow account, with their ids, names, emails and active state. Use an email from here as user_email for other tools. Oneflow API: GET /users.
| Parameter | Type | Description |
|---|---|---|
active | boolean | true = only active users, false = only inactive users. |
email | string | Filter by email. |
limit | integer | Results per page (1-100, default 100). |
name | string | Filter by name. |
offset | integer | Offset for pagination (default 0). |
oneflow_list_workspaces List workspaces
List the workspaces the acting user can see. Workspace ids are needed to create contracts. Oneflow API: GET /workspaces.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (1-100, default 100). |
name | string | Filter by workspace name. |
offset | integer | Offset for pagination (default 0). |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
oneflow_list_folders List folders
List folders with their workspaces. Folder ids can be passed to oneflow_create_contract. Oneflow API: GET /folders.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (1-100, default 100). |
name | string | Filter by folder name. |
offset | integer | Offset for pagination (default 0). |
parent_ids | string | Comma-separated parent folder ids. |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
workspace_ids | string | Comma-separated workspace ids. |
oneflow_list_templates List templates
List contract templates available to the acting user. Template ids are needed to create contracts. Oneflow API: GET /templates.
| Parameter | Type | Description |
|---|---|---|
active | boolean | true = only active templates, false = only inactive. |
limit | integer | Results per page (1-100, default 100). |
offset | integer | Offset for pagination (default 0). |
template_type_id | integer | Only templates of this template type id. |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
workspace_ids | string | Comma-separated workspace ids. |
oneflow_list_tags List tags
List the tags of the account. Tag ids can be passed to oneflow_create_contract. Oneflow API: GET /tags.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (1-100, default 100). |
name | string | Filter by tag name. |
offset | integer | Offset for pagination (default 0). |
oneflow_list_contracts List contracts
List contracts, filterable by state, workspace, folder, template, tag, or a free-text query. Use it to find a contract id before the other contract tools. Oneflow API: GET /contracts.
| Parameter | Type | Description |
|---|---|---|
canceled | boolean | true = only canceled contracts, false = only the others. |
folder_ids | string | Comma-separated folder ids. |
limit | integer | Results per page (1-100, default 100). |
offset | integer | Offset for pagination (default 0). |
query | string | Free-text search over contract names and data. |
sort | string | Sort key, for example -state,name (a leading - means descending). |
states | string | Comma-separated contract states, for example draft,uploaded,published,signed. |
tag_ids | string | Comma-separated tag ids. |
template_ids | string | Comma-separated template ids. |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
workspace_ids | string | Comma-separated workspace ids. |
oneflow_get_contract Get a contract
Get one contract by id: name, state, workspace, folder, tags and timestamps. Oneflow API: GET /contracts/{contract_id}.
| Parameter | Type | Description |
|---|---|---|
contract_id * | integer | The contract id (from oneflow_list_contracts). |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
oneflow_list_contract_parties List contract parties
List the parties (counterparties and the owner side) of a contract, with their participants. Oneflow API: GET /contracts/{contract_id}/parties.
| Parameter | Type | Description |
|---|---|---|
contract_id * | integer | The contract id. |
limit | integer | Results per page (1-100, default 100). |
offset | integer | Offset for pagination (default 0). |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
oneflow_get_contract_participant Get a contract participant
Get one participant of a party in a contract (name, email, signing state). Oneflow API: GET /contracts/{contract_id}/parties/{party_id}/participants/{participant_id}.
| Parameter | Type | Description |
|---|---|---|
contract_id * | integer | The contract id. |
participant_id * | integer | The participant id (from oneflow_list_contract_parties). |
party_id * | integer | The party id (from oneflow_list_contract_parties). |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
oneflow_list_contract_data_fields List contract data fields
List the data fields of a contract with their custom ids and current values (for example dates, prices, names). Oneflow API: GET /contracts/{contract_id}/data_fields.
| Parameter | Type | Description |
|---|---|---|
contract_id * | integer | The contract id. |
limit | integer | Results per page (1-100, default 100). |
offset | integer | Offset for pagination (default 0). |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
oneflow_list_contract_files List contract files
List the files of a contract: the contract PDF, verification, attachments. Returns metadata and ids, not file contents. Oneflow API: GET /contracts/{contract_id}/files.
| Parameter | Type | Description |
|---|---|---|
contract_id * | integer | The contract id. |
limit | integer | Results per page (1-100, default 100). |
offset | integer | Offset for pagination (default 0). |
sort | string | Sort key, for example -type,name. |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
oneflow_list_contract_comments List contract comments
List the comments on a contract. Oneflow requires an acting user for this call, so user_email (or ONEFLOW_USER_EMAIL) must be set. Oneflow API: GET /contracts/{contract_id}/comments.
| Parameter | Type | Description |
|---|---|---|
contract_id * | integer | The contract id. |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
oneflow_create_contract Create a draft contract
Create a DRAFT contract from a template in a workspace. It does not publish the contract, so nobody is sent a link to sign. Needs workspace_id and template_id (from oneflow_list_workspaces and oneflow_list_templates). Oneflow API: POST /contracts/create.
| Parameter | Type | Description |
|---|---|---|
template_id * | integer | Template id to create the contract from. |
workspace_id * | integer | Workspace id for the new contract. |
data_fields | array | Data field values, each { custom_id, value } using the template's custom ids. |
folder_id | integer | Folder id inside the workspace. |
name | string | Contract name. |
tag_ids | array | Tag ids to attach. |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
oneflow_update_contract_data_fields Update contract data fields
Set the values of one or more data fields on a contract. Many fields can only change before the contract is signed. Oneflow API: PUT /contracts/{contract_id}/data_fields.
| Parameter | Type | Description |
|---|---|---|
contract_id * | integer | The contract id. |
data_fields * | array | Data fields to set. Each needs id or custom_id. |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |
oneflow_create_contract_comment Add a contract comment
Add a comment to a contract, optionally as a reply to parent_id. Oneflow API: POST /contracts/{contract_id}/comments.
| Parameter | Type | Description |
|---|---|---|
body * | string | The comment text. |
contract_id * | integer | The contract id. |
parent_id | integer | Comment id to reply to. |
user_email | string | Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user. |