Skip to main content
Glama

Create doc

create_doc

Create a doc (a long-form document: briefs, scripts, notes, reports) inside a board. The board shows it as a doc tile; people open it in a side panel or as its own page. The body is HTML or plain text. For when the user asks for a new doc; edit_doc changes existing ones.

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": {
      "board_id": "<board_id>",
      "name": "<name>"
    },
    "name": "create_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoCanvas x of the doc tile. Omitted: placed after the board's content
yNoCanvas y of the doc tile
nameYesDoc title
contentNoBody of the doc
board_idYesBoard the doc lives in: it appears there as a doc tile and follows the board's access

Output Schema

NameRequiredDescriptionDefault
dataYes
actionYes
changedNo
resourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this is a non-destructive, non-idempotent, non-read-only write, so safety is covered. The description adds context the annotations cannot: the doc becomes a tile on the board, opens in a side panel or standalone page, and the body accepts HTML or plain text. It does not address duplicate-name behavior or permissions beyond the board-inheritance note already carried by the schema.

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 purpose and resource definition lead, followed by rendering behavior, accepted format, and the alternative tool, so nothing critical is buried. The side-panel-versus-own-page sentence is slightly more detail than an agent strictly needs, keeping it just shy of a 5.

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 five-parameter creation tool with an output schema, the description covers what is created, where it lands, what format the body takes, and which sibling handles edits. It doesn't mention whether creation can fail on name collisions or what access is required, but the schema's board-access note partly fills that 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 description coverage is 100%, so all five parameters including x/y placement and board_id access inheritance are already documented, making 3 the baseline. The description still earns a point by specifying that the content parameter takes "HTML or plain text," a format constraint the schema's generic "Body of the doc" does not convey.

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?

The description uses a specific verb and resource ("Create a doc") and then defines the resource concretely as "a long-form document: briefs, scripts, notes, reports," distinguishing it from decks or boards in the sibling set. It also scopes the placement ("inside a board"), so an agent can differentiate it from edit_doc 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 Guidelines4/5

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

It gives an explicit trigger ("when the user asks for a new doc") and names the alternative it is not ("edit_doc changes existing ones"). What's missing is a stated exclusion against creating other content types on the same board, e.g. create_deck for slides, so the boundary between doc and deck must be inferred from the word "long-form."

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.

Resources