Skip to main content
Glama

latest

Get the most recent observation per measure for a dataset. Works with time-series and single-year tables, returning the latest period's data.

Instructions

Return the most recent observation(s) per measure for a dataset.

For transposed time-series tables (GST_MONTHLY etc.) this trims to the most-recent period. For wide single-year tables (IND_POSTCODE etc.) it returns the same shape as get_data — there is only one period in those tables to begin with.

Examples: # Latest monthly net GST nationally resp = await latest("GST_MONTHLY", measures="net_gst")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataset_idYesCurated dataset ID.
filtersNoSame filter shape as get_data. Useful for narrowing to one entity.
measuresNoSame as get_data.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataset_idYes
dataset_nameYes
queryNo
periodNo
unitNo
row_countNo
recordsNo
csvNo
sourceNoAustralian Taxation Office
attributionNoData sourced from the Australian Taxation Office (and, for charity data, the Australian Charities and Not-for-profits Commission) via data.gov.au. Licensed under Creative Commons Attribution 3.0 Australia (CC BY 3.0 AU). https://creativecommons.org/licenses/by/3.0/au/
retrieved_atYes
ato_urlYes
server_versionNo
Behavior4/5

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

With no annotations provided, the description effectively carries the full burden. It honestly discloses that the tool trims to the most-recent period for transposed tables and returns the same shape as get_data for wide tables, providing key behavioral context beyond the schema.

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

Conciseness5/5

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

The description is extremely concise: two sentences plus an example, front-loaded with the main action, and every sentence adds value. No redundant information.

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?

Given the existence of an output schema, the description is fairly complete. It explains the behavior for different table types and provides an example. However, it could be more explicit about when to prefer get_data or other siblings.

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 coverage is 100%, so the baseline is 3. The description adds marginal value by providing an example usage and noting that filters are the same as get_data, but most parameter information is already in the schema.

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?

The description clearly states the tool returns the most recent observation(s) per measure for a dataset, and it distinguishes itself by explaining how it behaves differently for transposed time-series tables vs. wide single-year tables, implicitly differentiating from get_data.

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?

The description implies usage through behavioral explanations (e.g., for 'latest' period) and provides an example, but it does not explicitly state when to use this tool versus siblings like get_data, nor does it mention when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bigred97/ato-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server