resolve_legislation
Convert natural language queries or citations into canonical Australian workplace legislation IDs, with fuzzy matching, ranked results, and optional jurisdiction filters.
Instructions
Resolve natural language query or citation to canonical legislation ID.
Handles fuzzy matching and returns ranked results.
Args: query: Natural language query or citation (e.g., "unfair dismissal", "OHS Act s.21", "Fair Work Act section 394") jurisdiction: Optional jurisdiction filter (e.g., "au-victoria", "au-federal")
Returns: JSON string with ranked legislation matches
Example: >>> resolve_legislation("unfair dismissal") '{"matches": [{"id": "/au-federal/fwa/2009", "title": "Fair Work Act 2009", ...}]}'
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": "resolve_legislation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| jurisdiction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |