Skip to main content
Glama

Look up a code or standard

get_code_reference
Read-onlyIdempotent

Retrieves specific code sections, standards, and regulatory references for a construction trade topic. Use this tool when you need to cite the exact standard document, clause number, table reference, or regulatory instrument — without asking a yes/no compliance question. Returns the standard name, edition year, specific clause or table, and a plain-English summary of what that clause requires. Useful for pre-populating compliance documents, RAMS, or certificates. Examples: 'AS/NZS 3008 cable sizing tables', 'CDM 2015 notification thresholds', 'NEC Article 210 branch circuits'.

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": {
      "trade": "<trade>",
      "region": "<region>",
      "topic": "<topic>"
    },
    "name": "get_code_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicYesThe specific topic or subject to look up. Example: 'cable sizing for final sub-circuits', 'maximum water heater temperature', 'roof pitch minimums'.
tradeYesThe construction trade for which you need a code reference.
regionYesUse the state, province or country where the user works; if they have not said, ask them - never assume NSW or Australia. Jurisdiction. Determines which edition of the standard applies. Examples: 'NSW', 'England', 'California'.
api_keyNoLegis-Link API key. Optional: leave empty for the free tier (a daily question limit applies); Pro users paste their ll_p_ key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Legis-Link API key. Optional: leave empty for the free tier (50 requests/day); Pro users paste their ll_p_ key."New value: +"Legis-Link API key. Optional: leave empty for the free tier (a daily question limit applies); Pro users paste their ll_p_ key."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered; the description adds the return payload (standard name, edition year, clause/table, plain-English summary of the requirement), which is real value beyond the annotations. It does not mention the free-tier rate limit or auth implications, though the api_key parameter description carries that.

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 with the core action, then exclusions, then return shape, then examples — a logical order with no filler sentences. Slightly longer than strictly necessary, but the examples and downstream-use clause each contribute routing signal.

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?

With no output schema, the description responsibly spells out the return fields, and it covers the required trade/region/topic trio implicitly through its examples. Minor gap: it doesn't route the agent to list_supported_regions when a region is unknown, though the schema's 'ask the user' instruction partly compensates.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and all four parameters are documented, so the schema does the heavy lifting; the description adds only topical examples and the note that region determines which edition applies. Baseline 3 is appropriate when the schema is this complete.

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

Purpose5/5

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

States a specific verb ('Retrieves') and precise resource ('code sections, standards, and regulatory references') scoped to a construction trade topic. It explicitly separates itself from the neighbouring check_compliance tool by ruling out yes/no compliance questions.

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

Usage Guidelines5/5

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

Gives a clear trigger ('when you need to cite the exact standard document, clause number, table reference'), an explicit exclusion (not for yes/no compliance questions), and downstream use cases (pre-populating compliance documents, RAMS, certificates). Three worked examples remove ambiguity about the intended input shape.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.