Skip to main content
Glama

Ma Search Sections

ma_search_sections
Read-onlyIdempotent

Search the Massachusetts General Laws BY TOPIC or keyword when you do not have a chapter and section, e.g. "gold dealers", "fineness marks silver", "landlord security deposit". Matches the Legislature's own section titles and chapter names across all chapters (not statute text; the site has no text search). Returns chapter, section, title and the arguments to pass to ma_general_law for the full text. Optional chapter narrows to one chapter. Keyless.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "gold dealers"
    },
    "name": "ma_search_sections"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results, default 10, max 25.
queryYesTopic or keywords, e.g. "gold dealers".
chapterNoOptional chapter to search within, e.g. "266" or "90A".

Output Schema

NameRequiredDescriptionDefault
hintNo
countNoResults returned
foundYestrue when at least one section title matched
queryNo
reasonNoPresent when found is false
sourceNo
messageNo
resultsNo
data_as_ofNo
match_levelNo
total_matchedNoAll sections that matched before the limit
sections_scannedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so safety is covered; the description goes further by disclosing the key limitation that matching is against the Legislature's own section titles and chapter names, not statute text, because "the site has no text search." It also discloses keyless access and the return payload. Slightly short of 5 only because result ranking/ordering behavior is unstated.

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?

Front-loads the scope and the discriminating condition before the mechanics, and every clause carries information an agent needs — the examples, the title-only matching caveat, the return shape, and the chapter narrowing. No filler or repetition of the title.

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?

For a three-parameter search tool with an output schema and full annotation coverage, this supplies the remaining essentials: what corpus is matched, what is deliberately not matched, what comes back, and how the result feeds the sibling tool. Nothing needed to call it correctly 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 baseline is 3; the description adds real meaning by stating that chapter is optional and "narrows to one chapter," which explains intent rather than just type. Query and limit semantics are left entirely to the schema, which already documents defaults and caps.

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 ("Search the Massachusetts General Laws BY TOPIC or keyword") and distinguishes itself from the sibling ma_general_law by naming the exact precondition it removes ("when you do not have a chapter and section"). Concrete examples ("gold dealers", "landlord security deposit") make the intended query shape unambiguous.

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?

Explicitly says when to use this tool instead of the direct-lookup sibling, and closes the loop by noting it returns "the arguments to pass to ma_general_law for the full text" — a clear two-step workflow. The optional-chapter narrowing is also framed as guidance rather than raw schema restatement.

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.