Skip to main content
Glama

Fill a Word template into a new Word file

tarkle_fill_template

fileId is a Word (.docx) template with {placeholders}; values maps each placeholder name, exactly as written in the template, to text, or to a list of rows for a repeated block or table row (for example items: [{ item: "Setup", price: "100" }]). Every placeholder needs a value and every value a placeholder; otherwise the call is refused and names what is missing, unused and the template's own placeholders. name sets the new file's name (default " (filled).docx"). 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>",
      "fileId": "<fileId>",
      "values": "<values>"
    },
    "name": "tarkle_fill_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName for the new file. When omitted, "<template name> (filled).docx".
fileIdYesThe Word (.docx) template, as a fileId from tarkle_list_files or tarkle_list_bin.
valuesYesMaps each placeholder name in the template, exactly as written there, to its text, or to a list of rows for a repeated block or table row.
folderIdNoThe folder for the new file; null for the library root; omit to keep the template's folder.
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

A3.8/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, so the description's added value is in the specifics: a new file is created while the template is untouched, name collisions fail with NAME_TAKEN, and incomplete placeholder maps are refused with a report of missing and unused names. The closing 'same generators and limits as the Tarkle chat and the API' is vague about actual limits and says nothing about permissions, which keeps it from a 5.

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 dense paragraph where nearly every clause carries actionable information (validation rule, default name, side effect, error code). The weakness is ordering: it opens with parameter semantics rather than the core 'fill a template into a new file' action, so the purpose lands second.

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 6-parameter mutation tool with nested objects, the description covers the failure modes an agent most needs to avoid (incomplete maps, duplicate names) and confirms the source is not modified. An output schema exists so return values needn't be explained, and the undocumented parameters are fully described in the schema, leaving little material gap.

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 is 3, but the description genuinely adds meaning for `values`: placeholders must match names exactly as written, and a list of row objects drives a repeated block or table row, illustrated with a concrete items/price example. It also restates the `name` default; `folderId` and `llm_model` are left entirely to the schema.

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 makes the operation concrete: a .docx template with {placeholders} is filled from a `values` map and a NEW file is saved, with its fileId returned. The 'source or template is never changed' line implicitly separates it from editing tools like tarkle_edit_office_file, but no sibling is named, so differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

Usage conditions are implied by the mechanics (you need a template fileId and a complete placeholder map) and by the NAME_TAKEN and completeness-refusal rules, but there is no explicit 'use this when X, use edit_office_file when Y' guidance. An agent can figure out when to call it, but must do that reasoning itself.

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.