Skip to main content
Glama

Search meeting documents

search_documents
Read-onlyIdempotent

What the city put in writing — agendas, minutes, staff reports, meeting packets, attachments, ordinances, and resolutions. Keyword search across extracted document text. Use this when the value is in the written record, not the spoken transcript.

WHEN: Looking for ordinance language, budget tables, agenda text, staff reports, attached PDFs. WHEN NOT: For what was said in the meeting, use search_meetings. For metadata-only queries ('what meetings happened last week?'), search_meetings with q on a placeholder works better.

EXAMPLES: { "q": "ADU ordinance", "cities": ["lehi-ut"] } { "q": "FY2027 budget", "cities": ["lehi-ut"] } { "q": "developer presentation Main Street" }

hits: [] means no document text matched — simplify the query and retry; never report it as missing access to a city.

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": {
      "q": "<q>"
    },
    "name": "search_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesFree-text query matched against extracted text from agendas, minutes, packets, and attachments.
limitNoMax hits returned. Default 25, up to 150. Results are spread across cities and meetings so one verbose meeting cannot fill the response. For statewide or multi-city questions pass a high limit and filter the results yourself — that is cheaper and more complete than many narrow queries.
stateNoTwo-letter state code (e.g. 'TX'): search every city in that state this account can see. Ignored when `cities` is given. An account with more than 50 cities must pass `cities` or `state`.
citiesNoCity-slug allow-list. Strongly recommended. Without it (or `state`) every accessible city is searched, which an account with more than 50 cities is not allowed to do.
doc_typesNoFilter by doc_type values, e.g. ['agenda', 'minutes', 'packet', 'attachment'].

Output Schema

NameRequiredDescriptionDefault
hitsYesDocument matches, newest first.
totalYesRough upper bound on candidate documents, NOT a count containing your full query — matching relaxes trailing words to keep recall up. Never report this as 'N mentions'; count `hits` instead.
citiesQueriedYesNumber of cities actually searched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / cities / description
      Previous value: -"City-slug allow-list. Strongly recommended — searches every accessible city otherwise."New value: +"City-slug allow-list. Strongly recommended. Without it (or `state`) every accessible city is searched, which an account with more than 50 cities is not allowed to do."
    • addedInput schema / properties / state
      Added value: +{
      +  "description": "Two-letter state code (e.g. 'TX'): search every city in that state this account can see. Ignored when `cities` is given. An account with more than 50 cities must pass `cities` or `state`.",
      +  "pattern": "^[A-Za-z]{2}$",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description's added value is in result behavior: hits are spread across cities and meetings so one verbose meeting can't dominate, and `hits: []` means no text match rather than missing access — a failure-mode an agent would otherwise misreport. It stops short of describing ranking or relevance scoring, which keeps it off 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.

Conciseness4/5

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

Headers (WHEN / WHEN NOT / EXAMPLES) plus concrete sample payloads make it scannable, and the resource framing is front-loaded ahead of routing guidance. It is longer than strictly necessary — the three examples repeat the same `cities` shape — but no sentence is 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?

With an output schema present and full schema coverage, the description only needs to cover routing, empty-result interpretation, and scope limits, and it does all three. An agent can decide between document and transcript search and interpret an empty response without opening either schema.

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 all five parameters are already documented with defaults, ranges, and the 50-city constraint — the baseline of 3 applies. The examples show `q` combined with `cities`, and the empty-result advice implies query simplification, but the description adds little parameter meaning the schema does not already carry.

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 opening sentence names the concrete resource (agendas, minutes, staff reports, packets, ordinances, resolutions) and the operation (keyword search across extracted document text). It then draws an explicit boundary against the spoken-record sibling: "Use this when the value is in the *written* record, not the spoken transcript."

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?

Dedicated WHEN and WHEN NOT blocks name the alternative (search_meetings) and the exact condition that selects it, including a subtle case — metadata-only queries where `q` on a placeholder performs better. The examples illustrate the recommended city-scoped call pattern alongside the actual queries.

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