Oneflow MCP by usefulapi

v1.2.1
io.usefulapi/oneflow Checked 3 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
activebooleantrue = only active users, false = only inactive users.
emailstringFilter by email.
limitintegerResults per page (1-100, default 100).
namestringFilter by name.
offsetintegerOffset 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.

ParameterTypeDescription
limitintegerResults per page (1-100, default 100).
namestringFilter by workspace name.
offsetintegerOffset for pagination (default 0).
user_emailstringActing 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.

ParameterTypeDescription
limitintegerResults per page (1-100, default 100).
namestringFilter by folder name.
offsetintegerOffset for pagination (default 0).
parent_idsstringComma-separated parent folder ids.
user_emailstringActing user's email (X-Oneflow-User-Email). Defaults to the account's configured user.
workspace_idsstringComma-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.

ParameterTypeDescription
activebooleantrue = only active templates, false = only inactive.
limitintegerResults per page (1-100, default 100).
offsetintegerOffset for pagination (default 0).
template_type_idintegerOnly templates of this template type id.
user_emailstringActing user's email (X-Oneflow-User-Email). Defaults to the account's configured user.
workspace_idsstringComma-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.

ParameterTypeDescription
limitintegerResults per page (1-100, default 100).
namestringFilter by tag name.
offsetintegerOffset 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.

ParameterTypeDescription
canceledbooleantrue = only canceled contracts, false = only the others.
folder_idsstringComma-separated folder ids.
limitintegerResults per page (1-100, default 100).
offsetintegerOffset for pagination (default 0).
querystringFree-text search over contract names and data.
sortstringSort key, for example -state,name (a leading - means descending).
statesstringComma-separated contract states, for example draft,uploaded,published,signed.
tag_idsstringComma-separated tag ids.
template_idsstringComma-separated template ids.
user_emailstringActing user's email (X-Oneflow-User-Email). Defaults to the account's configured user.
workspace_idsstringComma-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}.

ParameterTypeDescription
contract_id *integerThe contract id (from oneflow_list_contracts).
user_emailstringActing 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.

ParameterTypeDescription
contract_id *integerThe contract id.
limitintegerResults per page (1-100, default 100).
offsetintegerOffset for pagination (default 0).
user_emailstringActing 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}.

ParameterTypeDescription
contract_id *integerThe contract id.
participant_id *integerThe participant id (from oneflow_list_contract_parties).
party_id *integerThe party id (from oneflow_list_contract_parties).
user_emailstringActing 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.

ParameterTypeDescription
contract_id *integerThe contract id.
limitintegerResults per page (1-100, default 100).
offsetintegerOffset for pagination (default 0).
user_emailstringActing 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.

ParameterTypeDescription
contract_id *integerThe contract id.
limitintegerResults per page (1-100, default 100).
offsetintegerOffset for pagination (default 0).
sortstringSort key, for example -type,name.
user_emailstringActing 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.

ParameterTypeDescription
contract_id *integerThe contract id.
user_emailstringActing 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.

ParameterTypeDescription
template_id *integerTemplate id to create the contract from.
workspace_id *integerWorkspace id for the new contract.
data_fieldsarrayData field values, each { custom_id, value } using the template's custom ids.
folder_idintegerFolder id inside the workspace.
namestringContract name.
tag_idsarrayTag ids to attach.
user_emailstringActing 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.

ParameterTypeDescription
contract_id *integerThe contract id.
data_fields *arrayData fields to set. Each needs id or custom_id.
user_emailstringActing 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.

ParameterTypeDescription
body *stringThe comment text.
contract_id *integerThe contract id.
parent_idintegerComment id to reply to.
user_emailstringActing user's email (X-Oneflow-User-Email). Defaults to the account's configured user.