india_search_sections

Pack: india-law · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/india_search_sections for the schema, then POST the same URL with its arguments for the data.

Search section headings across Indian acts by words, e.g. “murder” finds BNS s.103 “Punishment for murder”. Optionally restrict to one act via act_id. Returns section number, heading and a text preview; use india_get_section for full text.

Parameters

NameTypeRequiredDescription
querystringyesWords in the section heading or text
act_idstringnoRestrict to one act (act_id from india_search_acts)
jurisdictionstringnoCENTRAL (default) or a state name
limitnumbernoMax sections, 1-25 (default 10)

Example call

Arguments

{
  "query": "murder"
}

curl

curl -X POST https://gateway.pipeworx.io/india-law/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"india_search_sections","arguments":{"query":"murder"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('india_search_sections', {
  "query": "murder"
});

Response shape

FieldTypeDescription
foundboolean
querystring
total_matchesnumber
sectionsarray
notestring
sourcestring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "query": {
      "type": "string"
    },
    "total_matches": {
      "type": "number"
    },
    "sections": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "act_id": {
            "type": "string"
          },
          "act_title": {
            "type": "string"
          },
          "section": {
            "type": "string"
          },
          "heading": {
            "type": "string"
          },
          "jurisdiction": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "repealed": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      }
    },
    "note": {
      "type": "string"
    },
    "source": {
      "type": "string"
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the india-law pack
{
  "mcpServers": {
    "india-law": {
      "url": "https://gateway.pipeworx.io/india-law/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 11, 2026