india_get_section

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_get_section for the schema, then POST the same URL with its arguments for the data.

Fetch the text of one section of an Indian act from India Code. Pass the act title (or act_id) and the section number, e.g. act “Indian Contract Act, 1872”, section “73”. For the repealed Indian Penal Code (e.g. “Section 302 IPC”) it returns the current Bharatiya Nyaya Sanhita successor section (IPC 302 -> BNS 103) with the text, clearly marked as the successor, for a curated list of well-known offences.

Parameters

NameTypeRequiredDescription
actstringyesAct title (“Indian Contract Act, 1872”), “Indian Penal Code”/“IPC”, or an act_id from india_search_acts
sectionstringyesSection number, e.g. “302”, “73”, “498A”
jurisdictionstringnoCENTRAL (default) or a state name

Example call

Arguments

{
  "act": "Indian Penal Code",
  "section": "302"
}

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_get_section","arguments":{"act":"Indian Penal Code","section":"302"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('india_get_section', {
  "act": "Indian Penal Code",
  "section": "302"
});

Response shape

FieldTypeDescription
foundboolean
requestedobject
statusstring
sourcestring
text_is_successorboolean
bns_successorobject
notestring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "requested": {
      "type": "object",
      "properties": {
        "act": {
          "type": "string"
        },
        "section": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "status": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "text_is_successor": {
      "type": "boolean"
    },
    "bns_successor": {
      "type": "object",
      "properties": {
        "act": {
          "type": "string"
        },
        "act_id": {
          "type": "string"
        },
        "section": {
          "type": "string"
        },
        "heading": {
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "note": {
      "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