Skip to main content
Glama

scan_contract_files

Destructive

Look through a connected drive and propose contract bundles from FILE AND FOLDER NAMES: which file is the contract, which are annexes, amendments, terminations and handover protocols, and which belong together. Required: root_id — roots[].id from list_file_accounts (the provider drive id works too). Optional: folder_id, query, limit (default 200), min_confidence (default 0.5). Reads names only — no file is downloaded, nothing is written. Every bundle carries the reason it was grouped and a confidence; below 0.5 it is a finding to look at, not a proposal to accept. Use import_contract_group to take one over.

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": {
      "root_id": "<root_id>"
    },
    "name": "scan_contract_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of entries to return
queryNoSearch text
root_idYesID of the root folder
folder_idNoID of the folder
min_confidenceNoMinimum grouping confidence for proposed bundles, 0..1 (default 0.5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / folder_id / description
      Added value: +"ID of the folder"
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of entries to return"
    • addedInput schema / properties / min_confidence / description
      Added value: +"Minimum grouping confidence for proposed bundles, 0..1 (default 0.5)"
    • addedInput schema / properties / query / description
      Added value: +"Search text"
    • addedInput schema / properties / root_id / description
      Added value: +"ID of the root folder"
  2. First observed

TDQS

A3.9/5.0
Behavior1/5

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

The description asserts 'Reads names only — no file is downloaded, nothing is written', while the annotations declare readOnlyHint=false and destructiveHint=true. An agent cannot know whether invoking this mutates state or is a pure read, and the two sources cannot both be right. This is a direct conflict about side effects, so under the rubric it scores 1 despite the otherwise rich behavioral detail (confidence semantics, grouping rationale).

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 but well-ordered paragraph: purpose first, then the classification vocabulary, then required/optional parameters with defaults, then behavioral guarantees, then the follow-up tool. The capitalized 'FILE AND FOLDER NAMES' wastes a little space, but nearly every clause carries information an agent needs.

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 five-parameter scan tool with no output schema, the description supplies the essentials: input source for root_id, defaults, the fact that results are bundles carrying a reason and confidence, and the handoff to import_contract_group. Remaining gaps are minor (return shape, pagination beyond 'limit'), but the side-effect contradiction prevents calling it fully complete.

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?

Schema coverage is already 100%, so the baseline is 3, but the description adds real meaning: it identifies where root_id must come from (roots[].id from list_file_accounts, or the provider drive id), and frames min_confidence as the boundary between a 'finding' and a 'proposal to accept'. That interpretation of the threshold is not derivable from the schema's 'Minimum grouping confidence' text alone.

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?

States a specific verb and resource: it looks through a connected drive and proposes contract bundles derived from file and folder names, enumerating the roles it classifies (contract, annex, amendment, termination, handover protocol). This is clearly distinguishable from scan_contract_folder (a single-folder scan) and import_contract_group (which commits a bundle).

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 gives the prerequisite for the required parameter (root_id comes from roots[].id of list_file_accounts), the meaning of a low-confidence result ('a finding to look at, not a proposal to accept'), and the explicit next step ('Use import_contract_group to take one over'). That covers when to use it, how to interpret output, and the alternative for acting on results.

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.