Skip to main content
Glama

compile_log

Read the raw engine log (output.log) of the project's last compile. Use after a failed compile when the structured errors lack a file/line (e.g. only a generic latexmk note): the log carries the engine's ! <error> / l.<line> <source> blocks plus the surrounding context needed to locate the failure. Returns the log tail (64KB cap) or exists=false when no log has been produced yet.

Input Schema

NameRequiredDescriptionDefault
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 delivers: read-only intent, the 64KB tail cap, the exists=false fallback when no log exists, and the log's block format (! <error> / l.<line> <source>). It omits any permission/authorization notes, so it is strong but not exhaustive.

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 purpose, then the usage trigger, then the return behavior. Every sentence earns its place with no filler.

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 so return values need not be spelled out, yet the description still adds the tail cap and exists=false fallback. With one simple param, purpose, trigger, and behavior are all covered – nothing an agent needs to call it correctly 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?

Schema coverage is 0%, so the description is the only source, yet it never explains project_id beyond implying 'the project's last compile'. The single obvious required string param is inferable from context, but the description adds little explicit semantic detail about it.

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 (read) and resource (raw engine log output.log of the project's last compile), and distinguishes itself from the structured-error path handled by siblings like compile_status. An agent can identify the tool without opening any schema.

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?

Gives an explicit condition to use it ('after a failed compile when the structured errors lack a file/line') and implicitly the condition not to (when structured errors already carry file/line). It doesn't name the alternative tool (compile_status) directly, so it falls just short of a 5.

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