Skip to main content
Glama

Save a document

tp_save_document
Destructive

Saves a new document to the user's TransformPipe account and returns its id, size and, when shared, its URL. Use it when the user asks to save, keep or store content, or to publish it as a link. The source is Markdown, or HTML, CSV, TSV, JSON, plain text, RTF or ENEX named in from, converted on save. folder saves it into a folder by id or path and creates missing folders on the path. share sets who can open it: "private" (default), "link" (anyone with the URL) or "people" (the addresses in emails, who are emailed a link). A share of "link" or "people", or a folder that is shared or inside a shared folder, requires confirm: true; without it nothing is saved and the response describes what would be disclosed. replaces records the new document as the next version of an earlier one and leaves that one unchanged. If the account owner has registered webhooks, every save, private ones included, posts the new document's id, name, kind and size to them. Each call creates a new document; to change the text of an existing document, call tp_update_document.

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": {
      "markdown": "<markdown>"
    },
    "name": "tp_save_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoSource format to convert on save. Omit for Markdown. Binary files (.docx, .xlsx, .pptx, .epub, .odt, export .zip) cannot be passed as tool arguments.
nameNoFile name. Default "document.md"; converted content is stored as .md.
shareNoWho can open it: private (default), link or people.
emailsNoReader addresses when `share` is "people".
folderNoFolder to save into: an id from tp_list_folders, or a path from the top such as "Devart AI/Home" (`/` or `›` between names, case-insensitive). Missing folders on the path are created. Omit to save outside any folder.
confirmNoRequired when `share` is "link" or "people", or when `folder` is shared or inside a shared folder. Set true after the user has agreed to that audience.
markdownYesThe content to save: Markdown, or the format named in `from`.
replacesNoId of an earlier document; the new document is recorded as its next version, with its own id and link. tp_list_documents returns ids.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the mutation and non-idempotency profile is known. The description still adds real behavior beyond them: the id/size/URL return shape, the confirm gate that aborts the save and describes what would be disclosed, webhook fan-out on every save including private ones, and the fact that `replaces` leaves the earlier document unchanged. It does not explain error behavior or what the aborted-response body looks like, but with annotations carrying the safety profile and strong added context this sits above baseline.

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-loaded with the action and its return value, then walks through each meaningful parameter and the confirm gate, closing with the sibling disambiguation. It is dense and nearly every clause is substantive, though the webhook sentence and some parameter restatement could be trimmed slightly.

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 8-parameter mutation with external side effects and no output schema, the description covers returns, required confirmation, folder creation, versioning via `replaces`, and webhook notifications. Nothing an agent needs in order to call it safely 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 is 3, but the description adds meaning beyond the schema: conversion happens on save, missing folders on the path are created, `share` of "link"/"people" and shared folders require `confirm: true`, and `emails` recipients are emailed a link. The `markdown` parameter itself is not elaborated, keeping this from a 5.

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?

"Saves a new document to the user's TransformPipe account and returns its id, size and, when shared, its URL" gives a specific verb, resource and outcome. The closing sentence explicitly contrasts it with tp_update_document ("Each call creates a new document; to change the text of an existing document, call tp_update_document"), so an agent can distinguish it from the update sibling without opening either schema.

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

Usage Guidelines5/5

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

"Use it when the user asks to save, keep or store content, or to publish it as a link" names the triggering intents, and the final sentence names the alternative tool and the condition that selects it. The confirm-gate paragraph also tells the agent when a call will not proceed, which is actionable routing guidance.

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.