Skip to main content
Glama

format_latex_citation

Formats CFR, case, USCIS, and INA citations for LaTeX documents, adding required escaping, labels, and cross-reference support.

Instructions

Format a citation for use in LaTeX documents with proper escaping and formatting.

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": {
      "citationType": "<citationType>",
      "citation": "<citation>"
    },
    "name": "format_latex_citation"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional label for cross-referencing in LaTeX
citationYesThe citation text to format for LaTeX
citationTypeYesType of citation to format

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 supplied, the description carries the full behavioral burden. 'Proper escaping and formatting' hints at a pure transformation, but it never states that the operation is side-effect free, deterministic, or what the returned value looks like (a formatted LaTeX string versus a full \cite command). For a tool with zero annotation coverage and no output schema, that is a notable gap.

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, and the key value proposition (escaping) is placed where the agent will read it first. It is efficient, though at this length it leaves the sibling-overlap question entirely unaddressed.

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?

Complexity is low and the schema is fully described, so the description is close to sufficient. Still, it omits the return shape and gives no hint about how this dispatcher-style tool relates to the four type-specific formatters, which is the main ambiguity an agent would face.

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 the meaning of label, citation and citationType is already fully documented in the schema, which sets the baseline at 3. The description adds nothing about the enum values or how citationType changes the output, so it neither compensates nor detracts.

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 states a specific verb and resource ('Format a citation for use in LaTeX documents') plus the distinctive behavior ('proper escaping and formatting'), so the agent knows what the tool produces. It does not, however, distinguish this generic tool from the four type-specific siblings (format_cfr_citation, format_case_citation, format_ina_citation, format_uscis_policy_citation) even though the citationType enum covers exactly the same ground.

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 when-to-use guidance at all: nothing says whether this generic formatter should be preferred over the per-type formatters, nor whether it should be used instead of escape_latex for plain escaping. It also gives no exclusions or preconditions, leaving the agent to guess why two overlapping paths exist.

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