Skip to main content
Glama

Convert document into Docling document

convert_document_into_docling_document

Convert a document from a URL or local path into a Docling document, cache it, and return a unique key. Skips conversion if already cached, indicated by a boolean.

Instructions

Convert a document of any type from a URL or local path and store in local cache.

This tool takes a document's URL or local file path, converts it using the configured converter (remote API or local), and stores the resulting Docling document in a local cache. It returns an output with a boolean set to False along with the document's unique cache key. If the document was already in the local cache, the conversion is skipped and the output boolean is set to True.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesThe URL or local file path to the document. Object-storage URIs (abfs://, az://, gcs://, gs://, s3://) are supported when the matching provider extra is installed.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_cacheYes
document_keyYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

The description discloses meaningful behavior beyond the annotations: conversion uses a configured converter (remote API or local), results are stored in a local cache, and conversion is skipped if the document is already cached. It also explains the boolean return semantics (False for newly converted, True for cached), which is valuable operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: a one-sentence summary is front-loaded, followed by a concise paragraph explaining cache behavior and return semantics. Every sentence adds useful information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with an output schema, this description is complete. It covers the conversion pipeline, caching side effect, skip behavior, and return boolean meaning. The agent has enough information to call the tool correctly and interpret its result.

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 100%, and the schema already explains the source parameter, including object-storage URI support. The description only repeats that the source may be a URL or local path without adding new parameter-level detail, so the baseline of 3 is appropriate.

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?

The description opens with a specific verb and resource: 'Convert a document of any type from a URL or local path and store in local cache.' This clearly distinguishes it from sibling tools like convert_directory_files_into_docling_document and create_new_docling_document by specifying single-document conversion from a URL or path.

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?

The description establishes clear context: it is for converting a single document from a URL or local path, not a directory and not creating a blank document. It does not explicitly name alternatives or exclusion conditions, but the source scope is clear enough for an agent to select it appropriately.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/docling-project/docling-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server