Skip to main content
Glama

compile_project

Triggers a remote LaTeX compilation for a CSTCloud project, returning success/failure status and output files; use the compile log to inspect detailed errors.

Instructions

Trigger a remote LaTeX compilation for a CSTCloud project. Returns the compilation status (success/failure) and a list of output files. After compiling, use get_compile_log to see detailed error messages.

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

Input Schema

NameRequiredDescriptionDefault
compilerNoLaTeX compiler to use (default: project setting, usually pdflatex)
project_idYesThe project ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations, so the description must carry the burden. It discloses the return shape (status success/failure plus output file list) and the follow-up workflow. It doesn't mention whether compilation is blocking, how long it takes, permission requirements, or whether it overwrites artifacts.

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?

Two sentences, front-loaded with the action, second sentence the follow-up routing. Zero waste.

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 two-parameter trigger tool with no output schema, it covers action, return shape, and next step. Missing async/latency and permissions, but the essentials are there.

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 coverage is 100%, so baseline is 3; the description adds marginal value by noting the project scoping and that compiled output files are produced. The compiler enum default is documented in the schema already.

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+resource: 'Trigger a remote LaTeX compilation for a CSTCloud project.' Distinguishes from sibling get_compile_log by explaining what each returns.

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?

Explicitly says 'After compiling, use get_compile_log to see detailed error messages,' which sequences the tools. However, it doesn't say when NOT to compile (e.g., lock state) or mention other alternatives.

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