Skip to main content
Glama
coolport
by coolport

latexmk_write_config

Generate a .latexmkrc file for a project or globally, defining LaTeX build options such as engine, output format, and custom rules.

Instructions

Write a .latexmkrc config file to a project directory or globally to ~/.latexmkrc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
engineNo
globalNoWrite to ~/.latexmkrc instead of the project directory.
working_dirYesDirectory to write the project-level .latexmkrc into.
custom_rulesNoRaw Perl lines to append to the generated config.
shell_escapeNo
output_formatNo
extra_pdflatex_argsNoExtra arguments to append to the pdflatex command.
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It only states the write action and target locations, but does not mention whether existing files are overwritten, required permissions, or any side effects. This is a significant gap for a mutation tool.

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?

The description is a single sentence that front-loads the action and targets, with no wasted words. It is highly concise and structurally efficient.

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

Completeness2/5

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

With 7 parameters, no annotations, and no output schema, this description is too sparse. It does not explain how parameters relate, what the generated config contains, or any prerequisites, leaving the agent without enough context for correct invocation.

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

Parameters2/5

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

The schema description coverage is 57%, leaving engine, shell_escape, and output_format undocumented. The tool description adds no parameter information at all, failing to compensate for the missing schema descriptions or clarify parameter interactions.

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 clearly states the action (Write a .latexmkrc config file) and specifies the two target locations (project vs global), distinguishing it from sibling tools like latexmk_read_config. The verb and resource are explicit.

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 implied by the name and action, but there is no explicit guidance on when to use this tool versus alternatives. The sibling tools are not referenced, and no exclusions or prerequisites are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/coolport/latexmk-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server