Skip to main content
Glama

get_document_text

Read-onlyIdempotent

Retrieves full text for a specific jurisdiction and optional filters. Use this tool when: - The user asks about available full text for a portal name, title, section_title, url, status, repealed, publication_date and crawling_date - The user wants to filter full text 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: - Content full text list with document_id, full_text

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

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description does not need to restate those. The description adds the return format ('Content full text list with document_id, full_text') but does not disclose other behavioral traits like pagination behavior, rate limits, or data freshness. Given the annotations, the description provides adequate but not exhaustive transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is overly long (over 20 lines) and largely repeats the parameter list from the input schema. The bullet points of use cases are verbose and could be condensed. The front-loading is acceptable, but the redundancy reduces conciseness. A more streamlined version would be more effective.

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

Completeness2/5

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

For a tool with 26 parameters and no output schema, the description is incomplete. It lacks explanation of pagination (limit/offset behavior), the meaning of 'file_data_only', and details about the returned data structure beyond 'document_id, full_text'. The absence of an output schema increases the burden on the description, which is not fully met.

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. The description lists all parameters with brief explanations that mirror the schema. It adds no extra meaning beyond what the schema already provides, such as parameter interplay, formatting constraints, or edge cases. The 'Returns' section is helpful but does not enhance 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 tool's purpose is clearly stated: 'Retrieves full text for a specific jurisdiction and optional filters.' It specifies the resource (full text) and action (retrieve), and implies it is a query tool. However, it does not explicitly differentiate from siblings like get_document_with_version or get_markdown, leaving the agent to infer that 'full text' is distinct.

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?

The description includes bullet points listing when to use the tool (e.g., 'when the user asks about available full text for a portal name...'). This provides some guidance, but it does not mention when not to use it or compare it to sibling tools. The list is broad and somewhat redundant with the parameter list, offering limited strategic direction.

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.