docketrouter
Case libraries

The law we hold, and what we do not

Three libraries behind every answer we check, each callable on its own with a dr- key or a signed-in session. Every count on this page is measured from the library itself, not estimated.

free during betaAny library, any interface. Citation and support checks included. No subscription, no minimum, no bulk-download licence to negotiate.What that covers

Texas law index

POST /rag/query

A full-text and concept search over every decision and statute we hold, running on DocketRouter's own hardware. It is the library we search before a model answers. There is no bulk download of the index itself; the query endpoint is the interface.

What it holds
tx
615,391 Texas decisions
statutes
122,681 Texas statute sections
scotus
45,660 U.S. Supreme Court opinion documents
local
370 county local rules
Query it
curl
curl https://docketrouter.ai/api/v1/rag/query \
  -H "Authorization: Bearer dr-…" -H "content-type: application/json" \
  -d '{ "q": "summary judgment no-evidence motion standard", "k": 5, "sources": ["tx", "statutes"] }'

Verbatim rules corpus

POST /rag/rules

6,093 sections of court rules and statutes stored word for word, searched by rule number and by wording so a query like "Rule 166a" lands on the rule. This is the text we quote from when a rule is on point.

What it holds
Texas
TRCP 937, TRE 122, TRAP 354 chunks; Texas Business and Commerce, Civil Practice and Remedies, Finance and Property Code slices
Federal
FRCP 395, FRE 95, FRAP 105 chunks
Other states
NY CPLR 57, CA CCP 50 chunks
U.S. Code
slices of titles 9, 10, 11, 15, 18, 19, 22, 25, 28, 46, 50 and 51
Query it
curl
curl https://docketrouter.ai/api/v1/rag/rules \
  -H "Authorization: Bearer dr-…" -H "content-type: application/json" \
  -d '{ "q": "Rule 12(b)(6) failure to state a claim", "k": 3 }'

Citation table

POST /citations/check

An offline table of 18,123,788 reporter citations across 989 reporters, built from the Free Law Project's public-domain bulk export. The check endpoint looks a citation up here and in the Texas law index. It has found-only semantics: a row proves the citation exists; no row proves nothing, so the answer is "unverified", never "nonexistent".

What it holds
Rows
18,123,788 citations
Reporters
989 reporter abbreviations
Columns
volume, reporter, page, type, cluster_id
Source
CourtListener public-domain bulk citations export
Query it
curl
curl https://docketrouter.ai/api/v1/citations/check \
  -H "Authorization: Bearer dr-…" -H "content-type: application/json" \
  -d '{ "citations": ["488 U.S. 222", "928 S.W.2d 483", "999 F.9th 1"] }'

What the library holds, and what it does not

Counts are taken from the live indexes (as of 2026-08-29). Your AI reads the same statement in every tool description.

