Skip to main content
Glama

Compile the project

compile
Read-onlyIdempotent

Compiles the project to PDF, as the Compile button does, and returns the result with its errors and warnings (file, line, message). It changes no file. Use this when the person wants to see their paper as a PDF or check that it builds.

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

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project's id, from list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the description's "It changes no file" is supportive rather than load-bearing. It adds value the annotations cannot: the return payload is a compile result carrying errors and warnings with file, line and message fields, which matters for a tool with no output schema.

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: the action and its return shape come first, the usage cue second. Nothing is redundant with the title or padding the text.

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 single-parameter tool with no output schema, the description covers the action, the no-side-effect guarantee, and the shape of the diagnostics. It stops short of saying what the successful result contains (whether the PDF itself is returned, or only a path/URL), a small remaining gap.

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?

Only one parameter and the schema already documents it fully ("The project's id, from list_projects"). The description adds no further meaning about the id, so the baseline 3 for high schema coverage applies.

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 and resource ("Compiles the project to PDF") plus the side-by-side anchor of the Compile button, so an agent knows exactly what happens. No sibling (write_file, read_file, edit_file) does anything comparable, so differentiation is implicit and clean.

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 names the two situations that select this tool: wanting the paper as a PDF, or checking that it builds. No when-not cases or named alternatives are given, but the compile action is distinct enough from file-manipulation siblings that no exclusion is needed.

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