Skip to main content
Glama

List items

list_items
Read-only

List items from a collection with filters, sorting and pagination.

filters is a JSON object with keys from list_collections, e.g. {"jurisdictionSlug": "CALIFORNIA", "isCurrentSession": true}; enum values accept lowercase. Page with first/after (totalCount, hasNextPage, nextOffset). response_format "concise" or "detailed"; "full" is get_item only. To count bills per jurisdiction or session, list bill_stats.

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": {
      "collection": "<collection>"
    },
    "name": "list_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNo
firstNo
filtersNo
collectionYes
sort_fieldNo
sort_directionNoASC
response_formatNoSelection-set size for get/list/search results.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish a safe read-only, closed-world operation, so the description's job is to add context — and it does: pagination mechanics (first/after, with totalCount, hasNextPage, nextOffset returned), the shape of filters, and the restriction that "full" is not available here. It stops short of describing rate limits or result-size ceilings beyond the schema's first<=100.

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?

Purpose is front-loaded in the first sentence, followed by a compact set of parameter notes with no filler. The filter example is valuable rather than padding, though the paragraph is dense enough that the pagination and format guidance blend together.

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

Completeness3/5

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

For a 7-parameter tool with 14% schema coverage and no output schema, the definition covers the high-risk parameters and even names key return fields, but leaves sorting undocumented and does not clarify collection semantics beyond the schema enum. An agent could call it correctly for basic listing but would guess at sort behavior.

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 only 14%, so the description must carry the load; it does so for the three hardest parameters — filters (JSON object keyed from list_collections, example given, enum values accept lowercase), pagination (first/after), and response_format (concise/detailed only). sort_field and sort_direction receive no explanation at all, leaving a real gap at this coverage level.

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?

Opens with a specific verb+resource ('List items from a collection') and enumerates the supported dimensions (filters, sorting, pagination). It also implicitly distinguishes itself from get_item by noting that response_format "full" is get_item only, and from list_collections by pointing there for filter keys, though it never states plainly how it differs from find/search.

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?

Gives two concrete routing rules: use list bill_stats to count bills per jurisdiction/session, and use get_item when you need "full" format. However, it offers no guidance on when to choose list_items over find, search, or list_collections for ordinary retrieval, which is the most likely agent confusion.

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