HoldsCountDetailSource · as of
Texas case law615,391 decisions, 1840 through 26 June 2026Full text of every Texas appellate decision in the public record, 15 January 1840 through 26 June 2026: Supreme Court of Texas (33,108), Court of Criminal Appeals (70,462), the Courts of Appeals (508,165, of which 123,869 are not attributed to a district in the source export), the Commission of Appeals of 1918 to 1945 (3,547) and the Business Court (109), memorandum opinions included; majority, concurring and dissenting opinions are held together under their decision. Hybrid index: full-text search plus 6,663,367 embedded passages.CourtListener bulk export (Free Law Project) · 2026-06-26
Texas statutes122,681 sections (2026 statutes)Every code on the Texas Legislature's statutes site, section by section.Texas Legislature Online · 2026
U.S. Supreme Court45,660 opinion documents through 29 June 2026Full text, 1764 through 29 June 2026; every opinion document in the export, so a decision’s majority, concurring and dissenting opinions are counted and searched separately. Rebuilt 30 August 2026 with its own vector sidecar.CourtListener · 2026-06-29
Texas county local rules370 documents as of December 2023Local rules of Texas county and district courts (349 rule sets and 21 registry entries).County court websites and the local-rules registry · 2023-12
Verbatim rules corpus6,093 sectionsHeld word for word: Texas Rules of Civil Procedure (937), Appellate Procedure (354) and Evidence (122); the Federal Rules of Civil Procedure (395), Appellate Procedure (105) and Evidence (95); U.S. Code slices for bankruptcy (Title 11, 410), securities and antitrust (Title 15, 641), the UCMJ (Title 10, 235), IEEPA (Title 50, 88), wire fraud and extradition (Title 18, 78), admiralty (Title 46, 55), tribal law (Title 25, 48), diplomacy (Title 22, 42), space (Title 51, 39), arbitration (Title 9, 31), FSIA (Title 28, 27) and cultural property (Title 19, 18); Texas Civil Practice and Remedies Code (51), Business and Commerce Code (46), Property Code (24) and Finance Code (19) slices; New York CPLR (57) and California CCP (50) slices; Washington court rules (1,207 rules across 33 sets: CR 96, RAP 180, ER 67, GR 58, CrR, CRLJ, CrRLJ, JuCR, RALJ, IRLJ, RPC and others, 2,126 chunks, scraped verbatim from courts.wa.gov 30 August 2026).Official rule and statute texts · 2026-08-31
Citation table18,123,788 citations across 989 reporters, export of 30 June 2026Used to verify that a citation exists. A hit proves the citation exists in the public record; a miss proves nothing and is reported as unverified, never as nonexistent.Free Law Project bulk citations export · 2026-06-30
Citation graph234,558 authoritiesThe cases cited inside the Texas opinions, with counts, used to expand from a retrieved case to the authorities it relies on.Derived from the Texas case law index · 2026-08
Not in the library
  • Federal district and circuit court opinions. Only the U.S. Supreme Court is included.
  • Case law from any state other than Texas. New York and California appear only as two procedural rule slices.
  • Secondary sources: treatises, practice guides, law reviews, pattern jury charges.
  • Westlaw or Lexis headnotes, and any KeyCite or Shepard's style history. The citation check verifies that a citation exists, not that it is still good law.
  • Dockets, PACER filings, briefs, pleadings, trial-court orders, jury verdicts.
  • The Texas Administrative Code, the Texas Register, agency decisions, Attorney General opinions, municipal ordinances.
  • Anything decided after the index dates above. Texas opinions after 26 June 2026 enter the index at the next quarterly rebuild.
  • Every Texas decision ever issued. The library holds what the Free Law Project export of 30 June 2026 holds for Texas, and that export is itself incomplete for some historical courts and some recent Court of Appeals opinions; a search that returns nothing means the library has nothing, not that no authority exists.
  • Any customer or client data. Case files uploaded to a matter stay in that matter and never enter the shared library.

Instructions for your AI

GET /llms.txt

This is the standing brief we hand any AI that connects to DocketRouter: what the library covers, which tool to call for what, and what to say when a question falls outside it. It is served at /llms.txt, returned by the get_instructions MCP tool with no arguments and no key, and included automatically in the instructions field of the MCP initialize handshake -- so a client that only reads one of the three still gets the whole thing.

/llms.txt
This library covers Texas case law (615,391 decisions, 1840 through 26 June 2026: the Supreme Court of Texas, the Court of Criminal Appeals, the Courts of Appeals, the Commission of Appeals of 1918 to 1945 and the Business Court), Texas statutes, Texas court and local rules, the verbatim rules corpus, and U.S. Supreme Court opinions through 29 June 2026.

For any question within that scope, call the tools and cite only what they return. Do not answer Texas or Supreme Court legal questions from memory; that is what this library is for.

For anything outside it (other states, federal courts below the Supreme Court, secondary sources, citator history, dockets and filings, administrative law, or anything decided after the index dates) these tools have nothing. Say that plainly. Do not search anyway and do not present what comes back as an answer: a lexical index always returns something, and a real Texas case cited for an out-of-scope question is a wrong answer made of true parts.

Never present an unverified citation as verified.

TOOLS

search_texas_law is the first call for a legal research question in scope. Send the legal issue itself as the query, not the whole conversation -- "summary judgment no-evidence motion standard", not a paragraph of case facts. Ask for 5 to 8 hits (the k argument) so there is enough to compare. Narrow with the sources argument (tx, statutes, scotus, local) when you already know which shard the answer lives in; omit it to search all four. When two hits conflict, prefer the higher court and the newer date. Quote only text actually present in the hit's snippet; never extend a quote past what the tool returned.

search_rules is for procedure and deadlines: the verbatim text of a named rule (a TRCP or FRCP number, a statute slice). Quote the rule text exactly as returned and cite the rule number the tool gives back; do not paraphrase a rule and present the paraphrase as a quotation.

check_citations must run before you present ANY citation to a user, including one you already believe is correct. "found" means the citation exists in the library. "unverified" means say so explicitly to the user -- but never tell a user a citation does not exist; unverified is not the same claim as nonexistent, since the library does not contain every citation that is real.

