Skip to main content
Glama

generate_latex_preamble

Create a reusable LaTeX preamble with required packages and commands for immigration petition documents, ensuring consistent formatting for petitions, letters, or exhibit lists.

Instructions

Generate a reusable LaTeX preamble with all necessary packages and commands for immigration petition documents.

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": {
      "documentType": "<documentType>"
    },
    "name": "generate_latex_preamble"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentTypeYesType of document to generate preamble for
includeHyperlinksNoWhether to include hyperref package for clickable links

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does not say whether the tool returns a LaTeX string, writes a file, or has side effects, and it gives no indication of what 'all necessary packages' entails. For a generation tool with zero annotation coverage, this leaves the agent guessing about output and effects.

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?

A single front-loaded sentence that names the action, the artifact, and its scope, with no filler. Nothing in it is wasted or redundant.

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

Completeness3/5

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

There is no output schema and no annotations, so the description is the only place to learn what the tool produces, yet it omits the return form (string vs. file) and the effect of includeHyperlinks. Adequate to identify the tool, but not complete for calling it confidently alongside the sibling generators.

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 description coverage is 100%, so both parameters (documentType enum and includeHyperlinks with its default) are already fully documented in the schema. The description adds no meaning beyond the schema—it does not explain how documentType changes the emitted packages.

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?

States a specific verb and resource: 'Generate a reusable LaTeX preamble' with scope ('all necessary packages and commands for immigration petition documents'). It does not distinguish itself from siblings like generate_eb1a_petition_latex, so an agent cannot tell from the description alone whether this is a building block or a full-document generator.

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 word 'reusable' hints at a shared building block, but there is no explicit statement of when to call this versus the sibling document generators, and no exclusions or prerequisites. The agent must infer usage from the name and the surrounding catalog.

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