Oneflow MCP by usefulapi
Read contracts, parties, data fields and files; create draft contracts and comments in Oneflow.
Should I use this
Quality & Safety
Findings (4)
- LOWin oneflow_get_contract_participant
- LOWin oneflow_list_contract_data_fields
- LOWin oneflow_update_contract_data_fields
- LOWin oneflow_create_contract_comment
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"oneflow": {
"url": "https://oneflow.usefulapi.io/mcp"
}
}
}Remote endpoints
https://oneflow.usefulapi.io/mcpstreamable-httpWhat it can do
Tool inventory
Tools (16)
🟢oneflow_get_account
Get information about the connected Oneflow account (name, country, logo and similar). Oneflow API: GET /accounts/me.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_list_users(offset, limit, active, email, name)
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.
Input Schema
{
"type": "object",
"properties": {
"offset": {
"description": "Offset for pagination (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"active": {
"description": "true = only active users, false = only inactive users.",
"type": "boolean"
},
"email": {
"description": "Filter by email.",
"type": "string"
},
"name": {
"description": "Filter by name.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_list_workspaces(offset, limit, name, user_email)
List the workspaces the acting user can see. Workspace ids are needed to create contracts. Oneflow API: GET /workspaces.
Input Schema
{
"type": "object",
"properties": {
"offset": {
"description": "Offset for pagination (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"name": {
"description": "Filter by workspace name.",
"type": "string"
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_list_folders(offset, limit, name, workspace_ids, parent_ids, ...)
List folders with their workspaces. Folder ids can be passed to oneflow_create_contract. Oneflow API: GET /folders.
Input Schema
{
"type": "object",
"properties": {
"offset": {
"description": "Offset for pagination (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"name": {
"description": "Filter by folder name.",
"type": "string"
},
"workspace_ids": {
"description": "Comma-separated workspace ids.",
"type": "string"
},
"parent_ids": {
"description": "Comma-separated parent folder ids.",
"type": "string"
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_list_templates(offset, limit, workspace_ids, template_type_id, active, ...)
List contract templates available to the acting user. Template ids are needed to create contracts. Oneflow API: GET /templates.
Input Schema
{
"type": "object",
"properties": {
"offset": {
"description": "Offset for pagination (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"workspace_ids": {
"description": "Comma-separated workspace ids.",
"type": "string"
},
"template_type_id": {
"description": "Only templates of this template type id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"active": {
"description": "true = only active templates, false = only inactive.",
"type": "boolean"
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_list_tags(offset, limit, name)
List the tags of the account. Tag ids can be passed to oneflow_create_contract. Oneflow API: GET /tags.
Input Schema
{
"type": "object",
"properties": {
"offset": {
"description": "Offset for pagination (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"name": {
"description": "Filter by tag name.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_list_contracts(offset, limit, sort, query, states, ...)
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.
Input Schema
{
"type": "object",
"properties": {
"offset": {
"description": "Offset for pagination (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"sort": {
"description": "Sort key, for example -state,name (a leading - means descending).",
"type": "string"
},
"query": {
"description": "Free-text search over contract names and data.",
"type": "string"
},
"states": {
"description": "Comma-separated contract states, for example draft,uploaded,published,signed.",
"type": "string"
},
"workspace_ids": {
"description": "Comma-separated workspace ids.",
"type": "string"
},
"folder_ids": {
"description": "Comma-separated folder ids.",
"type": "string"
},
"template_ids": {
"description": "Comma-separated template ids.",
"type": "string"
},
"tag_ids": {
"description": "Comma-separated tag ids.",
"type": "string"
},
"canceled": {
"description": "true = only canceled contracts, false = only the others.",
"type": "boolean"
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_get_contract(contract_id, user_email)
Get one contract by id: name, state, workspace, folder, tags and timestamps. Oneflow API: GET /contracts/{contract_id}.
Input Schema
{
"type": "object",
"properties": {
"contract_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The contract id (from oneflow_list_contracts)."
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"required": [
"contract_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_list_contract_parties(contract_id, offset, limit, user_email)
List the parties (counterparties and the owner side) of a contract, with their participants. Oneflow API: GET /contracts/{contract_id}/parties.
Input Schema
{
"type": "object",
"properties": {
"contract_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The contract id."
},
"offset": {
"description": "Offset for pagination (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"required": [
"contract_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_get_contract_participant(contract_id, party_id, participant_id, user_email)
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}.
Input Schema
{
"type": "object",
"properties": {
"contract_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The contract id."
},
"party_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The party id (from oneflow_list_contract_parties)."
},
"participant_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The participant id (from oneflow_list_contract_parties)."
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"required": [
"contract_id",
"party_id",
"participant_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_list_contract_data_fields(contract_id, offset, limit, user_email)
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.
Input Schema
{
"type": "object",
"properties": {
"contract_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The contract id."
},
"offset": {
"description": "Offset for pagination (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"required": [
"contract_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_list_contract_files(contract_id, offset, limit, sort, user_email)
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.
Input Schema
{
"type": "object",
"properties": {
"contract_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The contract id."
},
"offset": {
"description": "Offset for pagination (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"sort": {
"description": "Sort key, for example -type,name.",
"type": "string"
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"required": [
"contract_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢oneflow_list_contract_comments(contract_id, user_email)
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.
Input Schema
{
"type": "object",
"properties": {
"contract_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The contract id."
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"required": [
"contract_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴oneflow_create_contract(workspace_id, template_id, name, folder_id, tag_ids, ...)
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.
Input Schema
{
"type": "object",
"properties": {
"workspace_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Workspace id for the new contract."
},
"template_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Template id to create the contract from."
},
"name": {
"description": "Contract name.",
"type": "string",
"minLength": 1,
"maxLength": 130
},
"folder_id": {
"description": "Folder id inside the workspace.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"tag_ids": {
"description": "Tag ids to attach.",
"maxItems": 50,
"type": "array",
"items": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"data_fields": {
"description": "Data field values, each { custom_id, value } using the template's custom ids.",
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"value": {
"anyOf": [
{
"type": "string",
"maxLength": 1024
},
{
"type": "null"
}
]
}
},
"required": [
"custom_id",
"value"
]
}
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"required": [
"workspace_id",
"template_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴oneflow_update_contract_data_fields(contract_id, data_fields, user_email)
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.
Input Schema
{
"type": "object",
"properties": {
"contract_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The contract id."
},
"data_fields": {
"minItems": 1,
"maxItems": 150,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"description": "Data field id (from oneflow_list_contract_data_fields).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"custom_id": {
"description": "Data field custom id, when no id is known.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"value": {
"anyOf": [
{
"type": "string",
"maxLength": 1024
},
{
"type": "null"
}
],
"description": "New value (text)."
}
},
"required": [
"value"
]
},
"description": "Data fields to set. Each needs id or custom_id."
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"required": [
"contract_id",
"data_fields"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴oneflow_create_contract_comment(contract_id, body, parent_id, user_email)
Add a comment to a contract, optionally as a reply to parent_id. Oneflow API: POST /contracts/{contract_id}/comments.
Input Schema
{
"type": "object",
"properties": {
"contract_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The contract id."
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 5000,
"description": "The comment text."
},
"parent_id": {
"description": "Comment id to reply to.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"user_email": {
"description": "Acting user's email (X-Oneflow-User-Email). Defaults to the account's configured user.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"required": [
"contract_id",
"body"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Evidence