Skip to main content
Glama

compile

Build the LaTeX paper after source edits and report success, changed pages, log location, error positions, page-limit fit, and paragraphs with short final lines.

Instructions

Compile the paper. Returns whether it succeeded, which pages changed, where the log is, and, when it failed, where each error is. Call once after a batch of source edits. pages_changed compares extracted PDF text and excludes visual-only changes. Read the log yourself for warnings and for the context around an error. A successful build also reports how the paper fits a page limit, as the page's Problems tab does. body_end is the last line before the bibliography, with its page, its column and the number of columns, the space below it to the end of the text block in points and in lines (once the paper has full columns to measure by), and its source. short_lines lists the paragraphs whose last line is narrower than a quarter of its column, including those in a list item or in centered text such as a table's caption, each with its page, column, words, width and source; shortening such a paragraph removes that line. A source is the line that contains a paragraph's last words.

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": "compile"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does substantial work: it discloses that `pages_changed` is computed from extracted PDF text and excludes visual-only changes, that a successful build also reports page-limit fit, and that the agent must interpret the log directly. It omits operational behavior such as build duration, permission requirements, or whether compilation produces side-effect artifacts on disk.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and return summary are helpfully front-loaded, but the trailing sentences about `body_end` and `short_lines` are dense and hard to parse, e.g. "the space below it to the end of the text block in points and in lines (once the paper has full columns to measure by)". Since no output schema exists this detail is not wasted, but its phrasing is more convoluted than it needs to be.

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 zero-parameter build tool with no annotations and no output schema, the description supplies most of what an agent needs: result shape, failure reporting, log interpretation, and the meaning of the two derived fields. It could be more complete about prerequisites and about whether the build mutates project state, but nothing essential to invoking it is missing.

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?

The tool takes zero parameters, so there is nothing schema-level to compensate for; the baseline is 4. The description correspondingly spends no space on inputs and instead invests in return-value semantics.

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 first sentence names a specific verb and resource ("Compile the paper") and immediately enumerates what the result contains (success, changed pages, log location, error locations). The purpose is unmistakable, but the description never distinguishes this from sibling tools such as `guide` or `overleaf`, relying on the agent to infer that compilation is uniquely this tool's job.

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?

"Call once after a batch of source edits" gives explicit timing guidance and implicitly warns against per-edit invocation. It also directs the agent to read the log itself for warnings and error context, which is useful follow-up guidance. However, no when-not conditions, prerequisites (e.g., an open project), or alternatives are stated.

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