Skip to main content
Glama

generate_niw_petition_latex

Generate a complete LaTeX EB2 NIW petition letter with legal formatting, citations, and Dhanasar framework structure from beneficiary, endeavor, and degree details.

Instructions

Generate a complete LaTeX document for an EB2 NIW petition letter with proper legal formatting, citations, and structure based on the Dhanasar framework.

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": {
      "beneficiaryName": "<beneficiaryName>",
      "fieldOfExpertise": "<fieldOfExpertise>",
      "proposedEndeavor": "<proposedEndeavor>",
      "advancedDegree": "<advancedDegree>"
    },
    "name": "generate_niw_petition_latex"
  }
}

Input Schema

NameRequiredDescriptionDefault
advancedDegreeYes
beneficiaryNameYesFull legal name of the petitioner
fieldOfExpertiseYesThe petitioner's professional field
proposedEndeavorYesDescription of the proposed endeavor in the U.S.
includeTableOfContentsNoWhether to include a table of contents

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?

With no annotations, the description carries the full behavioral burden. It says the output is a 'complete LaTeX document' but never states whether the result is returned as a string, written to a file, or how long the output is; nor does it disclose side effects, overwrite behavior, or any limits.

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 no filler; the key artifact and legal framework appear immediately. Slightly dense but every clause contributes information.

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 five-parameter, nested-object generator with no annotations and no output schema, the description leaves critical gaps: the return format (raw LaTeX vs. file), whether additional inputs like exhibits or citations are needed, and how the generated document should be used downstream. The complexity warrants more than one sentence.

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 80% and the nested advancedDegree object is documented field-by-field, so the baseline is 3. The description adds only the 'Dhanasar framework' framing, which implies the proposedEndeavor input should be phrased around the three prongs, but does not explain any parameter directly.

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 names a specific verb and artifact: generate a complete LaTeX document for an EB2 NIW petition letter, tied to the Dhanasar framework. It is clearly distinguishable from the EB1A sibling by the stated visa category, though it does not explicitly name or rule out any sibling.

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?

There is no guidance on when to use this versus evaluate_niw_petition, generate_eb1a_petition_latex, or generate_exhibit_list_latex, and no stated prerequisites (e.g., whether evaluation should come first). The agent must infer the workflow entirely from the tool name.

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