Skip to main content
Glama

create_document

Create a new text document (markdown or plain text). For binary files (PDF, DOCX), use the web UI. If the user is working inside a VSCode workspace and a <workspace>/.bilg/bilg.config.json exists, prefer that file's projectName over the API key's default project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoFolder path within the project, e.g. 'decisions'
tagsNo
titleNo
contentYesMarkdown or plain text content
fileNameYese.g. 'powersync-decision.md'
projectNameNoDefaults to the API key's default project

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/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 of behavioral disclosure. It adds useful behavior: binary files are not supported here, and projectName can be overridden by a workspace config. However, it does not disclose side effects such as overwrite behavior, permission requirements, or what the tool returns on success.

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 tight sentences with no filler; the main purpose is front-loaded and the boundary condition is stated immediately. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is adequate for a basic invocation with required fields and adds valuable projectName precedence context. However, with no output schema and no annotations, it leaves gaps around tags/title semantics, expected return value, and behavior when the target fileName already exists.

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 67%, so the baseline is roughly 3. The description adds meaning to content by specifying markdown/plain text and clarifies projectName resolution via the VSCode config file. Tags and title are left semantically undocumented, so the description only partially compensates for the schema gaps.

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 description clearly states the action ('Create') and resource ('a new text document'), and pins down the format as markdown or plain text. It does not explicitly contrast with sibling creation tools like create_decision or create_task, which leaves some ambiguity about when to pick this tool over them.

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?

The description gives a concrete exclusion: binary files such as PDF and DOCX should be handled through the web UI. It also provides a conditional rule for preferring the VSCode workspace projectName, which is useful context for invocation. It stops short of explaining when to use this instead of sibling creation tools.

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