Skip to main content
Glama

read_file

Reads the full text of LaTeX project files such as .tex, .bib, .cls, and .sty. Use get_project_files first to obtain the file ID needed for a CSTCloud LaTeX project.

Instructions

Read the content of a document (.tex, .bib, .cls, .sty, etc.) in a CSTCloud LaTeX project. Returns the full text content of the file. Use get_project_files first to find the file ID.

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": {
      "project_id": "<project_id>",
      "file_id": "<file_id>"
    },
    "name": "read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesThe file/document ID (from get_project_files)
project_idYesThe project ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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. It usefully discloses that the tool returns full text content (not a snippet or metadata), but says nothing about failure behavior for missing/binary files, size limits, encoding, or whether access is read-only.

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: what it reads and where, what it returns, and the prerequisite step. Nothing is redundant or buried, and the purpose is front-loaded.

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, return value, and the prerequisite call. It is nearly complete, with only edge-case read behavior (missing/binary files, size caps) left unspecified.

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 both parameters are already documented in the schema. The description's note that the file ID comes from get_project_files largely restates the schema text rather than adding new semantics, so the baseline 3 applies.

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 names a specific verb and resource ('Read the content of a document') and scopes it precisely to CSTCloud LaTeX project files with example extensions (.tex, .bib, etc.). It also states the return shape ('full text content'), so an agent can distinguish it from write_file without opening a schema.

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 a concrete prerequisite ordering ('Use get_project_files first to find the file ID'), which is real usage guidance for the required file_id. It does not explicitly contrast with write_file or say when not to use it, so it stops short of full when/when-not guidance.

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