Contractbook MCP by usefulapi

v1.2.1
io.usefulapi/contractbook Checked 2 days ago Published 12 hours ago

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

ParameterTypeDescription
cursorstringCursor from a previous response, for the next page.
fullbooleanInclude data fields in each document (larger response).
integration_object_idstringFilter by the id of the linked object in an integration.
ownedbooleanOnly documents owned by the API key's user.
page_sizeintegerResults per page.
signed_at_gtestringSigned at or after this ISO 8601 date or date-time.
signed_at_ltstringSigned before this ISO 8601 date or date-time.
sort_columnstringColumn to sort by (default created_at).
sort_directionstringSort direction (default desc).
statesarrayFilter by document states, for example draft, sent, signed.
tagsarrayFilter by tags.
titlestringFilter by document title.
typesarrayFilter by document type names.
updated_at_gtestringUpdated at or after this ISO 8601 date or date-time.
updated_at_ltstringUpdated before this ISO 8601 date or date-time.
workspace_idstringFilter 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}.

ParameterTypeDescription
id *stringContractbook 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.

ParameterTypeDescription
exclude_spacesbooleanLeave 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}.

ParameterTypeDescription
id *stringContractbook 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.

ParameterTypeDescription
template_id *stringTemplate to create the draft from.
data_fieldsarrayData field values as the Contractbook API defines them (objects passed unchanged).
languagestringLanguage code, for example en.
messagestringMessage text for the signing parties.
tagsarrayTags to set on the draft.
titlestringTitle 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.

ParameterTypeDescription
id *stringContractbook id (UUID).

contractbook_list_automations List automations

List automations that match a trigger type (for example a document event). Contractbook API: GET /automations.

ParameterTypeDescription
trigger_type *stringTrigger type, as the Contractbook API names it.