Skip to main content
Glama

create_latex_file

Generate LaTeX documents with customizable structure, content, and packages for academic or technical writing.

Instructions

Create a new LaTeX document with specified content and structure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath for the new .tex file (relative to base dir)
document_typeNoarticle
titleNo
authorNo
dateNo\today
contentNo
packagesNoExtra LaTeX packages to include
geometryNoGeometry settings, e.g. 'margin=1in'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the file
successYes
messageYes
contentNoFile content if applicable
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool creates a new file but doesn't specify whether it overwrites existing files, requires specific permissions, handles errors, or provides any output details. This leaves significant gaps in understanding the tool's behavior for a mutation operation.

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, efficient sentence that front-loads the core action without unnecessary words. It directly states the tool's purpose, making it easy to parse and understand quickly, with no wasted verbiage.

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?

For a tool with 8 parameters, low schema coverage (38%), no annotations, and sibling tools that could cause confusion, the description is insufficient. It lacks details on behavior, usage context, and parameter meanings, making it incomplete despite the presence of an output schema that might cover return values.

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?

The description mentions 'specified content and structure', which loosely relates to parameters like 'content' and 'document_type', but adds minimal semantic value beyond the schema. With low schema description coverage (38%), the description doesn't adequately compensate by explaining undocumented parameters such as 'geometry' or 'packages', resulting in only marginal improvement over the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Create' and resource 'LaTeX document' with scope 'with specified content and structure', making the purpose evident. However, it doesn't differentiate from sibling tools like 'create_from_template' or 'edit_latex_file', which could create ambiguity about when to use this specific creation method versus alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'create_from_template' or 'edit_latex_file'. It lacks context about prerequisites, such as whether the file path must be unique or if existing files are overwritten, leaving the agent without clear usage instructions.

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/RobertoDure/mcp-latex-server'

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