Skip to main content
Glama

Reprocess contract document

clm_reprocess_contract_document
DestructiveIdempotent

Re-read a document via external AI; replace saved extraction snapshot/status. Returns a run for clm_get_contract_reprocess_run, then clm_get_contract_reconciliation. Use clm_get_contract_analysis to read stored insights without extraction. No Parser credits. Subscribe to lift CLM trial caps. Field proposals need person approval in Contracko; not applied here.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "customFieldKeys": {
      -        "not": {}
      -      },
      -      "fileVersionId": {
      -        "description": "Stored version to re-read",
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "ID",
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "idempotencyKey": {
      -        "description": "Identical-input retry key",
      -        "maxLength": 255,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "readMode": {
      -        "const": "full",
      -        "description": "Document re-read (default)",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "fileVersionId",
      -      "idempotencyKey"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "customFieldKeys": {
      -        "description": "custom_fields_only keys; omit for all",
      -        "items": {
      -          "maxLength": 255,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "maxItems": 200,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "fileVersionId": {
      -        "description": "Stored version to re-read",
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "ID",
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "idempotencyKey": {
      -        "description": "Identical-input retry key",
      -        "maxLength": 255,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "readMode": {
      -        "const": "custom_fields_only",
      -        "description": "Custom fields from stored text",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "fileVersionId",
      -      "idempotencyKey",
      -      "readMode"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "customFieldKeys": {
      +        "not": {}
      +      },
      +      "fileVersionId": {
      +        "description": "Stored version to re-read",
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "ID",
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "idempotencyKey": {
      +        "description": "Same-input retry key",
      +        "maxLength": 255,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "readMode": {
      +        "const": "full",
      +        "description": "Document re-read (default)",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "fileVersionId",
      +      "idempotencyKey"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "customFieldKeys": {
      +        "description": "custom_fields_only keys; omit for all",
      +        "items": {
      +          "maxLength": 255,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 200,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "fileVersionId": {
      +        "description": "Stored version to re-read",
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "ID",
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "idempotencyKey": {
      +        "description": "Same-input retry key",
      +        "maxLength": 255,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "readMode": {
      +        "const": "custom_fields_only",
      +        "description": "Custom fields from stored text",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "fileVersionId",
      +      "idempotencyKey",
      +      "readMode"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Added

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds context beyond them: what is overwritten (extraction snapshot/status), that extraction runs through an external AI, that it consumes no Parser credits, that trial caps apply unless subscribed, and that field proposals require human approval in Contracko and are not applied by this call. This is exactly the kind of mutation, cost, and approval disclosure annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and effect are front-loaded in the first clause, and each subsequent clause covers a distinct concern (return handling, alternative tool, cost, limits, approval). The telegraphic fragments ('No Parser credits', 'Subscribe to lift CLM trial caps') are efficient but slightly under-contextualized and border on marketing copy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, asynchronous-style reprocessing call with no output schema, the description covers effect, follow-up tools, cost, and approval requirements. It stops short of stating whether the call is synchronous or how the returned run should be polled, which leaves a small gap for an agent orchestrating the workflow.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so id, fileVersionId, idempotencyKey, and the readMode const variants are already documented in the schema. The description adds no further meaning about readMode (full vs custom_fields_only) or customFieldKeys, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('Re-read a document') and immediately states the effect ('replace saved extraction snapshot/status'), which separates it from read-only siblings such as clm_get_contract_analysis. An agent can distinguish this from clm_get_contract_reprocess_run or clm_get_contract_analysis without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names an explicit alternative and the condition that selects it ('Use clm_get_contract_analysis to read stored insights without extraction'), and it names the follow-up tools (clm_get_contract_reprocess_run, then clm_get_contract_reconciliation) so the agent knows the correct next call in the workflow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.