GnistAI GnistAI
Log in

Legislation

Search legislation across the US, EU, Finland, Norway, and Sweden from a single endpoint. Bills, regulations, directives, and parliamentary cases — one query covers five jurisdictions.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 type: dataset aggregator type type dataset aggregator dataset aggregator Government

Data source: Congress.gov, EUR-Lex, Finlex, Stortinget, Riksdagen

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/legislation/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (4)

search_legislation

Search legislation across US Congress, EU EUR-Lex, Finnish Finlex, Norwegian Stortinget, and Swedish Riksdagen.

Queries all legislative databases in parallel and returns unified results
sorted by date (most recent first). Each result includes the jurisdiction,
identifier, title, status, and a link to the original source.

Examples:
search_legislation(query="climate change")
search_legislation(query="artificial intelligence", jurisdiction="EU")
search_legislation(query="tax reform", year=2025, jurisdiction="US")

ParameterTypeRequiredDescription
querystringrequiredSearch query — keywords, bill name, or topic.
max_resultsintegeroptionalMaximum number of results per source. (default: 10)
yearanyoptionalFilter by year.
jurisdictionanyoptionalFilter by jurisdiction: US, EU, FI, NO, or SE. Omit to search all.
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "search_legislation",
    "arguments": {
      "query": "example"
    }
  }
}
get_recent_legislation

Get recent legislative activity across all jurisdictions.

Returns the most recent bills, regulations, and parliamentary cases
from US Congress, EU EUR-Lex, Finnish Finlex, Norwegian Stortinget, and Swedish Riksdagen.

Examples:
get_recent_legislation()
get_recent_legislation(jurisdiction="NO", max_results=5)

ParameterTypeRequiredDescription
max_resultsintegeroptionalMaximum results per source. (default: 10)
jurisdictionanyoptionalFilter by jurisdiction: US, EU, FI, NO, or SE. Omit for all.
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_recent_legislation",
    "arguments": {}
  }
}
list_legislation_sources

List all registered legislative data sources and their status.

Examples:
list_legislation_sources()

JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "list_legislation_sources",
    "arguments": {}
  }
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/mcp/legislation/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_legislation", "arguments": {"query": "example"}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/legislation/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "search_legislation",
    "arguments": {
      "query": "example"
    }
  }
},
)
print(resp.json())

Related Toolkits (Government)

Resources