Skip to main content
Glama

Lilia Editor

Check an import

import_status
Read-onlyIdempotent

Where an import started with start_import, or a PDF or image sent to import_document, is: waiting (no file dropped yet), working (Lilia is reading a PDF or scan: ask again in 10 to 20 seconds), done (with the new document's id, and the warnings the import left for the author to check against the original, such as a symbol it couldn't read) or failed (with the reason).

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": {
      "importId": "<importId>"
    },
    "name": "import_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
importIdYesThe importId from start_import or import_document.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent and closed-world, and the description adds substantial behavior beyond that: the full state machine, the recommended retry interval for the 'working' state, and the fact that 'done' yields a new document id plus author-facing warnings. Since there is no output schema, this is the only place an agent can learn what the tool returns.

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?

It is a single front-loaded sentence with no filler, and the four states are clearly delimited by their parenthetical explanations. The deeply nested parentheses make it dense to parse, but 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 one-parameter read tool with no output schema, the description covers the return states, the polling cadence, and the payload of a successful result — which is the essential burden here. It omits edge cases such as an unrecognized or expired importId, which leaves a small gap.

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?

There is a single parameter with 100% schema description coverage, and the schema already says the importId comes from start_import or import_document. The description repeats that provenance without adding format, validation, or failure behavior, so the baseline of 3 applies.

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 description names the resource (an import) and the two tools that create one (start_import, import_document), then enumerates the four possible states. It is clear this is a status-check rather than a mutation, though the main clause is grammatically elliptical ('Where an import ... is'), and it never explicitly distinguishes itself from the bulk_import_status sibling.

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?

It states the prerequisite context (only for imports started with start_import or sent to import_document) and gives concrete polling guidance: while 'working', ask again in 10 to 20 seconds. It does not say when not to use it or how to handle an unknown or expired importId, so it stops short of full routing guidance.

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