Skip to main content
Glama

compile_project

Read-only

Compiles a ShareLaTeX project and returns compile status, errors, and warnings from output.log so you can diagnose build failures; optionally override the root file.

Instructions

Compile a ShareLaTeX project and return errors and warnings.

Read-only with respect to project source. project is a project name or
id. The result starts with the compile status and then lists error and
warning lines from output.log. root_file overrides automatic root
selection. Busy, timeout and unavailable logs are reported explicitly.

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": "<project>"
    },
    "name": "compile_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYes
root_fileNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the 'read-only with respect to project source' sentence is largely redundant. The description does earn credit beyond annotations by disclosing edge-case behavior: busy, timeout, and unavailable logs are reported explicitly rather than surfacing as opaque failures, and the result is ordered as status-then-diagnostics from output.log.

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?

Purpose is front-loaded in sentence one and the following sentences each add a distinct fact without padding. The only wasted line is the read-only restatement, which duplicates the annotation.

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

Completeness3/5

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

An output schema exists, so the description needn't spell out return values, yet it partially does. Coverage of the 0%-documented parameters is decent, but behavior on compile failure (exception vs. status payload), how long a compile may block, and where output.log lives are left unstated.

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?

Schema description coverage is 0%, so the description must carry parameter meaning, and it does: project accepts either a name or an id, and root_file overrides automatic root selection. It stops short of stating root_file's expected format (relative path? file name only?) or what happens when it points at a missing file.

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 first sentence states a specific verb (compile) plus resource (a ShareLaTeX project) and the returned artifact (errors and warnings). No sibling in the catalog compiles anything, so it is trivially distinguishable from list_files, read_file, or replace_in_file.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer you compile to surface errors/warnings, but the description never says when to prefer this over read_file or search_project, nor any preconditions. It does add one concrete usage rule — root_file overrides automatic root selection — which is helpful but narrow.

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