Skip to main content
Glama

query_dataset

Query DfE Explore Education Statistics datasets using indicator and filter IDs to retrieve UK school data on absence, exclusions, performance, admissions, and workforce.

Instructions

Query a DfE Explore Education Statistics dataset with specific indicators and filters. Use get_dataset_metadata first to discover available indicator and filter IDs. This tool enables access to school-level data on absence, exclusions, performance, admissions, workforce, and more. Time periods use format 'YYYY|CODE' where CODE is: AY (academic year), CY (calendar year), FY (financial year), etc. Geographic levels include: NAT (national), REG (regional), LA (local authority), SCH (school). Locations use format 'LEVEL|id_type|id_value' e.g. 'LA|code|823'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default: 1)
filtersNoFilter option IDs (from get_dataset_metadata)
locationsNoLocations in 'LEVEL|id_type|id_value' format
page_sizeNoResults per page (default: 100, max: 1000)
dataset_idYesDataset ID from get_publication_datasets
indicatorsYesList of indicator IDs to retrieve (from get_dataset_metadata)
time_periodsNoTime periods in 'YYYY|CODE' format, e.g. ['2023|AY']
geographic_levelsNoGeographic levels: NAT, REG, LA, SCH, etc.
Behavior4/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It explains critical format requirements: time periods use 'YYYY|CODE' with code meanings, geographic levels include NAT/REG/LA/SCH, and locations use a specific 'LEVEL|id_type|id_value' format with an example. It also describes the data scope. This goes beyond the schema and gives the agent the context needed to call this read-only query tool correctly, though it doesn't mention pagination or response structure.

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 concise and well-structured: a purpose statement, a prerequisite instruction, a scope statement, and format clarifications. Each sentence earns its place with no redundant filler. For a tool with 8 parameters and multiple format requirements, this length is appropriate and front-loaded.

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?

The description plus fully-described schema provides sufficient context for correct invocation: it identifies prerequisite metadata, data domains, and all key parameter formats. It lacks explicit details about pagination behavior and response shape, but the schema includes page/page_size fields and there is no output schema to detail. Given the tool's complexity, this is reasonably complete, though a note on filter semantics would elevate it.

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 100%, providing a baseline of 3. The description adds semantic enrichment beyond the schema: it expands the meaning of time codes ('AY' = academic year, 'CY' = calendar year), and provides a concrete location example ('LA|code|823'). This depth helps the agent understand the format in a way the schema's terse field descriptions do not.

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 explicitly states 'Query a DfE Explore Education Statistics dataset with specific indicators and filters', using a specific verb (Query) and resource (DfE dataset). This clearly distinguishes it from sibling tools like compare_schools or search_schools, which serve different purposes. It also lists the data domains (absence, exclusions, performance, etc.), reinforcing its unique role.

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?

The description provides an explicit prerequisite: 'Use get_dataset_metadata first to discover available indicator and filter IDs.' This guides the agent on when to use this tool relative to its metadata companion. However, it does not explicitly mention when not to use this tool or name alternative query tools (e.g., search_education_statistics), so it lacks that exclusionary guidance.

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/mkb-123/uk-schools-mcp'

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