Skip to main content
Glama

Search bills by exact keywords (all must match)

keyword_search_bills
Read-only

Keyword search where EVERY term must appear (GET /v1/search/bills). Use when the user gives specific words that all have to be present, e.g. ['short-term rental', 'tax']. Prefer semantic_search_bills for questions and search_bills for structured filters. Up to 10 terms. Returns bill summaries plus pagination. Corpus is 2026-forward only.

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": {
      "keywords": "<keywords>"
    },
    "name": "keyword_search_bills"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows (default 25).
stateNoJurisdictions (postal codes, DC, US). Omit for all.
offsetNoPagination offset.
keywordsYesTerms that must all match.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive, open-world profile, so the description's job is additive — and it adds real context: an internal endpoint, a 10-term ceiling, the AND matching rule, and a hard corpus boundary ('2026-forward only') that will silently exclude older bills. It stops short of describing result ranking or what happens when terms match partially.

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?

Dense and front-loaded: the matching rule and the endpoint come first, followed by the usage example and alternatives. The corpus boundary is the most consequential constraint for correctness yet sits in the final clause, and the raw GET path is noise an agent cannot use.

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?

With no output schema, the description still tells the agent it receives bill summaries plus pagination, and it supplies the term cap and corpus scope needed to call the tool sensibly. Nothing material for correct invocation is missing.

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 coverage is 100%, so the baseline is 3; the description earns above that by clarifying the logical operator across the keywords array (all must match) and demonstrating term shape with ['short-term rental', 'tax'], which the schema alone does not convey. The state and limit parameters are left entirely to 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 plus the defining constraint ('EVERY term must appear'), and the title reinforces the all-must-match semantics. It is immediately distinguishable from the two search siblings it names.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ('user gives specific words that all have to be present') and explicit routing away to semantic_search_bills for questions and search_bills for structured filters. The choice between the three search tools is fully determined.

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