Skip to main content
Glama
Australian Accounting MCP

Australian Accounting MCP

Read a cited legislation section

read_tax_legislation_section
Read-onlyIdempotent

Read a cited Australian tax legislation provision in full by row_id, continue long sections with next_start, and optionally include neighbouring provisions or a dated view.

Instructions

Read one cited provision in full from the configured corpus.

Pass row_id exactly as search_tax_legislation returned it; other strings are refused. Returns the same citation fields as search plus up to 12000 characters of the stored text from start; total_chars reports the whole length. When more text follows, next_start is where the next part begins: pass it back as start to keep reading, and null means the provision is complete. Set neighbours from 1 to 5 when a subsection refers to the provisions around it; each neighbour is cited and truncated like a search match. With as_at, the section and each neighbour carry as_at with the title's status and window, from the compilation a dated search reads: pass the same as_at to read a row that search returned. Text comes back only for captured. For any other status the citation stays, text is empty, no neighbours follow, and refusals names the status and next_step: that is a refusal, not an empty provision. captured is not a finding that the text was the law on that date; retain covers and read the Register's version history and endnotes for a past date. Preserve the citation and the attribution. Local reads only, not a confirmation of current law.

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": {
      "row_id": "<row_id>"
    },
    "name": "read_tax_legislation_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_atNoOptional YYYY-MM-DD date the user names. Each row returned carries its title's status and window for it; text comes back only when the status is captured. Do not infer today.
startNoCharacter to read from. Pass the previous read's next_start to continue a long provision.
row_idYesrow_id returned by search_tax_legislation, such as 'C2004A05138:0421:40-25'.
neighboursNoProvisions to return on each side of the cited one, in the title's document order, at search length. 0 returns the provision alone.

Output Schema

