Skip to main content
Glama

List Granules

list_granules
Read-onlyIdempotent

List granules within a package, e.g., sections of a CFR title, individual entries in a Federal Register issue. Returns granule IDs + titles.

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": {
      "package_id": "BILLS-118hr1234ih"
    },
    "name": "list_granules"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoAlias for page_size, 1-100.
page_sizeNoGranules per page, 1-100 (default 100). `limit` works as an alias.
package_idYesGovInfo packageId
offset_markNoPagination cursor

Output Schema

NameRequiredDescriptionDefault
totalYesTotal granules in package
granulesYesList of granules in package
returnedYesNumber of granules returned
package_idYesGovInfo package ID
next_offset_markNoPagination cursor for next results

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Alias for page_size, 1-100.",
      +  "type": "number"
      +}
    • changedInput schema / properties / page_size / description
      Previous value: -"1-100 (default 100)"New value: +"Granules per page, 1-100 (default 100). `limit` works as an alias."
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "package_id": "BILLS-118hr1234ih"
      +  },
      +  {
      +    "package_id": "CFR-2024-title29-vol5",
      +    "page_size": 50
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "granules": {
      +      "description": "List of granules in package",
      +      "items": {
      +        "properties": {
      +          "class": {
      +            "description": "Granule class/type",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "id": {
      +            "description": "Granule ID",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "link": {
      +            "description": "URL to granule on GovInfo",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "description": "Granule title",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "next_offset_mark": {
      +      "description": "Pagination cursor for next results",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "package_id": {
      +      "description": "GovInfo package ID",
      +      "type": "string"
      +    },
      +    "returned": {
      +      "description": "Number of granules returned",
      +      "type": "number"
      +    },
      +    "total": {
      +      "description": "Total granules in package",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "package_id",
      +    "total",
      +    "returned",
      +    "granules"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this as a read-only, idempotent, non-destructive, open-world operation, so the safety profile is well covered. The description adds that it returns granule IDs and titles, but does not discuss pagination behavior, rate limits, or permission requirements beyond what the schema and annotations provide.

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 tightly written sentences with zero waste. The core action and scope are front-loaded, followed by examples and return content.

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 paginated list tool with a complete input schema, rich annotations, and an output schema, the description is largely complete. It could more explicitly mention pagination or how to obtain a package_id, but those gaps are minor given the structured metadata.

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 all four parameters are already documented in the input schema. The description adds no parameter-level meaning beyond implying package_id is the scope. Baseline 3 is appropriate when the schema carries the parameter semantics.

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: list granules within a package. It adds concrete examples (CFR sections, Federal Register entries) that clarify what a granule is. It does not explicitly distinguish itself from sibling tools like get_granule, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by 'within a package' and the examples, but the description gives no explicit when-to-use, when-not-to-use, or alternative guidance such as when to call get_granule instead. It is minimally adequate but not instructive.

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.