Skip to main content
Glama

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

NameRequiredDescriptionDefault
queryYes
jurisdictionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses fuzzy matching and ranked output plus a sample return payload, but says nothing about no-match behavior, ranking criteria, result limits, or whether resolution is side-effect free.

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?

Front-loaded one-line purpose followed by Args/Returns/Example, which is easy to scan. The structure is somewhat verbose for two parameters, and the Returns section partly duplicates the output schema, but nothing is truly wasteful.

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?

For a two-parameter lookup with an output schema present, the definition covers purpose, inputs with examples, and return shape. The main remaining gap is operational guidance on ambiguous or zero-match queries.

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 description coverage is 0%, so the description must compensate, and it largely does: query is illustrated with three realistic forms (name, 'OHS Act s.21', 'Fair Work Act section 394') and jurisdiction with concrete codes ('au-victoria', 'au-federal'). It does not explain jurisdiction's default or what omitting it implies beyond the schema's null default.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and outcome: resolve a natural-language query or citation into a canonical legislation ID, with fuzzy matching and ranked results. It is clearly distinct from siblings like get_legislation_content, but it never explicitly contrasts itself with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the nature of the tool (it returns an ID, so presumably it precedes content retrieval), and the example shows a typical call. However, there is no explicit when-to-use/when-not-to-use statement or named alternative for direct lookups.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.