NameRequiredDescriptionDefault
afterYesUp to neighbours provisions after the cited one in document order, nearest first, at search length.
startYesCharacter of the stored provision this part starts at.
beforeYesUp to neighbours provisions before the cited one in document order, nearest last, at search length.
corpusYesCorpus-level source, retrieval date and licence terms from the operator's configured corpus; empty when the corpus ships no manifest.
noticeYes
sectionYes
refusalsNoOnly with as_at. Each title withheld for that date, with its status and next step. A refusal is an answer, not an empty search.
next_startYesWhere the next part begins; pass it as start to continue. null when this part reaches the end of the provision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.1.23
    • addedInput schema / properties / as_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 10,
      +      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional YYYY-MM-DD date the user names. Each row returned carries its title's status and window for it; text comes back only when the status is captured. Do not infer today.",
      +  "format": "date",
      +  "title": "As At"
      +}
    • addedOutput schema / $defs / AsAtRefusal
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "One title a date withheld, so that no row is left out silently.",
      +  "properties": {
      +    "act": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Act"
      +    },
      +    "as_at": {
      +      "$ref": "#/$defs/AsAtStanding"
      +    },
      +    "held_compilations": {
      +      "description": "Only for a title the corpus holds in more than one compilation: each window it holds, earliest first. None covers the date.",
      +      "items": {
      +        "$ref": "#/$defs/CompilationWindow"
      +      },
      +      "title": "Held Compilations",
      +      "type": "array"
      +    },
      +    "matching_rows": {
      +      "description": "Rows withheld that hold every word, or for a read, the rows that read asked for.",
      +      "minimum": 0,
      +      "title": "Matching Rows",
      +      "type": "integer"
      +    },
      +    "partial_rows": {
      +      "description": "Rows withheld that the search would have offered as partial hits.",
      +      "minimum": 0,
      +      "title": "Partial Rows",
      +      "type": "integer"
      +    },
      +    "refused": {
      +      "const": true,
      +      "title": "Refused",
      +      "type": "boolean"
      +    },
      +    "register_id": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Register Id"
      +    }
      +  },
      +  "required": [
      +    "refused",
      +    "register_id",
      +    "act",
      +    "matching_rows",
      +    "partial_rows",
      +    "as_at"
      +  ],
      +  "title": "AsAtRefusal",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / AsAtStanding
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "A title's compilation window against one date, in the corpus builder's field names.",
      +  "properties": {
      +    "compilation_date": {
      +      "description": "Date in YYYY-MM-DD form.",
      +      "format": "date",
      +      "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
      +      "title": "Compilation Date",
      +      "type": "string"
      +    },
      +    "covers": {
      +      "description": "What the status covers. Retain it.",
      +      "title": "Covers",
      +      "type": "string"
      +    },
      +    "date": {
      +      "description": "Date in YYYY-MM-DD form.",
      +      "format": "date",
      +      "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
      +      "title": "Date",
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "What to do about a refused title; null for captured.",
      +      "title": "Next Step"
      +    },
      +    "retrieved": {
      +      "description": "Date in YYYY-MM-DD form.",
      +      "format": "date",
      +      "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
      +      "title": "Retrieved",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "How the compilation the corpus holds relates to date. captured is not a finding that the text was the law then.",
      +      "enum": [
      +        "captured",
      +        "before_compilation",
      +        "superseded",
      +        "after_retrieval"
      +      ],
      +      "title": "Status",
      +      "type": "string"
      +    },
      +    "superseded_from": {
      +      "anyOf": [
      +        {
      +          "description": "Date in YYYY-MM-DD form.",
      +          "format": "date",
      +          "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "When a later version started, or null if the version was current when the corpus was built.",
      +      "title": "Superseded From"
      +    }
      +  },
      +  "required": [
      +    "date",
      +    "status",
      +    "compilation_date",
      +    "superseded_from",
      +    "retrieved",
      +    "covers",
      +    "next_step"
      +  ],
      +  "title": "AsAtStanding",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / CompilationWindow
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "One compilation of a title the corpus holds, in the corpus builder's field names.",
      +  "properties": {
      +    "compilation_date": {
      +      "description": "Date in YYYY-MM-DD form.",
      +      "format": "date",
      +      "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
      +      "title": "Compilation Date",
      +      "type": "string"
      +    },
      +    "retrieved": {
      +      "description": "Date in YYYY-MM-DD form.",
      +      "format": "date",
      +      "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
      +      "title": "Retrieved",
      +      "type": "string"
      +    },
      +    "superseded_from": {
      +      "anyOf": [
      +        {
      +          "description": "Date in YYYY-MM-DD form.",
      +          "format": "date",
      +          "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "When the next version started, or null if the version was current when the corpus was built.",
      +      "title": "Superseded From"
      +    }
      +  },
      +  "required": [
      +    "compilation_date",
      +    "superseded_from",
      +    "retrieved"
      +  ],
      +  "title": "CompilationWindow",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / LegislationSection / properties / as_at
      Added value: +{
      +  "$ref": "#/$defs/AsAtStanding",
      +  "description": "Only with as_at. This row's status and window."
      +}
    • addedOutput schema / $defs / LegislationSection / properties / retrieved
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Date this stored text was captured, not a live check.",
      +  "title": "Retrieved"
      +}
    • addedOutput schema / $defs / LegislationSection / properties / superseded_from
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Recorded successor-version start, when supplied by the corpus; not the application date of every provision.",
      +  "title": "Superseded From"
      +}
    • addedOutput schema / properties / refusals
      Added value: +{
      +  "description": "Only with as_at. Each title withheld for that date, with its status and next step. A refusal is an answer, not an empty search.",
      +  "items": {
      +    "$ref": "#/$defs/AsAtRefusal"
      +  },
      +  "title": "Refusals",
      +  "type": "array"
      +}
  2. Changed4 schema fields changedv0.1.16
    • addedInput schema / properties / start
      Added value: +{
      +  "default": 0,
      +  "description": "Character to read from. Pass the previous read's next_start to continue a long provision.",
      +  "maximum": 320000000,
      +  "minimum": 0,
      +  "title": "Start",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / next_start
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Where the next part begins; pass it as start to continue. null when this part reaches the end of the provision.",
      +  "title": "Next Start"
      +}
    • addedOutput schema / properties / start
      Added value: +{
      +  "description": "Character of the stored provision this part starts at.",
      +  "minimum": 0,
      +  "title": "Start",
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "section",
      -  "before",
      -  "after",
      -  "corpus",
      -  "notice"
      -]New value: +[
      +  "section",
      +  "start",
      +  "next_start",
      +  "before",
      +  "after",
      +  "corpus",
      +  "notice"
      +]
  3. Addedv0.1.13

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses pagination ('up to 12000 characters from start', total_chars, next_start continuation, null means complete), the status gate ('text comes back only for captured'), refusal semantics ('refusals names the status and next_step: that is a refusal, not an empty provision'), and neighbour truncation. These are exactly the behaviors an agent cannot infer from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Core behavior is front-loaded and there is little true filler, but several sentences are convoluted run-ons (the as_at sentence in particular) and the captured/status/refusal point is restated across two passages ('that is a refusal, not an empty provision' and 'captured is not a finding that the text was the law on that date'). Dense is acceptable here; repetitive and hard-to-parse is the deduction.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter read tool with an output schema, annotations, and full schema coverage, nothing an agent needs is absent: sourcing constraint, truncation, continuation, status gating, refusal handling, and the caveat that local text is not confirmation of current law are all present.

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 coverage is 100%, so the baseline is 3, but the description earns more by explaining intent behind parameters: row_id strings other than the search-returned one 'are refused,' neighbours are cited and truncated 'like a search match,' and as_at must match the dated search's date. Only start's exact boundary behavior is left partly to the schema.

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?

The description opens with a specific verb and resource plus scope: 'Read one cited provision in full from the configured corpus,' and immediately ties it to a distinct input ('row_id exactly as search_tax_legislation returned it'), which separates it from the search sibling without the agent needing the schema.

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

Usage Guidelines4/5

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

It gives concrete when-to conditions: use the row_id from search rather than an arbitrary string, set neighbours 'when a subsection refers to the provisions around it,' and pass the same as_at that a dated search used. What's missing is an explicit statement of when not to use this tool (e.g., when no row_id exists yet, go search first), so it is clear but not exhaustive routing.

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