Contractbook MCP by usefulapi

Read contracts, templates and spaces; create contract drafts from templates in Contractbook.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
97%
Naming quality
77%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (1)

  • LOWTool 'contractbook_create_document_from_template' name length outside 3-30 rangein contractbook_create_document_from_template

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~1,593Tokens (tool definitions)
~1.7 KBTypical response size
Moderate attention impact (1.24% of 128k context)

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": {
    "contractbook": {
      "url": "https://contractbook.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://contractbook.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (7)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢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.

Input Schema

{
  "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}.

Input Schema

{
  "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.

Input Schema

{
  "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}.

Input Schema

{
  "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.

Input Schema

{
  "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.

Input Schema

{
  "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.

Input Schema

{
  "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"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded7 tools