Skip to main content
Glama

In Code Search

in_code_search
Read-onlyIdempotent

Search the Indiana Code BY TOPIC or keyword rather than citation, "traffic oversized vehicle permit", "landlord retaliatory eviction", "concealed handgun license". Returns ranked sections with their citations across all 37 Indiana Code titles; use in_code_section afterward for the full text of one. Full-text search, so it answers questions no citation lookup can. 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": "landlord retaliatory eviction"
    },
    "name": "in_code_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results, default 10, max 25.
queryYesTopic or keywords, e.g. "landlord retaliatory eviction".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the return shape (ranked sections with citations across all 37 titles), the fact that it is full-text rather than indexed lookup, and that it is keyless (no auth required). It does not mention result-count behavior or truncation, but the safety and auth picture is well covered.

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?

The purpose and scope constraint are front-loaded in the first clause, examples are compact, and the alternative is named before the caveat. It is dense with no filler, though the trailing one-word fragment 'Keyless.' is slightly abrupt.

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?

There is no output schema, so the description carries the burden of describing return values, and it does ('ranked sections with their citations'), plus corpus scope (all 37 titles) and a next-step tool. Nothing needed to select or invoke this two-parameter tool 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?

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real value by clarifying that the query is topical keywords, not a citation string. Schema coverage is 100% and the schema already documents both the query and the limit (default 10, max 25), so the description adds little on the limit parameter beyond what is structured.

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 gives a specific verb and resource ('Search the Indiana Code') and immediately scopes it to topic/keyword searching 'rather than citation', which separates it from the citation-oriented sibling in_code_section. Concrete example queries make the intended input 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?

It states when to use this tool (topic questions that a citation lookup cannot answer) and names the follow-up alternative explicitly: 'use in_code_section afterward for the full text of one.' The routing decision between discovery and retrieval is fully spelled out.

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.