Contractbook MCP by usefulapi
Read contracts, templates and spaces; create contract drafts from templates in Contractbook.
사용해야 할까요
품질 및 안전성
발견 사항 (1)
- LOWcontractbook_create_document_from_template에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"contractbook": {
"url": "https://contractbook.usefulapi.io/mcp"
}
}
}원격 엔드포인트
https://contractbook.usefulapi.io/mcpstreamable-http할 수 있는 일
도구 목록
도구 (7)
🟢contractbook_list_documents(title, states, types, tags, owned, ...)
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.
입력 스키마
{
"type": "object",
"properties": {
"title": {
"description": "Filter by document title.",
"type": "string"
},
"states": {
"description": "Filter by document states, for example draft, sent, signed.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"types": {
"description": "Filter by document type names.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"tags": {
"description": "Filter by tags.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"owned": {
"description": "Only documents owned by the API key's user.",
"type": "boolean"
},
"updated_at_gte": {
"description": "Updated at or after this ISO 8601 date or date-time.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T([01]\\d|2[0-3]):[0-5]\\d(:([0-5]\\d|60)(\\.\\d+)?)?(Z|[+-]([01]\\d|2[0-3]):?[0-5]\\d)?)?$"
},
"updated_at_lt": {
"description": "Updated before this ISO 8601 date or date-time.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T([01]\\d|2[0-3]):[0-5]\\d(:([0-5]\\d|60)(\\.\\d+)?)?(Z|[+-]([01]\\d|2[0-3]):?[0-5]\\d)?)?$"
},
"signed_at_gte": {
"description": "Signed at or after this ISO 8601 date or date-time.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T([01]\\d|2[0-3]):[0-5]\\d(:([0-5]\\d|60)(\\.\\d+)?)?(Z|[+-]([01]\\d|2[0-3]):?[0-5]\\d)?)?$"
},
"signed_at_lt": {
"description": "Signed before this ISO 8601 date or date-time.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T([01]\\d|2[0-3]):[0-5]\\d(:([0-5]\\d|60)(\\.\\d+)?)?(Z|[+-]([01]\\d|2[0-3]):?[0-5]\\d)?)?$"
},
"integration_object_id": {
"description": "Filter by the id of the linked object in an integration.",
"type": "string"
},
"workspace_id": {
"description": "Filter by workspace id.",
"type": "string"
},
"full": {
"description": "Include data fields in each document (larger response).",
"type": "boolean"
},
"page_size": {
"description": "Results per page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from a previous response, for the next page.",
"type": "string"
},
"sort_column": {
"description": "Column to sort by (default created_at).",
"type": "string",
"enum": [
"created_at",
"updated_at",
"title"
]
},
"sort_direction": {
"description": "Sort direction (default desc).",
"type": "string",
"enum": [
"asc",
"desc"
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢contractbook_get_document(id)
Get one document (contract) by id: state, parties, data fields, attachments and comments. Contractbook API: GET /documents/{id}.
입력 스키마
{
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Contractbook id (UUID)."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢contractbook_list_templates(exclude_spaces)
List the contract templates the API key can use, with their language and location. Contractbook API: GET /templates.
입력 스키마
{
"type": "object",
"properties": {
"exclude_spaces": {
"description": "Leave out templates in spaces (shared folders).",
"type": "boolean"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢contractbook_get_template(id)
Get one template by id, including its data fields and attachments. Contractbook API: GET /templates/{id}.
입력 스키마
{
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Contractbook id (UUID)."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡contractbook_create_document_from_template(template_id, title, language, message, tags, ...)
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.
입력 스키마
{
"type": "object",
"properties": {
"template_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Template to create the draft from."
},
"title": {
"description": "Title for the new draft.",
"type": "string"
},
"language": {
"description": "Language code, for example en.",
"type": "string"
},
"message": {
"description": "Message text for the signing parties.",
"type": "string"
},
"tags": {
"description": "Tags to set on the draft.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"data_fields": {
"description": "Data field values as the Contractbook API defines them (objects passed unchanged).",
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
}
},
"required": [
"template_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢contractbook_get_space_tree(id)
Get a space (shared folder) and its child spaces as a tree. Contractbook API: GET /spaces/{id}/tree.
입력 스키마
{
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Contractbook id (UUID)."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢contractbook_list_automations(trigger_type)
List automations that match a trigger type (for example a document event). Contractbook API: GET /automations.
입력 스키마
{
"type": "object",
"properties": {
"trigger_type": {
"type": "string",
"minLength": 1,
"description": "Trigger type, as the Contractbook API names it."
}
},
"required": [
"trigger_type"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}커뮤니티
증거