Skip to main content
Glama

China Snapshot

Find records

find_records
Read-only

Find records in the retained archive (documents, social hot-list observations, indicators) by literal text, publisher, reviewed topic (watch/topic) and UTC collection-day range; no ranking, no model. Same query, order and cursor as GET /api/datasets. Documents are one record per source URL with first_seen/last_seen, observation_count, version_count and change_type (new, newly_discovered, revised); seeing a URL again is never a new document. dataset=social with mode=topics returns one row per (platform, topic). Returns {items, row_count, next_cursor, as_of, coverage}. next_cursor is null at the end; pass it back unchanged with the same filters to continue. At most 20 rows per call. Absence from a page is not absence from the archive.

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

Input Schema

NameRequiredDescriptionDefault
qNoEvery word must match the title, original title or publisher (Latin words at a word start, CJK as substrings; stopwords dropped; a "quoted phrase" is one term).
toNoInclusive UTC collection day, YYYY-MM-DD.
fromNoInclusive UTC collection day, YYYY-MM-DD (first_seen for documents, captured_at otherwise).
modeNoraw (default) = one row per record or collection run; release = indicators only, one row per series and period; topics = social only, one row per (platform, topic) within the window (default 30 days, max 92).
textNoDocuments only: records with approved original text.
limitNoRows to return, at most the tool maximum; use next_cursor for more.
topicNoAlias of watch.
watchNoReviewed topic filter (see list_watchlists): a title match on a listed bilingual term, nothing inferred.
cursorNonext_cursor from the previous page, with the same filters. Valid 24 hours.
fieldsNoComma-separated field keys; default all.
seriesNoIndicators only: exact series_id such as cpi-yoy.
sourceNoExact publisher label.
datasetNoDefault documents.
change_typeNoDocuments only: new, newly_discovered (published more than 2 days before we first saw it) or revised (a changed body was observed).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / limit / description
      Added value: +"Rows to return, at most the tool maximum; use next_cursor for more."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/destructive=false/openWorld=false, and the description goes well beyond them: it explains document deduplication semantics (one record per source URL, re-seeing a URL is never a new document), gives the exact return envelope {items, row_count, next_cursor, as_of, coverage}, and warns that absence from a page is not absence from the archive.

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?

Dense but front-loaded: purpose, then record semantics, then mode combination, then pagination caveat. A few facts (20-row cap, cursor round-trip, change_type values) repeat what the schema already states, which costs some efficiency but not correctness.

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?

With 14 optional parameters and no output schema, the description compensates by naming the response fields, pagination contract, per-dataset row granularity, and the retention caveat. An agent has enough to construct a correct first call and to page through results.

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 adds cross-parameter meaning not visible per-field: "dataset=social with mode=topics returns one row per (platform, topic)" and that from/to map to first_seen for documents and captured_at otherwise. These relationships help the agent combine filters correctly.

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 and resource ("Find records in the retained archive") and enumerates the filter axes (literal text, publisher, reviewed topic, UTC day range). The clause "no ranking, no model" plus "Same query, order and cursor as GET /api/datasets" distinguishes it from ranked/story-style siblings like search_stories.

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 concrete operational guidance: pass next_cursor back unchanged with the same filters, cursor valid 24 hours, max 20 rows, and the special dataset=social + mode=topics combination. It never explicitly names an alternative tool or a when-not condition, so the agent must infer that ranked/semantic lookups belong elsewhere.

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