Skip to main content
Glama

extract_key_terms

Extracts key terms from plain-text agreements by identifying each CUAD clause type and returning up to two quoted supporting sentences, so you can review contract obligations quickly.

Instructions

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "extract_key_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose real behavioral traits: it reads exactly one file, only .txt or .md inside an allowed folder, and resolves relative paths against that folder. The phrase 'whether the model found it' signals LLM-based, possibly non-deterministic extraction, and 'up to two sentences quoted as written' plus 'best first' discloses output semantics. It omits failure behavior (missing file, path outside the allowed folder) and any latency or cost hints.

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?

One dense sentence with no wasted wording; the input constraints are parenthesized and the output contract follows the colon. It is packed rather than front-loaded — the reader must parse a nested clause to find the return shape — but every clause earns its place.

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?

There is no output schema, so the description must explain the return value, and it does: per-clause-type presence plus up to two verbatim sentences, ranked best first. Combined with format and path constraints, an agent has enough to call it correctly; only error handling and the definition of the allowed folder are missing.

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

Parameters4/5

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

The single parameter has 0% schema description coverage, so the description must compensate, and it largely does: it states the accepted extensions (.txt or .md), the folder restriction, and that a relative path is read from the allowed folder. It does not say what happens with an absolute path or define the allowed folder itself, leaving a small gap.

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

Purpose4/5

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

The definition names the resource (key terms of one agreement) and the exact output shape: per clause type, a found/not-found flag plus up to two verbatim sentences, ordered best first. That lets an agent distinguish it from list_clause_types, which only enumerates types. It stops short of an explicit verb phrase or a direct sibling contrast, so it is clear but not maximally differentiated.

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

Usage Guidelines3/5

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

Usage is implied by the scope phrase 'one agreement' and the input constraints (.txt or .md, inside the allowed folder), which tell the agent what inputs are valid. There is no explicit when-to-use statement or routing rule such as calling list_clause_types first to discover clause types, and no statement of when not to use it. Adequate but leaves the alternative selection to inference.

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