Skip to main content
Glama

Search Bills

search_bills
Read-onlyIdempotent

Full-text search US state (and federal) legislation to find out what bills are about a given topic. Searches one state or nationwide (ALL) and returns matching bills with number, title, state, last action, and a LegiScan bill_id you can pass to get_bill. Example: search_bills({ query: "data privacy", state: "CA" })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoLegiScan year code: 1 = all years, 2 = current + prior session (default), or a specific year like 2024.
queryYesSearch terms, e.g. "data privacy", "minimum wage", "abortion"
stateNo2-letter state abbreviation (e.g. "CA", "TX") or "ALL" to search every state. Default "ALL".
_apiKeyNoOptional — your own LegiScan API key for higher limits; omit to use the shared Pipeworx key.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "query": "data privacy"
      -  },
      -  {
      -    "query": "minimum wage",
      -    "state": "CA",
      -    "year": 2024
      -  }
      -]New value: +[
      +  {
      +    "query": "data privacy"
      +  },
      +  {
      +    "query": "minimum wage",
      +    "state": "CA",
      +    "year": 2024
      +  },
      +  {
      +    "query": "recently introduced bills",
      +    "state": "CA"
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "data privacy"
      +  },
      +  {
      +    "query": "minimum wage",
      +    "state": "CA",
      +    "year": 2024
      +  }
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior. The description adds useful behavioral context: it returns specific fields, supports nationwide or one-state search, and provides an example. It doesn't cover rate limits or edge cases, but the annotation coverage lowers the bar.

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?

The description is two sentences plus a concrete example, front-loaded with the main purpose. Every sentence earns its place, with no redundancy or filler.

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

Completeness5/5

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

Given the simple schema and rich annotations, the description is complete: it explains the tool's scope, output shape, integration with get_bill, and provides a usage example. No output schema exists, but the return values are explicitly named.

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's example reinforces parameter usage but does not add semantic meaning beyond what the schema already provides. No penalty, but no extra credit.

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 opens with a specific verb+resource ('Full-text search US state (and federal) legislation') and clearly states the scope (one state or ALL) and the output (matching bills with key fields and a bill_id). It also distinguishes itself from siblings by mentioning the pass-off to get_bill, making the purpose unmistakable.

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 gives clear usage context: searching for bills about a topic, optionally limited to a state, and explains that results include a bill_id that can be passed to get_bill. It implies a workflow but does not explicitly state when not to use this tool or name alternatives beyond get_bill.

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.