Skip to main content
Glama

Get the text of one bill version

get_bill_text
Read-only

The cleaned plain text of one bill-text version (GET /v1/texts/{text_id}), entities decoded, ready to quote or summarize. Get text_id from get_bill with include:['texts'] (each version has a date and type). Texts longer than 40,000 characters are clipped with a '[truncated]' marker.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text_id": "<text_id>"
    },
    "name": "get_bill_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
text_idYestext_id from get_bill include:['texts'].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior: entities are decoded, the text is cleaned and ready to quote, and anything over 40,000 characters is clipped with a '[truncated]' marker — a caveat an agent must know before summarizing. It omits anything about failure modes for an invalid text_id, which keeps it from a 5.

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?

Three sentences, front-loaded with what the tool returns and immediately followed by how to get the required ID and the truncation caveat. No filler or restatement of the name.

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 single-parameter, non-destructive read with no output schema, the description covers the key things an agent needs: content type, provenance of text_id, and the truncation limit. It stops short of describing the response envelope (e.g., whether the text arrives as a string field), which is the only remaining gap.

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 schema already says 'text_id from get_bill include:[\'texts\']', which the description largely repeats. The only added meaning is that each version carries a date and type, clarifying that text_id selects a specific version rather than the whole bill; that is a marginal gain over 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?

States a specific verb and resource ('The cleaned plain text of one bill-text version') and pins it to the endpoint GET /v1/texts/{text_id}. It is clearly distinguishable from siblings like get_bill_diff or get_bill_text_history because it returns the text of a single version rather than a comparison or a list of versions.

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?

Gives concrete routing guidance by telling the agent to obtain text_id from get_bill with include:['texts'], which is the prerequisite step for this tool. It does not explicitly exclude alternatives (e.g., when to prefer get_bill_diff or get_bill_text_history), so it falls short of full when/when-not coverage.

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