Skip to main content
Glama

NHS organisations in England (ODS register)

query_nhs_ods
Read-onlyIdempotent

Every GP practice, NHS trust and trust site, pharmacy, dental practice and independent-sector healthcare provider on the NHS Organisation Data Service register for England — ODS code, name, organisation type, active/closed status, NHS England region and integrated care board codes, address and postcode, open and close dates, parent organisation (commissioner or trust) and, for GP practices, the prescribing setting. From the official nightly ODS extracts, keyed by the stable ODS code. Telephone numbers are dropped at ingest; the practitioner files (named GPs and dentists) are never ingested. Filters combine with AND; q searches all text fields. Costs 1 credit(s) per call with an API key; without one, a preview of up to 5 rows (30 calls/day).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_nhs_ods"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
nameNo
pageNo
townNo
statusNo
ods_codeNo
org_typeNo
per_pageNo
postcodeNo
parent_codeNo
outward_codeNo
open_date_afterNo
close_date_afterNo
health_geographyNo
open_date_beforeNo
close_date_beforeNo
national_groupingNo
prescribing_settingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, closed-world safety profile, so the description is judged on what it adds on top. It adds real value: nightly extract provenance, an explicit statement that telephone numbers and practitioner files are dropped/never ingested, the credit cost, and the unauthenticated preview cap of 5 rows and 30 calls/day. It leaves pagination/ordering behaviour to inference, which keeps it off a 5.

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?

The opening field enumeration is long but every listed field maps to something callable, and the operational notes are tight one-clause sentences. Slightly weak front-loading: the description opens with data content rather than the action, and the single mega-sentence listing fields could be punctuated into scan-friendly structure.

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?

There is no output schema and 18 largely undescribed parameters, so the description must do heavy lifting — and it does: data provenance, keying, deliberate exclusions, filter composition, cost and free-tier caps are all stated. What remains (paging order, exact-result formatting) is minor for a read-only directory lookup.

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

Parameters2/5

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

Schema description coverage is 0% across 18 parameters, so the description carries the full burden. It partially compensates by enumerating the underlying record fields (ODS code, name, type, status, region/ICB, address, postcode, open/close dates, parent organisation, prescribing setting) and by explaining that q is cross-field and filters AND together, but several parameters remain undefined — health_geography, national_grouping, outward_code, and whether the date after/before bounds are inclusive.

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 names a specific resource (the NHS Organisation Data Service register for England) and enumerates exactly which entity types appear in it and which fields are returned, so an agent knows precisely what population this covers. It does not explicitly contrast itself with the similarly-shaped UK siblings (query_uk_care_locations, query_uk_schools), but the entity and register are specific enough that confusion is unlikely.

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?

It gives useful operational guidance — filters combine with AND, q searches all text fields, and the ODS code is the stable key — which tells an agent how to compose a query. It stops short of when-to-use guidance: no advice on exact lookup via ods_code versus fuzzy name/q search, no note on which sibling to prefer for a different geography or sector, and no statement of 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources