Skip to main content
Glama

Read the last compile's output.log

read_log
Read-only

Retrieve the full LaTeX compile log from the last compile to inspect detailed errors, line numbers, and package warnings when the compile summary lacks context.

Instructions

Returns the full LaTeX log from the most recent compile call. compile already includes the error count + first few errors in its response — use this only when you need more context (full log, line numbers, package warnings, etc.). The content array shows a summary of !-prefixed error lines at the top, then the log truncated to the last 8000 chars for display. structuredContent.log contains the FULL untruncated log so programmatic callers can grep / parse it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idNoOverleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • addedInput schema / properties / project_id
      Added value: +{
      +  "description": "Overleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it.",
      +  "minLength": 8,
      +  "type": "string"
      +}
  2. First observedv0.3.5

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint, and the description adds substantial behavior: the `content` array puts a `!`-error summary on top and truncates the log to the last 8000 chars, while `structuredContent.log` carries the full untruncated text. That truncation detail is exactly the kind of trait annotations cannot convey. Minor gap: the 8000-char cut is noted for display but the summary section's own size limits are not stated.

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 sentences, front-loaded with what the tool returns, then the routing guidance, then the return-shape details. No restatement of the name or title, and every sentence carries information the agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description explains both return surfaces (the truncated `content` array and the full `structuredContent.log`), which is the key thing an agent must know to decide between grep-style parsing and reading. For a one-parameter read tool, nothing material is missing.

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?

The single `project_id` parameter is fully documented in the schema (100% coverage), including the session-persistence caveat, so the description does not need to restate it. The description adds nothing about the parameter, which is acceptable at this coverage level but yields the baseline rather than a bonus.

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?

States a specific verb and resource: 'Returns the full LaTeX log from the most recent `compile` call.' It scopes the resource precisely (most recent compile) and immediately differentiates itself from the `compile` sibling, which already reports the error count and first few errors.

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?

Gives an explicit when-to-use rule: use this only when you need more context than `compile`'s inline summary, listing the qualifying cases (full log, line numbers, package warnings). It also names the default alternative (`compile`), so the agent knows the cheaper path for ordinary error checks.

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