Skip to main content
Glama

Create document

create-document

Create a markdown document in the graph's document store.

WHEN TO USE:

  • To save accounting policies, procedures, or reference documents

  • To record observations, analysis notes, or research findings (use folder="memory")

  • To create any persistent document that should be searchable via search-documents

PARAMETERS:

  • folder groups the document: "policies" for accounting policies, close procedures and depreciation methods; "memory" for analysis, observations and findings; omit it for general documents

  • content is markdown. Use ## Section headings — sections are split on them and become individually searchable

  • YAML frontmatter sets title, tags and folder inline

RETURNS: The created document's id and metadata.

NOTES:

  • Stored in PostgreSQL and indexed in OpenSearch, so it is reachable via search-documents once created

  • Tags and folders are the filters available to list-documents

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>",
      "content": "<content>"
    },
    "name": "create-document"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTags for filtering (e.g., ['depreciation', 'fixed-assets'])
titleYesDocument title
folderNoFolder for organization (e.g., 'policies', 'memory', 'procedures')
contentYesMarkdown content (max 500,000 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the write/safety profile; the description adds behavior they cannot convey — content is split on '##' headings into individually searchable sections, YAML frontmatter sets title/tags/folder inline, and the document is persisted to PostgreSQL and indexed in OpenSearch so it becomes reachable via search-documents. That is exactly the extra context an agent needs for a non-idempotent write.

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?

Front-loaded purpose sentence followed by labeled WHEN TO USE / PARAMETERS / RETURNS / NOTES blocks with no filler. The RETURNS line earns its place because no output schema exists, and the NOTES lines carry distinct behavioral facts (indexing, available filters).

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 4-parameter, non-idempotent write tool with no output schema, the definition covers purpose, usage, parameter meaning, persistence/indexing side effects, and even what is returned (id and metadata). Nothing essential to calling it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% (baseline 3), but the description goes beyond the schema by explaining what 'folder' values mean semantically ('policies' for accounting policies/procedures/depreciation, 'memory' for analysis and findings) and that 'content' heading structure affects downstream searchability and that frontmatter can carry title/tags/folder.

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 first line states a specific verb and resource ('Create a markdown document in the graph's document store'), and the WHEN TO USE bullets clarify that it targets persistent, searchable documents. It does not distinguish this tool from the sibling 'create-document-upload' / 'complete-document-upload' path, so an agent cannot tell from the description alone which creation route applies to file-based content.

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?

Provides three concrete when-to-use scenarios and even prescribes the folder value ('policies' vs 'memory' vs omitted) for each, which is real routing guidance. It stops short of exclusions or naming an alternative tool when this one is the wrong choice.

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.