Skip to main content
Glama

Change a copy of a Word, PowerPoint or Excel file

tarkle_edit_office_file

Saves changes to a COPY of the file. The kind of file decides the fields: .docx: edits ([{find, replace}], exact text, up to 50), inserts (paragraphs, a table, or a picture by fileId of a PNG, JPG or GIF, placed after some text or at the end), trackChanges (the changes become tracked changes by Tarkle that the person accepts or rejects in Word); .pptx: edits ([{find, replace}] on every slide where the text appears); .xlsx: cells ([{sheet, cell, value}], up to 100; an empty value clears the cell) and appendRows ([{sheet, rows}], up to 200 rows). Read the file first and copy the text to find exactly; every text, anchor or sheet named must exist or the call is refused and says which. A cell with a formula, a merged cell, or a workbook with charts, pictures, pivot tables or macros is refused. name sets the new file's name (default " (edited)."). 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>"
    },
    "name": "tarkle_edit_office_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName for the new file. When omitted, "<name> (edited).<ext>".
cellsNoFor .xlsx: cells to change.
editsNoFor .docx and .pptx: text replacements. Each finds exact text and replaces it.
fileIdYesA fileId from tarkle_list_files or tarkle_list_bin.
insertsNoFor .docx: content to add after some text, or at the end of the document.
folderIdNoThe folder for the new file; null for the library root; omit to keep the source'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.
appendRowsNoFor .xlsx: rows to add at the end of a sheet.
workspaceIdYesThe workspace's id from tarkle_list_workspaces.
trackChangesNoFor .docx: true saves the changes as tracked changes that the person can accept or reject in Word.

Output Schema

NameRequiredDescriptionDefault
fileNo
notesNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior3/5

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

Despite the high score rationale, the description does far more than the annotations (destructiveHint=false, not idempotent): it discloses the source is never mutated, the default new name, NAME_TAKEN and refusal-on-missing-anchor errors, and per-format caps. The only gap against a 5 is that it does not say whether a failure partway through saves nothing or something.

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?

Front-loads the single most important fact (a copy is edited, the source is untouched) and every clause carries a rule or limit. Docking one point because the dense semicolon-and-parenthesis run-on buries key constraints like the trackChanges and NAME_TAKEN behavior mid-stream instead of structuring them.

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 10-parameter mutation tool this covers format gating, limits, default naming, error classes, and destination folder behavior, and an output schema already documents the returned fileId. An agent has what it needs to call it correctly on the first attempt.

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 a 3 is the floor, and the description adds real cross-parameter meaning: which parameter applies to which extension, that an empty cell value clears the cell, that inserts can be a paragraph group/table/picture, and that trackChanges turns edits into Word tracked changes. It does not explain the llm_model analytics parameter, but the schema does.

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?

States a specific verb and resource (saves changes to a copy of a Word/PowerPoint/Excel file) and immediately scopes the tool by file extension, so an agent can tell it apart from tarkle_edit_pdf or tarkle_copy_file. It also makes the copy-not-in-place behavior explicit from the first sentence.

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?

Gives concrete prerequisites: 'Read the file first and copy the text to find exactly,' which implicitly routes the agent to the read sibling before calling. It also encodes when-not-to-use via refusal conditions (formula/merged cells, charts, macros) and per-extension applicability, though it never names an alternative tool for unsupported cases.

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.