Skip to main content
Glama

generate_reference_letter_latex

Generate a LaTeX template for an expert recommendation letter supporting an EB1A or EB2-NIW immigration petition, so you can draft referee statements with consistent legal structure.

Instructions

Generate a LaTeX template for an expert recommendation letter supporting an immigration petition.

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": {
      "refereeName": "<refereeName>",
      "refereeTitle": "<refereeTitle>",
      "refereeInstitution": "<refereeInstitution>",
      "beneficiaryName": "<beneficiaryName>",
      "petitionType": "<petitionType>"
    },
    "name": "generate_reference_letter_latex"
  }
}

Input Schema

NameRequiredDescriptionDefault
refereeNameYesName of the letter writer
petitionTypeYesType of petition being supported
refereeTitleYesProfessional title/position
isIndependentNoWhether the referee knows the beneficiary personally (false) or only by reputation (true)
beneficiaryNameYesName of the petition beneficiary
refereeInstitutionYesOrganization/institution affiliation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose one genuinely useful trait — that the output is a template rather than a completed letter — but nothing about what the template contains, whether referee data is interpolated into it, whether petitionType changes the generated text, or what the return value looks like, which is a significant gap for a generation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the verb and resource established immediately and no filler. Its brevity is efficient, though it is short enough that the missing guidance is felt.

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 six parameters, five required, no annotations, and no output schema, the description needs to explain the generated artifact and how inputs shape it; it does not. An agent cannot tell from the definition what the resulting LaTeX template looks like or whether petitionType or isIndependent alter its content.

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 every parameter including the EB1A/EB2-NIW enum and the isIndependent flag is already documented in the schema. The description adds no meaning beyond that, so the baseline of 3 applies.

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 (generate) and a specific artifact (a LaTeX template for an expert recommendation letter) scoped to immigration petitions, which separates it from the petition-drafting siblings. It stops short of explicitly naming when a sibling such as generate_eb1a_petition_latex is the better choice, so it is clear but not fully differentiating.

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 phrase 'supporting an immigration petition' gives only vague situational context; there is no statement of when to use this instead of the petition-generation or citation-formatting siblings, and no prerequisites such as needing referee details first. It also does not mention which petition types are supported, even though the schema restricts petitionType to EB1A and EB2-NIW.

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