Skip to main content
Glama

list_documents

Read-onlyIdempotent

List documents in a jurisdiction with structured filters and pagination. Use this tool when: - The user wants to find legal content for a specific jurisdiction and optional filters - The user asks about available content for a portal name, title, section_title, url, status, repealed, publication_date and crawling_date - The user wants to filter content for type of authority, issuing authority, source identifier, source secondary identifier, tag Parameters: - iso (required): Filter by Jurisdiction ISO code (e.g. "US"). - portal (optional): Filter by portal name. - limit (optional): Number of results to return. - offset (optional): Number of results to skip. - document_id (optional): Filter by document ID. - repealed (optional): Filter by repealed status. - title (optional): Filter by title. - section_title (optional): Filter by section title. - url (optional): Filter by URL. - status (optional): Filter by status. - crawling_date (optional): Filter by crawling date. - last_updated (optional): Filter by last updated date. - last_amendment (optional): Filter by last amendment date. - publication_date (optional): Filter by publication date. - expiration_date (optional): Filter by expiration date. - effective_date (optional): Filter by effective date. - date_of_enactment (optional): Filter by date of enactment. - date_of_decision (optional): Filter by date of decision. - file_data_only (optional): Return file data only. - issuing_authority (optional): Filter by issuing authority. - type_of_authority (optional): Filter by type of authority. - source_identifier (optional): Filter by source identifier. - source_secondary_identifier (optional): Filter by secondary source identifier. - tag (optional): Filter by tag. - lang (optional): Filter by language. Returns: - Contents list with title, section_title, publication_date, effective_date, expiration_date, date_of_enactment, date_of_last_amendment, date_of_repealed, date_of_decision, status, version, source_identifier, source_secondary_identifier, issuing_authority, type_of_authority, language, legal_link, repealed, metadata, summary, tags, source_keywords, crawling_date, portal, portal_name, last_updated - Only returns content that has crawled data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
isoYesFilter by Jurisdiction ISO code (e.g. 'US')
tagNoFilter by tag
urlNoFilter by URL
langNoFilter by language
limitNoNumber of results to return
titleNoFilter by title
offsetNoNumber of results to skip
portalNoFilter by portal name
statusNoFilter by status
versionNoFilter by version
repealedNoFilter by repealed status
document_idNoFilter by document ID
last_updatedNoFilter by last updated date
crawling_dateNoFilter by crawling date
section_titleNoFilter by section title
effective_dateNoFilter by effective date
file_data_onlyNoReturn file data only
last_amendmentNoFilter by last amendment date
expiration_dateNoFilter by expiration date
date_of_decisionNoFilter by date of decision
publication_dateNoFilter by publication date
date_of_enactmentNoFilter by date of enactment
issuing_authorityNoFilter by issuing authority
source_identifierNoFilter by source identifier
type_of_authorityNoFilter by type of authority
source_secondary_identifierNoFilter by secondary source identifier

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already provide readOnlyHint, idempotentHint, and destructiveHint. The description adds valuable context: it only returns content that has crawled data, and lists return fields. This supplements the annotations without contradiction.

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?

The description is lengthy due to parameter listing, but it is well-structured with a summary, usage conditions, parameter list, and return fields. It front-loads the core purpose. Some redundancy with schema descriptions exists, but the structure aids readability.

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?

Given the 26 parameters and no output schema, the description compensates by listing return fields and noting the crawled-data constraint. It could be more specific about pagination behavior (limit/offset), but overall it is fairly complete.

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 description coverage is 100%, so parameters are already documented in the schema. The description lists parameters with brief explanations (mostly 'Filter by X'), but also adds usage context (e.g., 'Returns only content that has crawled data') and lists return fields, adding value beyond the schema.

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?

The description starts with a specific verb-resource pair 'List documents in a jurisdiction', clearly stating the action and scope. It distinguishes from sibling 'list_' tools that list other entities (e.g., list_authority_types) and from document retrieval tools.

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?

The description explicitly lists 'Use this tool when:' conditions, providing clear context for when the tool is appropriate. It does not explicitly state when not to use it or mention alternatives, but the context is sufficient given the sibling tools.

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.

TDQS

A3.7/5.0
Disambiguation4/5

Most tools have distinct purposes, but evidence_pull and get_document_text both return full text, which could cause confusion. Other tools like list_documents and get_markdown are clearly differentiated.

Naming Consistency3/5

Names follow a mix of 'list_', 'get_', and one-off names like 'evidence_pull' and 'horizon_scan'. The verb_noun pattern is present but inconsistent.

Tool Count4/5

16 tools is reasonable for a legal document retrieval server, though some functionality overlaps (e.g., multiple ways to get document text). Still well-scoped for the domain.

Completeness4/5

Covers browse, filter, and retrieve operations comprehensively. Missing a general text search tool, but horizon_scan offers a recent-changes scan. Minor gap.