Get Open Context Search Facets
opencontext.archaeology.facetsRetrieve aggregated facet statistics for an Open Context search query to assess total matches, date range, geographic distribution, item types, and top projects without downloading records.
Instructions
Retrieve aggregated facet statistics for a search query across Open Context without downloading individual records. Returns: total matched record count, query time, earliest and latest date range in BCE/CE across all matches, geographic distribution (continent-level facets with counts, e.g. Asia 99K, Europe 89K), item type breakdown (Subjects of Observation, Media, Documents, Projects), top matching excavation projects with counts, and linked-data description facets (Creator, License, Subject, etc.). Use this tool to quickly understand the scope and geographic/temporal distribution of archaeological records matching a query before retrieving individual items with opencontext.archaeology.search. Pass an empty string to get global database statistics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query to compute facets for (e.g. "Roman pottery", "Bronze Age"). Use an empty string "" to get facets across the entire Open Context database. | |
| item_type | No | Optional filter to restrict facet computation to a specific item type. "subjects" for excavated objects; "media" for images/3D; "documents" for field notes; "all" or omit to aggregate across all types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |