Skip to main content
Glama

createDocument

Create a new empty Google Doc, optionally in a specified folder, and add initial text or Markdown-formatted content to start a document.

Instructions

Creates a new empty Google Document. Optionally places it in a specific folder and adds initial text content.

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": {
      "title": "<title>"
    },
    "name": "createDocument"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesTitle for the new document.
contentFormatNoHow to interpret initialContent. 'markdown' (default) converts markdown to formatted Google Docs content. 'raw' inserts the text as-is without any conversion.markdown
initialContentNoInitial content to add to the document. By default, markdown syntax is converted to formatted Google Docs content (headings, bold, italic, links, tables, lists, and rich markdown HTML extensions).
parentFolderIdNoID of folder where document should be created. If not provided, creates in Drive root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the composite effects (empty doc creation, optional folder placement, optional initial content) and the default-to-Drive-root behavior, but says nothing about required permissions, which account/Drive is used, or the returned document identifier that an agent would need to chain follow-up calls.

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?

Two short sentences, front-loaded with the core action and followed by the optional modifiers. Nothing is redundant or padded.

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 simple four-parameter creation tool with full schema coverage and no output schema, the description covers what is created and where. The notable omission is that the newly created document (and its ID/link) is what the caller receives, which matters for chaining into readDocument or appendText.

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 four parameters, including the contentFormat enum and its markdown-vs-raw semantics, are already documented in the schema. The description only restates folder placement and initial content at a high level, adding no syntax or format detail beyond it — baseline 3.

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?

"Creates a new empty Google Document" gives a specific verb and resource, and "empty" implicitly contrasts with createDocumentFromTemplate, the closest sibling. It stops short of naming that alternative outright, so the differentiation relies on inference.

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 is only implied: the word "empty" hints that this is for scratch documents rather than template-based creation, but there is no explicit when-to-use/when-not statement nor any named alternative. An agent can guess correctly but is not told.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools