Contractbook MCP by usefulapi
v1.2.1Read contracts, templates and spaces; create contract drafts from templates in Contractbook.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
contractbook_list_documents List documents
List contracts (documents) with state, type, parties, tags and dates. Filter by title, state, type or tag, or by updated date. Cursor-paginated. Contractbook API: GET /documents.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response, for the next page. |
full | boolean | Include data fields in each document (larger response). |
integration_object_id | string | Filter by the id of the linked object in an integration. |
owned | boolean | Only documents owned by the API key's user. |
page_size | integer | Results per page. |
signed_at_gte | string | Signed at or after this ISO 8601 date or date-time. |
signed_at_lt | string | Signed before this ISO 8601 date or date-time. |
sort_column | string | Column to sort by (default created_at). |
sort_direction | string | Sort direction (default desc). |
states | array | Filter by document states, for example draft, sent, signed. |
tags | array | Filter by tags. |
title | string | Filter by document title. |
types | array | Filter by document type names. |
updated_at_gte | string | Updated at or after this ISO 8601 date or date-time. |
updated_at_lt | string | Updated before this ISO 8601 date or date-time. |
workspace_id | string | Filter by workspace id. |
contractbook_get_document Get document
Get one document (contract) by id: state, parties, data fields, attachments and comments. Contractbook API: GET /documents/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | Contractbook id (UUID). |
contractbook_list_templates List templates
List the contract templates the API key can use, with their language and location. Contractbook API: GET /templates.
| Parameter | Type | Description |
|---|---|---|
exclude_spaces | boolean | Leave out templates in spaces (shared folders). |
contractbook_get_template Get template
Get one template by id, including its data fields and attachments. Contractbook API: GET /templates/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | Contractbook id (UUID). |
contractbook_create_document_from_template Create draft from template
Create a DRAFT document from a template, with an optional title, language, tags and data fields. The draft is NOT sent for signature. The reply is the new document from the Contractbook API. Contractbook API: POST /templates/{id}/create_document.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | Template to create the draft from. |
data_fields | array | Data field values as the Contractbook API defines them (objects passed unchanged). |
language | string | Language code, for example en. |
message | string | Message text for the signing parties. |
tags | array | Tags to set on the draft. |
title | string | Title for the new draft. |
contractbook_get_space_tree Get space tree
Get a space (shared folder) and its child spaces as a tree. Contractbook API: GET /spaces/{id}/tree.
| Parameter | Type | Description |
|---|---|---|
id * | string | Contractbook id (UUID). |
contractbook_list_automations List automations
List automations that match a trigger type (for example a document event). Contractbook API: GET /automations.
| Parameter | Type | Description |
|---|---|---|
trigger_type * | string | Trigger type, as the Contractbook API names it. |