Skip to main content
Glama

China Snapshot

Get document events

get_events
Read-only

Typed dates and links extracted from official notices: publication, effective, expiry and consultation_end events, and amends, repeals, implements and cites relations. Every item carries span (the verbatim sentence it came from where the text is approved for publication, otherwise text is null and withheld is true), method, confidence and needs_review. Items needing review are hidden unless include_review is true. A date the notice does not state is absent. Same read as GET /api/notice_dates. Schema: /data/events.schema.json. Complements get_changes: get_events returns dates and links extracted from the text of official notices (effective, expiry and consultation_end dates, amends and repeals relations), while get_changes tells you which documents were added or revised since a time. Read-only pilot data; each item carries the verbatim sentence it came from. Filter by event_type, relation_type, source, from and to; limit is 1 to 100 (default 50).

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": "get_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLatest event date, YYYY-MM-DD.
fromNoEarliest event date, YYYY-MM-DD.
limitNoMaximum events to return.
doc_idNoA record id such as documents:25376 (events and relations of that notice).
sourceNoExact publisher label.
event_typeNoRestrict to one event type from the pilot event schema.
relation_typeNoRestrict to one relation type from the pilot event schema.
include_reviewNoAlso return items a person should check. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / event_type / description
      Added value: +"Restrict to one event type from the pilot event schema."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum events to return."
    • addedInput schema / properties / relation_type / description
      Added value: +"Restrict to one relation type from the pilot event schema."
  2. Changed4 schema fields changed
    • addedInput schema / properties / include_review
      Added value: +{
      +  "description": "Also return items a person should check. Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / needs_review
      Removed value: -{
      -  "description": "Only items a person should check.",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "Exact publisher label.",
      +  "maxLength": 180,
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld annotations: it discloses the per-item shape (span, method, confidence, needs_review), a withholding rule (text null and withheld=true when the text is not approved for publication), the default suppression of review-flagged items, and that unstated dates are simply absent. These are behaviors an agent cannot infer from annotations or schema, and they materially affect result interpretation.

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?

Purpose and item-shape are front-loaded and readable, but the span explanation is stated twice ('Every item carries span (the verbatim sentence it came from...)' and later 'each item carries the verbatim sentence it came from'), and the get_changes contrast restates part of the opening. Tightening would remove roughly a sentence of pure redundancy.

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?

Covers return-item shape, default filtering, withholding, and the limit range, which is enough for a read-only tool with no output schema. The remaining gap is what happens when results exceed limit (truncation vs total count), which an agent would want to know before paging.

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 all eight parameters are already documented. The description adds the meaningful default of limit 50 (not present in the schema) and names the filter set, but adds no extra semantics for from/to, source, or doc_id beyond what the schema states. Baseline 3 is appropriate.

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?

Opens with a specific verb+resource ('Typed dates and links extracted from official notices') and enumerates the exact event and relation types returned. It names the sibling get_changes and states precisely how the two differ, so an agent can select between them without opening a 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?

Gives a clear usage contrast: get_events for dates/links extracted from notice text, get_changes for documents added or revised since a time. It also states the review-hiding rule that selects include_review. It stops short of covering the other plausible alternatives (get_record, get_entity_timeline) or any explicit 'do not use for' case.

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