Skip to main content
Glama

Create document

document_create

Create a document from inline text/markdown/html and fan out target languages.

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": {
      "content": "<content>"
    },
    "name": "document_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoDocument title (default "Untitled document").
contentYesThe source text, in the format named by content_type.
project_idNoProject to file the document in (id from project_list).
content_typeNoFormat of content (default markdown).
glossary_idsNoGlossary ids (from glossary_list) to apply to the translation.
source_languageNoLanguage of the content, e.g. "en"; detected from the text when omitted.
target_languageNoFirst target language, e.g. "de" (default "en").
target_languagesNoMore target languages, each a sibling version: language codes, e.g. ["de", "fr"].
styleguide_version_idsNoStyle-guide VERSION ids (active_version_id from styleguide_list) to apply.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / content / description
      Added value: +"The source text, in the format named by content_type."
    • addedInput schema / properties / content_type / description
      Added value: +"Format of content (default markdown)."
    • addedInput schema / properties / glossary_ids / description
      Added value: +"Glossary ids (from glossary_list) to apply to the translation."
    • addedInput schema / properties / project_id / description
      Added value: +"Project to file the document in (id from project_list)."
    • addedInput schema / properties / source_language / description
      Added value: +"Language of the content, e.g. \"en\"; detected from the text when omitted."
    • addedInput schema / properties / styleguide_version_ids / description
      Added value: +"Style-guide VERSION ids (active_version_id from styleguide_list) to apply."
    • addedInput schema / properties / target_language / description
      Added value: +"First target language, e.g. \"de\" (default \"en\")."
    • addedInput schema / properties / target_languages / description
      Added value: +"More target languages, each a sibling version: language codes, e.g. [\"de\", \"fr\"]."
    • addedInput schema / properties / title / description
      Added value: +"Document title (default \"Untitled document\")."
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false, so the safety profile is covered. The description adds that target_languages produce sibling versions, which is useful behavioral context. However, it says nothing about whether creation triggers translation runs, is synchronous or asynchronous, or what happens when target languages are omitted (despite the "en" default in the schema).

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?

A single sentence with zero padding, front-loaded on the action and then the input formats and language behavior. Nothing wasteful.

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

Completeness3/5

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

For a nine-parameter mutation with no output schema, the definition covers the what and the input sourcing but omits the outcome: no mention of what is returned (document id vs. translation runs), whether processing is async, or how translation jobs relate to the created document. Adequate but leaves real gaps an agent would need to fill.

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%, so all nine parameters are already documented in the schema, which sets the baseline at 3. The description's "fan out target languages" adds a small amount of meaning around the multi-language behavior, but no syntax, defaults, or constraints beyond what the schema supplies.

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 gives a specific verb+resource ("Create a document") and states the accepted input formats (inline text/markdown/html) plus the language fan-out behavior. It is clear what the tool does, though it never names or distinguishes itself from siblings such as strings_import or document_add_languages.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not guidance. The phrase "fan out target languages" hints that multiple languages can be handled at creation, but the description never states that document_add_languages should be used for later additions, nor does it explain prerequisites like needing a project_id.

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.