Skip to main content
Glama

Import attached files

clm_import_files
Idempotent

Import chat attachments from short-lived URLs. One contract per document; Contracko reads details. Returns a processing job for clm_get_import_status. To attach related documents, use Add contract documents. No Parser credits. Subscribe to lift trial caps. PDF, Word .docx, text or RTF, <=50 MiB per file.

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": {
      "files": "<files>"
    },
    "name": "clm_import_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesChat attachments
folderIdNoVisible folder; omit for unfiled org root. Hidden/invalid IDs reject all.
allowDuplicateNoAllow duplicate document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / allowDuplicate / description
      Previous value: -"Allow duplicate linked document."New value: +"Allow duplicate document."
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true), and the description adds genuinely new behavior: the call is asynchronous and returns a processing job, each document is interpreted by the parser, and "No Parser credits" are consumed with trial caps applicable. It stops short of describing partial-failure behavior or what the job object contains, but the added operational context is substantial.

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?

Purpose and unit-of-work are front-loaded, and the follow-up tool is named early. The telegraphic, clause-per-sentence style ("No Parser credits." "Subscribe to lift trial caps.") packs information densely but reads as fragmented notes rather than prose, and the commercial messaging is only marginally relevant to invocation.

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 mutating, no-output-schema tool with 3 fully documented parameters, the description covers the important unknowns: async job handling, the one-contract-per-document semantics, format and size limits, and plan gating. The remaining gap is error behavior on partially invalid inputs, which is only hinted at in the schema for `folderId`.

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 100%, so the baseline is 3, and the description earns above that by supplying constraints the schema omits: accepted formats (PDF, Word .docx, text, RTF) and a 50 MiB per-file ceiling, which directly govern what goes in `files`. It says nothing about `folderId` filing or `allowDuplicate`, but those are already documented in the schema.

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 ("Import chat attachments from short-lived URLs") and immediately clarifies the unit of work: "One contract per document; Contracko reads details." It also distinguishes itself from the attachment-oriented sibling by naming "Add contract documents" for related documents, so an agent can separate the two without reading either schema.

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

Usage Guidelines4/5

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

Gives a clear routing rule: use this tool to turn chat attachments into contracts, use "Add contract documents" to attach related documents, and follow up with clm_get_import_status on the returned job. It also flags plan constraints ("Subscribe to lift trial caps"). It lacks an explicit statement of when *not* to use it (e.g., for files already in the org or for non-chat sources), which keeps it short of a 5.

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.