Skip to main content
Glama

Kiescy Documents

Import an existing document

import_document

Reads the user's existing document from a public URL, pasted text, or a file (base64; PDF, DOCX, HTML, Markdown or TXT, up to 8 MB). Returns its outline, facts found (emails, return periods, governing law), suggested answers and findings (missing topics, outdated clauses). Saves nothing to the document yet: then call apply_import.

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": {
      "type": "<type>"
    },
    "name": "import_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
textNo
typeYes
filenameNo
file_base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, but the description adds the crucial state detail that nothing is persisted yet and apply_import must follow, plus format and 8 MB input limits. It does not say whether an intermediate import session is created (which would reconcile the non-read-only hint) or what happens on failure, so a small gap remains.

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?

Three tight sentences, front-loaded with sources and formats, then return payload, then the hand-off to apply_import. Dense but every clause carries information; the parenthetical format list is long but justified.

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?

With no output schema, the description usefully enumerates what comes back (outline, extracted facts, suggested answers, findings). Remaining gaps are the type enum semantics and whether the three source parameters are mutually exclusive, which matter for correct invocation.

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 0%, so the description has to carry the parameters. It explains url, text, and file_base64 with formats and a size cap, but says nothing about the required type enum (11 document types) or filename, leaving two of five parameters undocumented anywhere.

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 (reads) and resource (the user's existing document) plus the accepted sources (public URL, pasted text, base64 file), formats, and size cap. It also names the sibling it is not, apply_import, so an agent can tell import from apply 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 Guidelines4/5

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

Gives a clear next step ('Saves nothing to the document yet: then call apply_import'), which is the key routing decision for this tool. It stops short of distinguishing the read step from a sibling like analyze_document or create_document, so it is strong but not exhaustive.

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.

Resources