Skip to main content
Glama

Read File

read_file

Read files from a Remotion project to inspect existing code before targeted edits, supporting .tsx, .ts, .css, .json, and package.json within the project root.

Instructions

Read any file from the Remotion project. Use this to inspect existing code before making targeted edits with write_file. No extension restriction — you can read .tsx, .ts, .css, .json, package.json, etc. Only files inside the project root are accessible.

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": {
      "projectPath": "<projectPath>",
      "filePath": "<filePath>"
    },
    "name": "read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesPath relative to project root of the file to read. Example: "src/overlays/BouncingBall.tsx"
projectPathYesAbsolute path to the Remotion project root

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 behavioral burden; it does disclose a genuine constraint in "Only files inside the project root are accessible" and removes an assumed limitation with "No extension restriction." However, it says nothing about failure behavior for missing paths, encoding, size limits, or what the call actually returns, leaving the safety/mutation profile unstated.

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 core action and scoping rules; nothing is padded or repeated verbatim from the schema. The extension list is mildly redundant with the schema's example path but earns its place by making the "no extension restriction" point concrete.

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 simple two-parameter read tool with no output schema, the description covers purpose, scope, and the project-root restriction adequately. The main remaining gap is the return shape (presumably file contents as text), which an agent must infer since no output schema 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 coverage is 100%, so both projectPath and filePath are already documented in the schema with an example path, establishing the baseline of 3. The description only reinforces the sandbox constraint ("inside the project root") without adding syntax, resolution rules for relative paths, or traversal guidance beyond the schema.

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 ("Read any file from the Remotion project") and immediately bounds the scope with "No extension restriction" plus concrete examples (.tsx, .ts, .css, .json). It separates itself from write_file by naming the edit tool it precedes, though it never contrasts with read-adjacent siblings like scan_assets or capture_frame.

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 this to inspect existing code before making targeted edits with write_file" gives a clear situational trigger and ties the tool into a read-then-write workflow. There are no explicit when-not-to-use conditions, so an agent gets positive guidance but no exclusions.

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