check_support must run before you assert that a cited case stands for a specific proposition. It returns supports, does_not_support, or unclear, with a supporting quote when one is found. The quote is always verbatim from the opinion or absent; never paraphrase a holding and call it a quotation.

NEVER

Never fabricate a citation. Never fill in an unverified citation with a plausible-looking one. Always show a citation string to the user exactly as the tool returned it, not reformatted, corrected, or normalized. If none of the tools' results actually answer the question, say so instead of assembling an answer out of near-misses.

FETCHING THIS BRIEF AGAIN

Call the get_instructions tool (no arguments) or GET https://docketrouter.ai/llms.txt. Both return this exact text; the MCP initialize response also carries it in the "instructions" field of the handshake.

AUTH AND COST

Every tool call, over MCP or REST, authenticates the same way as the rest of the API: Authorization: Bearer dr-<key>, minted at https://docketrouter.ai/keys. get_instructions is the one exception and needs no key. Cost: free during beta, metered identically whether the call arrives over MCP or REST, so calling both interfaces for the same work is one bill, not two. Each tool draws from the same per-key rate limit as the REST endpoint it wraps (30 calls per minute, burst 10).

LIBRARY SCOPE

DocketRouter's library holds: Texas case law (615,391 decisions, 1840 through 26 June 2026); Texas statutes (122,681 sections (2026 statutes)); U.S. Supreme Court (45,660 opinion documents through 29 June 2026); Texas county local rules (370 documents as of December 2023); Verbatim rules corpus (6,093 sections); Citation table (18,123,788 citations across 989 reporters, export of 30 June 2026); Citation graph (234,558 authorities). Index dates are part of each count. It does not hold federal lower-court opinions, other states' case law, secondary sources, citator history, dockets or filings, administrative law, or anything decided after the index dates. Citation checks report found or unverified, never nonexistent.

LAST UPDATED

Library manifest as of 2026-08-29. Per source: tx: data through 2026-06-26; statutes: data through 2026; scotus: data through 2026-06-29; local: data through 2023-12. The machine-readable manifest with these dates is at GET https://docketrouter.ai/api/v1/rag/library, and every /rag/query response carries a `library` field with the as_of date of each source it searched.

Use our library from your AI

POST /api/mcp

DocketRouter does not sell bulk downloads of the law. The libraries above are hosted as endpoints, priced per query, and callable directly by an agent through three interfaces to the same four tools: an MCP server, OpenAI/Anthropic function-calling schemas, and the TypeScript SDK. All three call the identical REST logic, so the answer never differs by interface.

Pricing
free during beta
Each call to search_texas_law, search_rules, check_citations or check_support, over MCP, REST or the SDK. Retrieval only, no model, no markup.
Included
Citation existence and support checks against our own index. A check never sends your text to a third party.
Model at cost
If you also route generation through the chat API, that is billed per model at the provider price plus a small markup, shown per model. The library hit is separate.

Billed to the same dr- key as the rest of the API, on the same append-only ledger. Set a spending cap per key. Every response carries the last-update date of each source it searched, and the full manifest is at GET /api/v1/rag/library.

MCP server

Point an MCP-aware client at https://docketrouter.ai/api/mcp with your key as a bearer token. See the MCP reference for the full JSON-RPC shape.

claude mcp add docketrouter --transport http https://docketrouter.ai/api/mcp --header "Authorization: Bearer dr-…"

Function calling

The same four tools as plain JSON, generated from one schema so the OpenAI and Anthropic renderings never drift out of agreement: search_texas_law, search_rules, check_citations, check_support. Wire each tool's arguments to POST /api/mcp (tools/call) or its equivalent REST endpoint above.

