Skip to main content
Glama

Mt Code Search

mt_code_search
Read-onlyIdempotent

Search the Montana Code Annotated BY TOPIC or keyword rather than citation -- "computing time deadline holiday", "landlord security deposit", "deliberate homicide". Covers all 54 MCA titles, including Title 25 chapter 20, the Montana Rules of Civil Procedure (Rule 6 computing time is MCA 25-20-206). Returns ranked sections with citation, heading and an opening excerpt; call mt_code_section with a result's citation for the full text. Full-text match, not semantic search. A query with no hits returns found:false. 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": {
      "limit": 5,
      "query": "computing time period days holiday"
    },
    "name": "mt_code_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results, default 10, max 25.
queryYesTopic or keywords, e.g. "computing time period days holiday".

Output Schema

NameRequiredDescriptionDefault
hintNo
countNoNumber of results returned
foundNoTrue when at least one section matched
matchNoall_words, or any_word when no section held every word
queryNoThe query searched
reasonNoMachine-readable reason when found is false for an infrastructure cause
sourceNoPublisher and dataset
messageNo
resultsNoRanked sections
mca_yearNoMCA edition the index was built from
data_as_ofNoWhen the index was loaded

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / results / items / properties / citation / description
      Previous value: -"MCA citation, e.g. MCA § 25-20-206"New value: +"MCA citation, e.g. MCA section 25-20-206"
  2. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile needs no repeating. The description still adds real behavior the annotations do not cover: ranked results with citation, heading and opening excerpt; found:false on zero hits; keyless access; full-text rather than semantic matching. Pagination/ranking mechanics are not described, which keeps it below the top band.

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?

Four tight sentences, front-loaded with the topic-vs-citation distinction, then coverage/example, then result shape and the follow-up call, then the negatives (full-text, found:false, keyless). 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, the description need only orient the agent, and it does: scope (all 54 titles), match type, result fields, empty-result signal, and next step. Nothing needed to invoke it correctly is missing.

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 coverage is 100%, including the limit bounds (default 10, max 25), so the schema carries the parameter documentation. The description reinforces that the query is a bag of topic keywords rather than a citation, but adds little syntax or format detail beyond the schema's own example.

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 names a specific verb and resource ("Search the Montana Code Annotated BY TOPIC or keyword") and explicitly draws the line against citation-based lookup and against full-text retrieval, which is what sibling mt_code_section does. An agent can distinguish this from the section-fetch tool without opening either schema.

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 states when to use this tool (topic or keyword rather than citation), gives three concrete query shapes, and routes the agent to the alternative explicitly: "call mt_code_section with a result's citation for the full text." It also warns the match is full-text, not semantic, so the agent knows not to phrase natural-language questions.

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.