Skip to main content
Glama

compile_status

Two modes. WITHOUT job_id: return the project's LATEST compile state (no compile is submitted) — compile_state carries is_fresh_green / last_attempt_result; use this FIRST when you need to know whether the project compiles or what the last attempt concluded, and pair it with compile_log for the raw error log. WITH job_id: poll the asynchronous compile job returned by the compile tool; waits up to 5 seconds server-side for a terminal status. Call again directly without waiting yourself if still running. Returns status running/succeeded/failed/cancelled plus the result anchors (pdf_url, errors, warnings, engine) once terminal. cancelled means the user cancelled the job — do not keep polling or retry the compile. In the job_id mode the terminal payload also carries compile_state (state_seq, last_success_seq, is_fresh_green): the SAME row the user's compile badge shows. Treat is_fresh_green=true as the only evidence that the current files compile — a success whose last_success_seq lags state_seq means the files changed after that compile; do not tell the user it compiles until a fresh compile is green. If status is still running after about 2 minutes of polling, stop polling and tell the user the compile is taking unusually long.

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_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / job_id / default
      Added value: +""
    • removedInput schema / required
      Removed value: -[
      -  "job_id"
      -]
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so: it discloses the 5-second server-side wait, the full terminal status set (running/succeeded/failed/cancelled), that cancellation is user-initiated and final, and the meaning of cancelled for polling. It also explains the is_fresh_green vs last_success_seq interpretation rule, which is non-obvious semantic behavior an agent could easily get wrong.

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?

The 'Two modes' framing is front-loaded and every section maps to a mode, but the block is long for a one-parameter tool and the compile_state/is_fresh_green guidance, while valuable, is dense enough that it could be tightened. It is efficient in content, slightly heavy in volume.

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?

An output schema exists, yet the description still supplies the status vocabulary and result anchors (pdf_url, errors, warnings, engine) plus the correct interpretation of a lagging last_success_seq, which is the risky part of the tool. For a polling tool with one optional parameter, nothing an agent needs to call or interpret it is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single job_id parameter, but the description fully explains its semantics: omit it to read latest state without compiling, supply it to poll a specific job. That is precisely the meaning the schema lacks, including the consequence of each mode.

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 opens with 'Two modes' and then specifies exactly what each does: no job_id returns the project's latest compile state without submitting a compile, while job_id polls the asynchronous job returned by the compile tool. It explicitly distinguishes itself from compile_log ('pair it with compile_log for the raw error log') and references compile as the producer of job_id, so an agent can route correctly 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 Guidelines5/5

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

It gives explicit ordering advice ('use this FIRST when you need to know whether the project compiles'), names the companion tool for error logs, and states exclusions: cancelled means stop polling and do not retry, and stop polling after roughly 2 minutes if still running. These are concrete when/when-not rules rather than implied usage.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources