Skip to main content
Glama

Write a film file

write_file
Destructive

Writes one file of the film (film/Film.tsx is the entry) and compiles the whole film. Returns what is wrong, or that it plays. Use edit_file for small changes afterwards.

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": {
      "video": "<video>",
      "path": "<path>",
      "content": "<content>"
    },
    "name": "write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesfilm/<Name>.tsx or film/<Name>.ts
videoYesThe video's id, from start_video
contentYesThe whole file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already mark this as destructive and non-read-only, and the description adds important behavior beyond them: the whole film is compiled and the result reports either errors or successful playback. It does not spell out overwrite semantics or auth/rate-limit concerns, but it covers the main side effect and outcome.

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?

The description is three short sentences, front-loaded with the action and side effect, then the return behavior, then the sibling alternative. Every sentence adds information and there is no filler.

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 three-parameter mutation tool with no output schema, the description explains the compile side effect and broadly describes the return value. It does not fully specify the form of the error output or overwrite behavior, but annotations and schema cover enough of the remaining safety and parameter context.

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 coverage is 100%, so the schema already explains path, video, and content. The description adds only the entry-file significance of film/Film.tsx and the fact that content is one file of the whole film; that is useful but limited beyond the structured parameter docs.

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 gives a specific verb and resource: it writes one file of the film and compiles the whole film. It also identifies the entry file and names edit_file as the sibling for small changes, so the agent can distinguish the operation without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It explicitly routes small changes to edit_file and implies write_file is for writing a complete file followed by compilation. The condition that selects the alternative is stated directly.

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