Skip to main content
Glama

indian_legal_mcp_search_keyword

[AI TOOL ORCHESTRATION INSTRUCTION: ALWAYS use this tool FIRST when the specific section number is unknown. Never guess section numbers.] Search section titles and text across all 102 Acts (including the 2026 Constitution of India, criminal, civil, commercial, corporate, labor, tax, environmental, public health, and family codes). Exact title matches rank #1, partial title matches rank #2, and body text matches rank #3 (via BM25). Handles exact phrases, multi-word keywords, section citations (e.g. 'Article 21: Life & Liberty'), and punctuation gracefully. If filtered by an Act that has no matching provisions, dynamically detects and suggests other Acts in the database where relevant provisions exist.

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": {
      "query": "<query>"
    },
    "name": "indian_legal_mcp_search_keyword"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYessearch term(s), e.g. 'punishment for murder', 'freedom of speech', 'anticipatory bail', 'arbitration agreement', 'corporate governance', 'cheque bounce'.
act_codeNooptional -- restrict search to one Act (e.g. 'BNS', 'IPC', 'COI', 'CA', 'RERA', 'IBC').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / act_code / description
      Previous value: -"optional -- restrict search to one Act."New value: +"optional -- restrict search to one Act (e.g. 'BNS', 'IPC', 'COI', 'CA', 'RERA', 'IBC')."
    • changedInput schema / properties / query / description
      Previous value: -"search term(s), e.g. 'punishment for murder'."New value: +"search term(s), e.g. 'punishment for murder', 'freedom of speech', 'anticipatory bail', 'arbitration agreement', 'corporate governance', 'cheque bounce'."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the ranking scheme (exact title #1, partial #2, body-text #3 via BM25), robustness to phrases/punctuation/citations, and dynamic suggestion of other Acts when a filtered Act yields no matches. It does not state return format, pagination, or result limits, so not quite full marks.

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 bracketed orchestration directive is front-loaded and high-value, followed by search behavior and fallback semantics in tight sentences. The bracketed 'AI TOOL ORCHESTRATION INSTRUCTION' framing is slightly noisy but the content earns its place.

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?

No output schema and no annotations, so the description must cover behavior, and it covers ranking and fallback logic well. It omits what a result contains (fields, snippets vs. full text) and any result-count limits, which would help an agent use the output correctly.

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, but the description adds meaning beyond the schema: the act_code filter's fallback behavior (dynamically detecting and suggesting other Acts when the filtered Act has no matching provisions) is not derivable from the schema. Query examples reinforce expected input shape.

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 section titles and text across all 102 Acts') and delimits scope by enumerating the covered codes. An agent can distinguish it from siblings like get_section (which requires a known identifier) without opening the 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?

The description gives an explicit, unconditional when-to-use rule ('ALWAYS use this tool FIRST when the specific section number is unknown. Never guess section numbers'), which is exactly the decision boundary that separates it from get_section/resolve_act. The condition that selects this tool is stated with no inference required.

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.