Skip to main content
Glama

Trillboards DOOH Advertising

export_dataset

Export observation data as a structured dataset. Supports filtering by time, geography, venue type, and observation family.

Queries the relevant table based on the selected dataset type, applies filters, and returns every matching row as structured data, a page at a time: up to 10,000 observation rows or 1,000 cross-signal insights per call, newest first. When more rows match, metadata.truncated is true and metadata.next_cursor reads the next page: call again with the same dataset and filters and cursor set to it, until truncated is false.

WHEN TO USE:

  • Exporting audience data for external analysis

  • Building datasets for machine learning or reporting

  • Getting structured vehicle or commerce data for a specific time/place

  • Creating cross-signal datasets for correlation analysis

RETURNS:

  • data: Array of dataset rows (schema varies by dataset type)

  • metadata: { row_count, export_id, dataset, filters_applied, time_range, truncated, next_cursor }

  • suggested_next_queries: Related exports or analyses

Dataset types:

  • observations: Raw observation stream data (all families)

  • audience: Audience-specific data (face_count, demographics, attention, emotion)

  • vehicle: Vehicle counting and classification data

  • cross_signal: Pre-computed cross-signal correlation insights

EXAMPLE: User: "Export audience data from retail venues last week" export_dataset({ dataset: "audience", filters: { time_range: { start: "2026-03-09", end: "2026-03-16" }, venue_type: ["retail"] }, format: "json" })

User: "Get vehicle data near geohash 9q8yy" export_dataset({ dataset: "vehicle", filters: { time_range: { start: "2026-03-15", end: "2026-03-16" }, geo: "9q8yy" } })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cursorNoThe previous page's metadata.next_cursor, to read the next page (same dataset and filters).
datasetYesType of dataset to export
filtersYesFilters to apply to the export

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses page-size caps (10,000 observation rows / 1,000 cross-signal insights), newest-first ordering, and the truncated/next_cursor continuation protocol including how to resume. It omits auth requirements and rate limits, which keeps it from 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?

Well front-loaded and sectioned with headers (WHEN TO USE, RETURNS, dataset types, EXAMPLE), so an agent can scan it quickly. It is long and the two worked examples border on redundant with the schema, but every section carries substantive information.

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?

For a complex, nested-filter export tool with no annotations and no output schema, the description covers the return shape (data, metadata fields, suggested_next_queries), the pagination contract, and per-dataset behavior. Nothing essential to correct invocation is missing.

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 real meaning: it explains the dataset-type enum values, clarifies that filters combine time/geo/venue_type/observation_family, and describes cursor as reading the next page with the same dataset and filters. This goes beyond restating the schema.

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 specific verb (export) and resource (observation data as a structured dataset) and enumerates the four dataset types it can produce, letting an agent separate it from read/query siblings like query_observations or get_dataset_stats. It also pins down scope with pagination limits and ordering, so the tool's role is unambiguous.

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 explicit 'WHEN TO USE' block gives four concrete scenarios (external analysis, ML/reporting datasets, structured vehicle/commerce data, cross-signal correlation). It stops short of naming alternatives or exclusions (e.g. when to query_observations instead), but the positive usage context is clear and actionable.

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