Skip to main content
Glama

Fjc Court Codes

fjc_court_codes
Read-onlyIdempotent

Find the Federal Judicial Center (FJC) Integrated Database numeric code for a federal district court or circuit by name, e.g. "Eastern District of Texas" returns district code 40, "Fifth Circuit" returns circuit code 5. Accepts a full name, a Bluebook form ("E.D. Tex."), a PACER-style short form ("txed") or a state name (returns every district in that state); give kind "district", "circuit" or "all" with no query to list every court of that kind (94 districts, 12 circuits). An unrecognised name returns the nearest matches, never an empty result. The codes are the ones the other FJC tools take as district_or_circuit (they also accept names directly). Source: FJC Integrated Database codebooks. Keyless.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "Eastern District of Texas"
    },
    "name": "fjc_court_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoRestrict to district courts or circuits; with no query, "all" lists every court.
queryNoCourt name, abbreviation, state or code, e.g. "Eastern District of Texas", "E.D. Tex.", "Texas", "Ninth Circuit". Omit it and pass kind to list courts.

Output Schema

NameRequiredDescriptionDefault
noteNoSet when the result is the nearest matches
countNoCourts returned
errorNoSet when neither query nor kind was given
queryNoThe query asked, null when listing
courtsNoMatching courts
sourceNoDataset the codes come from
matchedNoexact, nearest or all
publisherNoPublisher of the code lists

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and openWorld, so the bar is lower, and the description still adds non-obvious behavior: an unrecognised name returns nearest matches rather than an empty result, and the tool is keyless. The declared source (FJC Integrated Database codebooks) and the 94-district/12-circuit counts further help an agent predict output. It stops short of describing pagination or the exact shape of the nearest-match fallback, keeping it off a 5.

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?

Front-loaded with the core action and example in the first sentence, and the accepted-input forms follow in order of likely use. It is a dense run-on paragraph of roughly five clauses where line breaks or a short list would scan faster, but no sentence is filler.

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

Completeness5/5

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

This is a simple two-parameter lookup with an output schema and full annotation coverage, and the description covers accepted inputs, list-all behavior, fallback on misses, and the downstream consumer of the codes. Nothing an agent needs in order to call it correctly is missing.

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 baseline is 3, and the description largely restates the schema's own examples ('E.D. Tex.', 'Texas', 'Ninth Circuit') for query. It does add the consequence that a state name returns every district in that state and that 'all' with no query enumerates 94 districts and 12 circuits, which is marginal extra meaning beyond the enum and string descriptions.

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?

Names a specific verb+resource (find the FJC numeric code for a district court or circuit) and immediately disambiguates with worked examples ('Eastern District of Texas' → 40, 'Fifth Circuit' → 5). An agent can tell this apart from the case-outcome siblings because the description scopes it to code resolution only.

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

Usage Guidelines5/5

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

States explicitly which query forms are accepted (full name, Bluebook, PACER short form, state name) and that passing kind with no query lists all courts. It also routes the agent onward by noting the codes feed the other FJC tools' district_or_circuit parameter, which themselves accept names directly — a real when-to-use signal rather than an implied one.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.