contract-key-terms-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| KEY_TERMS_DENY_DIRS | No | Folders to keep out even when they sit inside the allowed folder. Separate entries with ':' on Linux and macOS, or ';' on Windows. Common key and credential folders (~/.ssh, ~/.aws and similar) are always refused. | |
| KEY_TERMS_DENY_NAMES | No | Folder names to skip wherever they appear. Separate entries with ':' on Linux and macOS, or ';' on Windows. | |
| KEY_TERMS_ALLOWED_DIR | No | The single folder the server reads files from. By default this is the three bundled sample contracts. Can also be set with the --allow /path/to/folder option. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_clause_typesA | The 36 CUAD clause types: key, plain label, CUAD category name, the model's threshold, and whether the model is used for that type (for 3 types it is not, and extract_key_terms does not report them). |
| extract_key_termsA | Key terms of one agreement (.txt or .md inside the allowed folder; a relative path is read from it): for each clause type, whether the model found it and up to two sentences quoted as written, best first. |
| explain_predictionB | Why the model scored one clause type as it did in one agreement: its best sentences with the words and word pairs that pushed the score up (and down) the most, and the clause type's top-weighted terms overall. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool has a clearly distinct role: list_clause_types is metadata lookup, extract_key_terms runs the model across all clause types for one agreement, and explain_prediction drills into a single clause type with word-level attributions. Descriptions make the boundary between extraction and explanation explicit (quotes vs. score-driving terms).
All three tools follow the same verb_noun snake_case pattern (list_clause_types, extract_key_terms, explain_prediction). The verbs are distinct and accurately signal the operation.
Three tools form a tight, coherent pipeline for a narrow purpose (enumerate types, extract, explain), with no redundant tools. It is slightly lean — a discovery/validation helper would round it out — but nothing feels over- or under-built.
The list/extract/explain triad covers the core workflow, but there is no tool to enumerate which agreements exist in the allowed folder, so an agent must already know a valid path. There is also no bulk or multi-agreement extraction, leaving a notable discovery gap.