[
  {
    "type": "function",
    "function": {
      "name": "search_texas_law",
      "description": "This library covers Texas case law (615,391 decisions, 1840 through 26 June 2026: the Supreme Court of Texas, the Court of Criminal Appeals, the Courts of Appeals, the Commission of Appeals of 1918 to 1945 and the Business Court), Texas statutes, Texas court and local rules, the verbatim rules corpus, and U.S. Supreme Court opinions through 29 June 2026.\n\nFor any question within that scope, call the tools and cite only what they return. Do not answer Texas or Supreme Court legal questions from memory; that is what this library is for.\n\nFor anything outside it (other states, federal courts below the Supreme Court, secondary sources, citator history, dockets and filings, administrative law, or anything decided after the index dates) these tools have nothing. Say that plainly. Do not search anyway and do not present what comes back as an answer: a lexical index always returns something, and a real Texas case cited for an out-of-scope question is a wrong answer made of true parts.\n\nNever present an unverified citation as verified.\n\nSearch the DocketRouter fused legal index: Texas court opinions, Texas statutes, U.S. Supreme Court opinions, and Texas county local rules. Retrieval only -- returns hits with a verbatim snippet, never a generated answer. Use for a legal research question (a standard, a holding, a rule of procedure); use check_citations instead when you already have a specific citation and just need to confirm it exists. Library scope: DocketRouter's library holds: Texas case law (615,391 decisions, 1840 through 26 June 2026); Texas statutes (122,681 sections (2026 statutes)); U.S. Supreme Court (45,660 opinion documents through 29 June 2026); Texas county local rules (370 documents as of December 2023); Verbatim rules corpus (6,093 sections); Citation table (18,123,788 citations across 989 reporters, export of 30 June 2026); Citation graph (234,558 authorities). Index dates are part of each count. It does not hold federal lower-court opinions, other states' case law, secondary sources, citator history, dockets or filings, administrative law, or anything decided after the index dates. Citation checks report found or unverified, never nonexistent.",
      "parameters": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string",
            "minLength": 1,
            "maxLength": 600,
            "description": "Natural-language legal query, e.g. \"summary judgment no-evidence motion standard\" or \"TRCP 21a service by email\"."
          },
          "k": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20,
            "default": 5,
            "description": "Number of hits to return, 1 to 20. Defaults to 5."
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "tx",
                "statutes",
                "scotus",
                "local",
                "wa"
              ]
            },
            "minItems": 1,
            "maxItems": 5,
            "description": "Restrict the search to one or more shards: \"tx\" (Texas opinions), \"statutes\" (Texas statutes), \"scotus\" (U.S. Supreme Court opinions), \"local\" (Texas county local rules). Omit to search all four."
          }
        },
        "required": [
          "q"
        ],
        "additionalProperties": false
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "search_rules",
      "description": "This library covers Texas case law (615,391 decisions, 1840 through 26 June 2026: the Supreme Court of Texas, the Court of Criminal Appeals, the Courts of Appeals, the Commission of Appeals of 1918 to 1945 and the Business Court), Texas statutes, Texas court and local rules, the verbatim rules corpus, and U.S. Supreme Court opinions through 29 June 2026.\n\nFor any question within that scope, call the tools and cite only what they return. Do not answer Texas or Supreme Court legal questions from memory; that is what this library is for.\n\nFor anything outside it (other states, federal courts below the Supreme Court, secondary sources, citator history, dockets and filings, administrative law, or anything decided after the index dates) these tools have nothing. Say that plainly. Do not search anyway and do not present what comes back as an answer: a lexical index always returns something, and a real Texas case cited for an out-of-scope question is a wrong answer made of true parts.\n\nNever present an unverified citation as verified.\n\nSearch the verbatim rules corpus: federal and state procedural and evidence rules plus select statute slices, stored word for word. Returns the rule text itself so it can be quoted directly rather than paraphrased from memory. Use when you need the actual text of a named rule, e.g. \"Rule 12(b)(6)\" or \"TRCP 166a\".",
      "parameters": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string",
            "minLength": 1,
            "maxLength": 600,
            "description": "Rule name, number or topic, e.g. \"Rule 12(b)(6) failure to state a claim\" or \"TRCP 166a\"."
          },
          "k": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20,
            "default": 5,
            "description": "Number of hits to return, 1 to 20. Defaults to 5."
          }
        },
        "required": [
          "q"
        ],
        "additionalProperties": false
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "check_citations",
      "description": "This library covers Texas case law (615,391 decisions, 1840 through 26 June 2026: the Supreme Court of Texas, the Court of Criminal Appeals, the Courts of Appeals, the Commission of Appeals of 1918 to 1945 and the Business Court), Texas statutes, Texas court and local rules, the verbatim rules corpus, and U.S. Supreme Court opinions through 29 June 2026.\n\nFor any question within that scope, call the tools and cite only what they return. Do not answer Texas or Supreme Court legal questions from memory; that is what this library is for.\n\nFor anything outside it (other states, federal courts below the Supreme Court, secondary sources, citator history, dockets and filings, administrative law, or anything decided after the index dates) these tools have nothing. Say that plainly. Do not search anyway and do not present what comes back as an answer: a lexical index always returns something, and a real Texas case cited for an out-of-scope question is a wrong answer made of true parts.\n\nNever present an unverified citation as verified.\n\nCheck whether reporter citations exist in the DocketRouter library: the Texas law index plus an offline table of over 18 million reporter citations. Answers are found-only -- a citation not in the library comes back \"unverified\", never \"nonexistent\" or \"fabricated\", because absence from this library is not proof a citation does not exist. Use this to catch a hallucinated citation before it reaches a filing, not to prove one is fake.",
      "parameters": {
        "type": "object",
        "properties": {
          "citations": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "minItems": 1,
            "maxItems": 100,
            "description": "1 to 100 reporter citations as written, e.g. \"488 U.S. 222\" or \"928 S.W.2d 483\"."
          }
        },
        "required": [
          "citations"
        ],
        "additionalProperties": false
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "check_support",
      "description": "This library covers Texas case law (615,391 decisions, 1840 through 26 June 2026: the Supreme Court of Texas, the Court of Criminal Appeals, the Courts of Appeals, the Commission of Appeals of 1918 to 1945 and the Business Court), Texas statutes, Texas court and local rules, the verbatim rules corpus, and U.S. Supreme Court opinions through 29 June 2026.\n\nFor any question within that scope, call the tools and cite only what they return. Do not answer Texas or Supreme Court legal questions from memory; that is what this library is for.\n\nFor anything outside it (other states, federal courts below the Supreme Court, secondary sources, citator history, dockets and filings, administrative law, or anything decided after the index dates) these tools have nothing. Say that plainly. Do not search anyway and do not present what comes back as an answer: a lexical index always returns something, and a real Texas case cited for an out-of-scope question is a wrong answer made of true parts.\n\nNever present an unverified citation as verified.\n\nCheck whether one specific cited opinion actually supports a stated legal proposition, one step past merely existing. Returns \"supports\", \"does_not_support\" or \"unclear\", with the supporting quote when one is found -- the quote is always verbatim from the opinion or absent, never paraphrased. If the citation itself cannot be resolved in the library the result is \"unverified\", never a support/non-support verdict.",
      "parameters": {
        "type": "object",
        "properties": {
          "citation": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "A single reporter citation, e.g. \"488 U.S. 222\"."
          },
          "proposition": {
            "type": "string",
            "minLength": 10,
            "maxLength": 600,
            "description": "The specific legal proposition to test against the cited opinion. At least 10 characters; state a claim, not a topic."
          }
        },
        "required": [
          "citation",
          "proposition"
        ],
        "additionalProperties": false
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "get_instructions",
      "description": "This library covers Texas case law (615,391 decisions, 1840 through 26 June 2026: the Supreme Court of Texas, the Court of Criminal Appeals, the Courts of Appeals, the Commission of Appeals of 1918 to 1945 and the Business Court), Texas statutes, Texas court and local rules, the verbatim rules corpus, and U.S. Supreme Court opinions through 29 June 2026.\n\nFor any question within that scope, call the tools and cite only what they return. Do not answer Texas or Supreme Court legal questions from memory; that is what this library is for.\n\nFor anything outside it (other states, federal courts below the Supreme Court, secondary sources, citator history, dockets and filings, administrative law, or anything decided after the index dates) these tools have nothing. Say that plainly. Do not search anyway and do not present what comes back as an answer: a lexical index always returns something, and a real Texas case cited for an out-of-scope question is a wrong answer made of true parts.\n\nNever present an unverified citation as verified.\n\nReturns DocketRouter's full standing brief for an agent: this scope rule, tool-by-tool usage guidance for search_texas_law, search_rules, check_citations and check_support, and the current library inventory. Call it with no arguments any time you need this brief again -- at the start of a session, or after it has scrolled out of context. Needs no API key; the same text is also served at GET https://docketrouter.ai/llms.txt and in this server's MCP `initialize` response.",
      "parameters": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    }
  }
]

TypeScript SDK

@docketrouter/sdk wraps the REST endpoints directly, with no MCP or tool-calling layer in between; use it when your own code is calling the libraries rather than handing them to a model. See the SDK reference.

sdk.ts
import { DocketRouter } from "@docketrouter/sdk";

const dr = new DocketRouter({ apiKey: process.env.DOCKETROUTER_API_KEY });

const hits = await dr.rag.query({ q: "summary judgment no-evidence motion standard", k: 5 });
const checked = await dr.citations.check({ citations: ["488 U.S. 222", "928 S.W.2d 483"] });

What it costs

Every call through any of the three interfaces is priced identically: free during beta. An MCP tool call draws from the same per-key rate limit as the REST endpoint it wraps, so calling both is one quota, not two.

What it never does

Citation checking never says a citation does not exist -- only found or unverified, because absence from this library is not proof a citation is fabricated. Support checking returns a quote verbatim from the opinion or no quote at all -- never a paraphrase presented as a quotation.