Skip to main content
Glama

New on Record

search_records

Read-only

Records by words, or filtered. With words (q), order is best, the best match first and the default, or newest; without words they come newest first. Records filtered by kind, place or source, a window of dates (ISO 8601 with a time zone), the office's own number, exactly (match, such as {"license_number": "12345"}: list_kinds names each kind's lookup fields), a state in our words (state, such as active or issued: list_kinds names each kind's), a company that names them (company, an id from find_company), or the street address they are at (address, an address's id: from find_address, or a record's address.id). A kind with a deadline, a bid's due date or a license's expiry, is found by when it passes (deadline_after, deadline_before, ISO 8601 with a time zone): deadline_after now gives the bids not yet due, whatever their status, which is the office's own word. A deadline the office gave as a date passes at that day's end. A kind whose records hold a city of their own, a carrier's or a license holder's, is found by it (city), and a carrier by its ZIP code (postal_code), across a statewide roster. Without words, records come newest first by occurred_at, the date each record's dated_by names. With words (q), every word must be in a record's text or the name it is filed under, in any order, and a word finds its other forms, never a word it is part of (HVAC* finds HVACR). Put "a phrase" in quotes, end a word with * for its beginning, start one with - to leave it out, and put OR between two words for either; AND and NOT are words like any other. Records then come best match first, or newest first with order=newest, each with matched: its values that hold the words. The page also gives total and counts by kind, place and year. Narrow by them rather than reading on: 10 to 20 a page is enough. limit=0 gives the counts alone, which count nothing against today's allowance. At most 100 a page; pass next_cursor back for the next. Each record returned counts against today's allowance.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
cityNo
kindNo
limitNo
matchNo
orderNo
placeNo
sinceNo
stateNo
untilNo
cursorNo
sourceNo
addressNo
companyNo
postal_codeNo
deadline_afterNo
deadline_beforeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/destructive annotations, it discloses quota accounting ('each record returned counts against today's allowance', 'limit=0 ... count nothing against today's allowance'), the 100-per-page cap, cursor-based pagination, and the returned fields total/counts/matched. One flaw: it tells the agent to 'pass next_cursor back' while the schema parameter is named cursor, which could cause a wrong-argument attempt.

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

Conciseness3/5

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

Nearly every clause carries information, but it is delivered as a dense run-on of semicolon- and parenthesis-chained fragments with no paragraphing, so the highest-value rules (default ordering, quota, pagination) are buried mid-block. It is appropriately sized for 17 undocumented parameters but poorly structured and hard to scan.

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 17-parameter, zero-schema-coverage tool with no output schema, the description covers matching semantics, filtering, ordering, pagination, rate limits, and even the shape of returned metadata. Residual gaps are the since/until naming, the cursor/next_cursor naming mismatch, and the unexplained place/source filters.

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?

With 0% schema description coverage the description carries the full burden and largely succeeds: it specifies q syntax (quoted phrases, trailing * for prefix, leading - to exclude, OR, AND/NOT treated literally, stemming rules like HVAC* matching HVACR), order values, deadline_after/before semantics including the end-of-day rule and 'deadline_after now' for open bids, match's exact-field object shape, and the id-type expectations for company/address. Gaps: since/until are only described obliquely as 'a window of dates', and place/source are named but never explained.

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 opening ('Records by words, or filtered') states the resource and the two operating modes, and the body makes clear it is a search/retrieval tool that supports both full-text and field filters. It differentiates itself from siblings by naming list_kinds (for lookup fields), find_company and find_address (as id sources). The phrasing is telegraphic rather than a clean verb+resource sentence, so it is clear but not maximally crisp.

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?

It gives explicit mode-selection rules: with q, order defaults to best/best-match-first; without q, results come newest first. It tells the agent to narrow via total/counts rather than paging ('10 to 20 a page is enough'), explains limit=0 returns counts only and costs no allowance, and routes to list_kinds/find_company/find_address for the identifiers other filters require.

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