Skip to main content
Glama

Create file

create_file

Create a design file (with one empty page). Returns its id and URL. Without a project it is a draft only you (the user) can see. It goes to the default workspace, or to workspace when given; with projectId, to that project's workspace.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
projectNoOr the project's name: created (open to the workspace) if it does not exist.
projectIdNoProject to create the file in (see list_files), so the team sees it.
workspaceNoThe workspace to create it in: its id or name (whoami lists them). Default: the default workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the description does not need to argue safety. It adds meaningful behavior the annotations cannot convey: the new file contains exactly one empty page, the response includes id and URL, and a file created without a project is a private draft. It says nothing about permissions or name-collision behavior, so it is not a 5.

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?

Four short sentences, front-loaded with the action and the return value, then scoping and resolution rules. Every sentence carries information, though the parenthetical '(the user)' is slightly awkward and the workspace-resolution clause is dense enough to need a second read.

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 4-parameter creation tool with no output schema, the definition covers what is created, what comes back (id and URL), where it lands, and its visibility. The remaining gaps — uniqueness constraints on name, required permissions, and behavior on failure — are real but secondary for an agent to invoke it correctly.

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 coverage is 75%, so the schema already explains most parameters and the baseline is 3. The description earns an extra point by stating the precedence rule — 'it goes to the default workspace, or to workspace when given; with projectId, to that project's workspace' — which clarifies the interaction between workspace and projectId that the schema leaves implicit.

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 opens with a specific verb and resource — 'Create a design file (with one empty page)' — and adds two concrete facts (returns id and URL). That is enough to separate it from create_branch, create_frame, and make_template, which operate on structures inside a file. It stops short of naming a sibling explicitly, so it lands at 4 rather than 5.

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 real conditional guidance: omit project/projectId for a private draft, pass projectId for team visibility. The schema note about 'project' auto-creating an open-to-workspace project is echoed by the description's resolution order. It does not state any when-not-to-use or point to an alternative tool, which keeps it out of 5 territory.

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.