Skip to main content
Glama

Fetch a document

fetch
Read-onlyIdempotent

Use this to read the full document for an id returned by search: a statute section’s official text, or a court decision’s DavisStirling summary followed by the start of the opinion, with source and currency information. Do not use it to search; use search first to get an id.

Input Schema

NameRequiredDescriptionDefault
idYesAn id from search, e.g. "cal.civ.4920" or "cal.case.nahrstedt-v-lakeside-village-1994".

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
metaYes
textYes
titleYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / metadata / properties / citation / properties / title_layer / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "layer": {
      -        "const": "davisstirling",
      -        "type": "string"
      -      },
      -      "method": {
      -        "enum": [
      -          "derived",
      -          "editorial.human",
      -          "editorial.machine-reviewed",
      -          "editorial.human-reviewed",
      -          "editorial.sourced"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "layer",
      -      "method"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "layer": {
      -        "const": "source",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "layer"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "layer": {
      +        "const": "davisstirling",
      +        "type": "string"
      +      },
      +      "method": {
      +        "enum": [
      +          "derived",
      +          "editorial.human",
      +          "editorial.machine-drafted",
      +          "editorial.machine-reviewed",
      +          "editorial.human-reviewed",
      +          "editorial.sourced"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "layer",
      +      "method"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "layer": {
      +        "const": "source",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "layer"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: the shape of returned content per document type and the inclusion of source and currency metadata, which is what an agent needs to trust the result.

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 sentences, zero filler; the purpose and returned content are front-loaded before the search exclusion. Every clause earns its place.

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?

For a single-parameter read tool with an output schema (so return values need not be spelled out) and full annotation coverage, the description says everything needed to select and invoke it correctly: what it returns, which id to pass, and which sibling to use instead when searching.

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% and the single id parameter is already documented with format examples and length bounds. The description adds the provenance of the id ('returned by search'), which is mildly useful but largely restates the schema, so the baseline 3 applies.

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 (read) and resource (full document) scoped by an id from search, and details exactly what content comes back for each document type (statute official text vs. court decision DavisStirling summary plus opinion start). This clearly separates it from the search/get_* siblings without needing their schemas.

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?

Explicitly routes the agent: 'Do not use it to search; use search first to get an id.' Both the when-not condition and the required prerequisite/alternative are named, leaving nothing to inference.

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.

Resources