Skip to main content
Glama

create_file

Creates a new shared Markdown or plain-text file for briefs, decisions, and handoff notes that other AI assistants can read; requires a files:write key.

Instructions

Create a new shared text file (.md or .txt). Use it for briefs, decisions and handoff notes other AI assistants should see. Requires a files:write key.

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": {
      "name": "<name>",
      "content": "<content>"
    },
    "name": "create_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFile name ending in .md or .txt, without slashes.
contentYesFull UTF-8 text content (at most 256 KiB).
request_idNoOptional UUID to make retries idempotent; generated when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1-alpha.2

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It usefully discloses the authorization requirement ('Requires a files:write key') and the shared visibility model, but says nothing about what happens when a name already exists, whether creation is idempotent (the schema's request_id hints at it), or what the call returns.

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?

Three short sentences, front-loaded with the action and format, then purpose, then the access prerequisite. Nothing is redundant or padded.

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?

Auth requirements, format and use case are covered, but for a creation tool with no annotations and no output schema, the agent is left guessing about duplicate-name behavior and what the response contains (e.g. a file identifier). Those omissions matter for correct invocation.

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 name, content size limit and idempotency UUID are already fully documented; the description only repeats the .md/.txt restriction. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

States a specific verb and resource ('Create a new shared text file') plus the constrained formats (.md or .txt), so the agent knows exactly what will be produced. It does not name or contrast with siblings like update_file or register_file, so the create-vs-update boundary is inferred rather than stated.

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?

'Use it for briefs, decisions and handoff notes other AI assistants should see' gives a clear positive context for invoking the tool and implicitly scopes it to shared/visible content. There are no exclusion conditions or named alternatives, which keeps it short of a 5.

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