Skip to main content
Glama

format_cfr_citation

Formats Code of Federal Regulations citations for immigration regulations by title, part, section, and paragraph.

Instructions

Format a Code of Federal Regulations (CFR) citation. Use for immigration regulations like 8 C.F.R. § 204.5(h) for EB1A or 8 C.F.R. § 204.5(k) for EB2.

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": {
      "title": "<title>",
      "part": "<part>"
    },
    "name": "format_cfr_citation"
  }
}

Input Schema

NameRequiredDescriptionDefault
partYesCFR part number (e.g., "204.5" for immigrant petitions)
titleYesCFR title number (8 for immigration regulations)
sectionNoOptional subsection letter (e.g., "h" for EB1A, "k" for EB2)
paragraphNoOptional paragraph number (e.g., "3" for EB1A criteria list)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It is implicitly a pure, side-effect-free formatter and the examples reveal the expected output shape, but it never states that it is non-destructive, whether it validates input, or how it behaves on invalid titles/parts.

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?

Two short sentences, front-loaded with the purpose and immediately followed by concrete usage examples. No filler or restated boilerplate.

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

Completeness4/5

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

For a simple four-parameter formatter with a fully documented schema and no output schema, the description plus examples are nearly sufficient. Only edge-case behavior (invalid inputs, whether paragraph and section are mutually conditional) is left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and all fields are documented, so baseline is 3; the description adds marginal value by showing how title, part, and section combine into a real citation (8 C.F.R. § 204.5(h)), which reinforces the interplay between parameters beyond the per-field schema text.

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

Purpose5/5

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

States a specific verb and resource ('Format a Code of Federal Regulations (CFR) citation') plus concrete rendered examples, which cleanly distinguishes it from sibling formatters such as format_ina_citation and format_case_citation.

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

Usage Guidelines4/5

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

Gives clear usage context ('Use for immigration regulations') and ties it to EB1A/EB2 scenarios with concrete citations. It does not explicitly say when to choose a sibling formatter instead, so it stops short of full routing guidance.

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