MCP 服务器

glossary-terms-definitions-library

io.github.theluckystrike/glossary-terms-definitions-library
知识与文档 法律与合规 公开且可连接 MCP 2026-07-28

此 MCP 可以做什么

Maintains a reusable clause library and assembles selected clauses into contracts in DOCX or Markdown formats.

clause_add
Add a clause
Save a reusable contract or proposal clause to the library. Returns the stored clause id, title, category, tags and the variables detected in its body, plus how many clauses of your own the library now holds.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['title', 'body', 'category'], 'properties': {'body': {'type': 'string', 'minLength': 1, 'description': 'The clause text. Use {{variable}} placeholders for the facts that change per client, for example {{client}}, {{fee}} or {{late_fee_percent}}; contract_assemble fills them at assembly time. Free tier: 10 clauses of your own on top of the 25 starters'}, 'tags': {'type': 'array', 'items': {'type': 'string'}}, 'title': {'type': 'string', 'minLength': 1, 'description': "Clause heading, for example 'Late Payment'"}, 'category': {'type': 'string', 'description': 'Grouping. The known ones, in assembly order, are parties, scope, payment, expenses, ip, confidentiality, data, term, liability, warranty, disputes, general -- reuse one of these; any other name is accepted but sorts last in a category-based assembly'}, 'language': {'type': 'string', 'description': 'ISO language code, default en'}, 'variables': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Declared variable names. Anything {{...}} in the body is detected anyway'}, 'jurisdiction': {'type': 'string', 'description': "Where the clause is meant to apply, for example 'PL' or 'England and Wales'"}}, 'additionalProperties': False}
clause_delete
Delete a clause
Delete one clause by id or exact title and report how many are left. There is no undo, and a deleted starter clause is not re-seeded. Use clause_update to change one you want to keep.
可能执行破坏性操作
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['id'], 'properties': {'id': {'type': 'string', 'description': 'Clause id or exact title'}}, 'additionalProperties': False}
clause_export
Export clauses
Call this tool to write the whole library to one file and return the path, format and count. It is written in contract order, so it re-imports the same way. markdown is free; json is Pro.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['path', 'format'], 'properties': {'path': {'type': 'string', 'description': 'Destination file path. The clauses are written in assembly order, categories first'}, 'format': {'enum': ['json', 'markdown'], 'type': 'string', 'description': 'json (a Pro feature) or markdown (works in the free tier)'}, 'overwrite': {'type': 'boolean', 'description': 'Replace the destination if a file is already there. Without it an existing file is never touched'}}, 'additionalProperties': False}
clause_get
Read one clause
Return one clause in full by id or title: body, category, tags, jurisdiction, variables and the revision count, which stays 0 on free. A partial title matching several is refused with the candidates.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'id': {'type': 'string', 'description': 'Clause id, for example late-fees'}, 'title': {'type': 'string', 'description': 'Clause title; a partial title matches too'}}, 'additionalProperties': False}
clause_import
Import clauses
Call this tool to load clauses from a .md or .json file, reporting added, replaced, skipped and capped counts. A duplicate title is skipped unless overwrite. json is Pro. Free: 10 of your own.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['path'], 'properties': {'path': {'type': 'string', 'description': "Path to a .md or .json file. Markdown form: '## Title', then optional 'category:' / 'tags:' / 'variables:' lines, a blank line, then the body. JSON form: an array of clauses. JSON import is a Pro feature; markdown import works in the free tier, within the free clause cap"}, 'overwrite': {'type': 'boolean', 'description': 'Replace clauses whose title already exists instead of skipping them'}}, 'additionalProperties': False}
clause_list
List clauses
List the library as id, title, category, tags and variables, in contract order by category then title, which is the order contract_assemble uses. Narrow with category; use clause_search for words.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'category': {'type': 'string'}}, 'additionalProperties': False}
clause_search
Search clauses
Ranked search over clause titles, tags, categories and bodies. Title and tag matches outrank body matches. Jurisdiction filtering is free; the tag filter is Pro and is skipped rather than refusing the search.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['query'], 'properties': {'tags': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Pro: every tag listed must be present. On free the search still runs, without this filter'}, 'query': {'type': 'string', 'description': "Words to look for, for example 'late payment interest'"}, 'category': {'type': 'string'}, 'jurisdiction': {'type': 'string', 'description': 'Exact jurisdiction match. Free'}}, 'additionalProperties': False}
clause_update
Update a clause
Change the text, category, tags, variables or jurisdiction of a clause. In Pro the previous text is kept as a version; in the free tier the change is applied without history.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['id'], 'properties': {'id': {'type': 'string', 'description': 'Clause id or exact title'}, 'body': {'type': 'string'}, 'tags': {'type': 'array', 'items': {'type': 'string'}}, 'title': {'type': 'string'}, 'category': {'type': 'string'}, 'language': {'type': 'string'}, 'variables': {'type': 'array', 'items': {'type': 'string'}}, 'jurisdiction': {'type': 'string'}}, 'additionalProperties': False}
contract_assemble
Assemble a contract
Call this tool to build a contract from library clauses as .docx or markdown. A variable you omit stays as a bracketed prompt, never invented. clause_ids order is document order. Free: 8 clauses.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['title'], 'properties': {'title': {'type': 'string', 'description': "Document title, for example 'Service Agreement - Beta Corp'"}, 'client': {'type': 'string', 'description': 'Client name; also fills the {{client}} variable'}, 'format': {'enum': ['docx', 'markdown'], 'type': 'string', 'description': 'docx (default) or markdown; the document opens with the not-legal-advice line either way'}, 'values': {'type': 'object', 'description': 'Values for the {{variables}} in the chosen clauses, for example {"fee":"4500","late_fee_percent":"2"}. Any variable you leave out stays in the document as a bracketed prompt such as [late fee percent], never as an invented value', 'additionalProperties': {'type': 'string'}}, 'out_path': {'type': 'string', 'description': 'Where to write the file. Default: the server data directory, under a name built from the client and the title'}, 'overwrite': {'type': 'boolean', 'description': 'Replace out_path if a file is already there. Without it an existing file is never touched'}, 'categories': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Instead of ids: every clause in these categories, ordered by category. Free tier: up to 8 clauses per document'}, 'clause_ids': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Clause ids in the order they should appear; this is the document order. Free tier: up to 8 clauses per document'}}, 'additionalProperties': False}
license_activate
Activate license
Turn Pro on for this connection with key, an MCPL1.<payload>.<signature> issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['key'], 'properties': {'key': {'type': 'string', 'description': 'License key from checkout, MCPL1.<payload>.<signature>'}}, 'additionalProperties': False}
license_status
License status
Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
variables_list
List the variables a selection needs
List every {{variable}} the clauses you name use, and which clause uses each, so the facts are gathered before contract_assemble leaves bracketed prompts. Reads only; a title matching several is refused.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['clause_ids'], 'properties': {'clause_ids': {'type': 'array', 'items': {'type': 'string'}, 'minItems': 1, 'description': 'Clause ids or titles'}}, 'additionalProperties': False}
已添加
license_activate
2026年9月24日 02:40
已添加
license_status
2026年9月24日 02:40
已添加
variables_list
2026年9月24日 02:40
已添加
contract_assemble
2026年9月24日 02:40
已添加
clause_export
2026年9月24日 02:40
已添加
clause_import
2026年9月24日 02:40
已添加
clause_search
2026年9月24日 02:40
已添加
clause_list
2026年9月24日 02:40
已添加
clause_delete
2026年9月24日 02:40
已添加
clause_update
2026年9月24日 02:40
已添加
clause_get
2026年9月24日 02:40
已添加
clause_add
2026年9月24日 02:40