Skip to main content
Glama

China Snapshot

Export records

export_records
Read-only

Export one bounded page of find_records results as CSV or JSON (same columns, formula-safe CSV cells, same next_cursor). Not the whole archive: at most 100 rows per call; follow next_cursor. Returns {format, row_count, next_cursor, content}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "format": "<format>"
    },
    "name": "export_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 export in this page, at most the export 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.
formatYescsv for spreadsheets, json for programmatic use.
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. Changed2 schema fields changed
    • addedInput schema / properties / format / description
      Added value: +"csv for spreadsheets, json for programmatic use."
    • addedInput schema / properties / limit / description
      Added value: +"Rows to export in this page, at most the export maximum; use next_cursor for more."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds real value on top: the 100-row page cap, cursor continuation semantics, column parity with find_records, formula-safe CSV cells, and the exact return shape. Only cursor TTL is left to 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?

Three short sentences with the capability, the key constraint (not the whole archive, 100 rows), and the return shape in that order. Nothing is wasted and the most decision-relevant fact is front-loaded.

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?

A 15-parameter tool with no output schema still gets a fully specified response shape ({format, row_count, next_cursor, content}) plus pagination and safety caveats. An agent has everything needed to call it and interpret the result.

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 15 parameters are already documented, including limit, cursor, and format. The description reinforces the limit/cursor relationship and the 100-row ceiling but adds no new per-parameter meaning, which is the expected baseline when the schema does the heavy lifting.

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?

States a concrete verb (export), a concrete resource (one bounded page of find_records results), and the two output formats. It also distinguishes itself from find_records and from the implicit 'whole archive' export by naming the page/cursor model.

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?

Clearly frames the tool as a paginated export of find_records results and instructs the agent to follow next_cursor rather than expect a full dump. It does not explicitly say when to prefer this over find_records for read-only inspection, so it stops short of full alternative routing.

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