Skip to main content
Glama

Write a document (PDF, Word, PowerPoint, Excel, CSV or Markdown)

tarkle_create_document

Writes a NEW document from content you give: format pdf, docx or pptx take markdown (for pptx an outline: "# Title" is the title slide and its first line the subtitle, each "## Heading" is a slide, bullets become bullet points, a table gets its own slide); md takes markdown; xlsx and csv take table (columns and rows of text, up to 12 columns and 500 rows; Excel keeps numbers as numbers and codes with leading zeros as text). Up to 60,000 characters of Markdown. Gather the facts first and write only what they showed. sources: ids of the files the document is based on (up to 10): a true Sources list is added from their real names. name is required (the extension is added). A NEW file is saved (the source or template is never changed) and its fileId is returned; a taken name is refused (NAME_TAKEN). The same generators and limits as the Tarkle chat and the API.

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": {
      "workspaceId": "<workspaceId>",
      "name": "<name>",
      "format": "<format>"
    },
    "name": "tarkle_create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName for the new file. The extension for format is added.
tableNoThe content for xlsx and csv: column headings and rows of text.
formatYesThe kind of document to write. Give markdown for pdf, docx, pptx and md, and table for xlsx and csv.
sourcesNoFiles the document is based on, each a fileId from tarkle_list_files or tarkle_list_bin. A Sources list built from their names is added to the document.
folderIdNoThe folder for the file; null or omit for the library root.
markdownNoThe document's content as Markdown. For pptx, write an outline: # Title is the title slide and each ## Heading is a slide.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
workspaceIdYesThe workspace's id from tarkle_list_workspaces.

Output Schema

NameRequiredDescriptionDefault
fileNo
notesNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses the write outcome (a new file plus returned fileId), the name-collision behavior (a taken name is refused with NAME_TAKEN), the size limits (60,000 characters, 12 columns, 500 rows, 10 sources), and that a Sources list is generated from real file names. This is unusually rich behavioral context for a non-destructive creation tool.

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?

The core action and format-to-content mapping are front-loaded in the first sentence, and the paragraph is dense but free of filler. The nested parentheticals for pptx and table limits make it slightly harder to scan than a bulleted structure would.

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 an eight-parameter creation tool with a nested table object and an output schema, the description covers content format, limits, source attribution, naming rules, and the failure mode, while the return value is carried by the output schema. Nothing an agent needs to call it correctly is missing.

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 would be 3, but the description earns extra credit by explaining the pptx outline grammar ("# Title" becomes the title slide with its first line as subtitle, each "## Heading" a slide) and by noting that Excel preserves numbers and leading-zero codes as text.

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?

"Writes a NEW document from content you give" is a specific verb plus resource, and the description enumerates the six supported formats and what content each consumes. It also explicitly separates itself from editing/conversion siblings by stating a NEW file is saved and the source or template is never changed.

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 tells the agent which content parameter pairs with which format (markdown for pdf/docx/pptx/md, table for xlsx/csv) and adds a preparation instruction: gather the facts first and write only what they showed. It stops short of naming alternative tools or stating when-not to use this one.

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.