Search Met Collection
met_search_collectionsSearch the Metropolitan Museum of Art collection by keyword and optional filters. Returns the total match count and one page of matching object IDs, which met_get_object resolves to full records. Relevance is keyword-based, not semantic; department and geographic filters narrow results more than a longer query. Paging reaches only the first 10,000 matches of any search, so narrow a larger one with filters. The medium parameter takes one object type as the Met spells it ("Paintings", "Sculpture"), not a material like "Oil on canvas". hasImages also includes copyrighted works; CC0 status is per object, from the isPublicDomain and hasCC0Image fields on met_get_object. isHighlight accepts true only. isOnView restricts results to works currently on display in a Met gallery.
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": {
"q": "<q>"
},
"name": "met_search_collections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Keyword query, matched across title, artist name, culture, medium, tags, and other text fields; matchField narrows the match to titles, tags, or artists and cultures. Broad terms return large ID sets. "*" matches every object, for a search narrowed by filters alone; paging still reaches only the first 10,000 matches. An accession number (e.g., "29.100.5") ranks its object first, with near-numbered objects after it — confirm the match from accessionNumber on met_get_object. | |
| limit | No | Maximum number of object IDs to return in this page. A page holds at most 500 IDs, the Met search maximum: a larger value reads a 500-ID page and the notice says so — continue from nextOffset. Paging reaches only the first 10,000 matches, so a page that would cross 10,000 is cut short there. | |
| medium | No | Filter by one object type, case-sensitive and spelled as the Met spells it (e.g., "Paintings", "Drawings", "Prints", "Ceramics", "Sculpture", "Photographs", "Textiles", "Watercolors") — "paintings" matches nothing. A material description like "Oil on canvas" matches nothing either, and neither does a "|"-joined list ("Prints|Paintings"). The filter is the evidence for a match: a matching object's classification on met_get_object can be empty or name another type, and one object can match several values, so counts split by medium can double-count. | |
| offset | No | Zero-based index of the first match to return (default 0); pass the nextOffset from a previous response to continue paging. Only the first 10,000 matches are reachable, so an offset at or beyond 10,000, or at or beyond total, returns an empty page rather than an error. Matches with tied relevance can change order between requests, so an ID can occasionally repeat or be skipped at a page boundary. | |
| dateEnd | No | Last year of the date window, inclusive. Negative integers for BCE. Requires dateBegin. The window keeps only objects whose whole date span (objectBeginDate to objectEndDate on met_get_object) lies inside it, so a span crossing either bound is excluded: a "ca." date can be stored as a 20-year span. A window spanning year 0 also matches undated records, whose dates read null on met_get_object. | |
| isOnView | No | When true, restricts results to objects currently on display in a Met gallery; false restricts them to objects not on view. The GalleryNumber field on the met_get_object record identifies the specific gallery. | |
| dateBegin | No | First year of the date window, inclusive. Negative integers for BCE (e.g., -500 for 500 BCE). Requires dateEnd. The window keeps only objects whose whole date span (objectBeginDate to objectEndDate on met_get_object) lies inside it, so a span crossing either bound is excluded: a "ca." date can be stored as a 20-year span, so widen the window around a displayed year. A window spanning year 0 also matches undated records, whose dates read null on met_get_object. | |
| hasImages | No | When true, restricts results to objects that have at least one associated image, including copyrighted works whose images cannot be reproduced; false restricts them to objects with none. For freely reusable CC0 images, confirm per object from the isPublicDomain and hasCC0Image fields on met_get_object. | |
| matchField | No | Restrict the keyword match to one field: "title" matches object titles only, "tags" matches subject tags only, "artistOrCulture" matches the artist an object is attributed to (artistDisplayName on met_get_object) or its culture. A qualified attribution such as "Style of" matches too, so read artistPrefix on met_get_object; another person on the record, such as a sitter, does not. Omit it to match across all text fields. Combines with every filter. Has no effect when q is "*". | |
| geoLocation | No | Filter by geographic origin: one place, whole and case-sensitive as the Met spells it, as a one-element array (e.g., ["Greece"], ["Japan"]). A different case ("greece"), a fragment ("Gree"), or a "|"-joined list matches nothing, and an adjective such as "Japanese" matches nothing either. A matching record may show the place in none of its fields. | |
| isHighlight | No | Opt-in filter, true only — omit it rather than passing false, which the search ignores. Selects objects the Met has designated as highlights — major works central to the collection. | |
| departmentId | No | Restrict results to one curatorial department. Valid IDs come from met_list_departments — the Met exposes a sparse set (roughly 1–21, with gaps); an unrecognized ID is rejected with an invalid_department error rather than silently widening the search. Can be combined with other filters. The Met searches 7 (The Cloisters) and 17 (Medieval Art) as one combined result set: for either, objectIDs keeps only the requested department's matches while total and paging count both, so a page can hold fewer than limit IDs while more remain. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| total | No | Total number of objects in the Met collection matching the search. Can exceed 10,000, the most that paging reaches. | |
| notice | No | Present when total is 0, when total exceeds 10,000, when a limit above 500 was read as a 500-ID page with matches still remaining, or when departmentId is 7 or 17; several apply as one string. For a limit above 500 it says the page was read with limit 500 and to continue from nextOffset. With total 0 it says whether the keyword matches nothing or the filters removed every match, naming the filters to correct or drop. Above 10,000 it states that only the first 10,000 matches are reachable by paging, and that filters or a more specific keyword bring the rest into reach. For departmentId 7 or 17 it states that total counts both departments and a page can hold fewer than limit IDs, or that the department filter could not be applied to this page. | |
| offset | No | The resolved offset this page was read from — the offset input after its default of 0. When it is nonzero and at or beyond the smaller of total and 10,000, the page is empty because the offset ran past what paging reaches, not because the search found nothing. | |
| returned | No | Count of object IDs in this page. | |
| objectIDs | No | Object IDs for this page, up to `limit` results and never more than 500. For departmentId 7 or 17, only the requested department's matches among the positions this page read, so it can hold fewer than `limit`, or none, while more remain. | |
| remaining | No | Count of reachable matches after this page: the smaller of total and 10,000, minus (offset + the positions this page read), floored at 0 — positions read as described under truncated. An empty page reports 0. 0 means no further page exists. | |
| truncated | No | True when reachable matches remain after this page (offset + the positions this page read < the smaller of total and 10,000); false when this page is the last one paging reaches. The positions read equal returned, except for departmentId 7 or 17, where they also count the matches the department filter left out. An empty page reports false: it ends paging even inside that window. | |
| nextOffset | No | The offset to pass on the next call to continue paging, or null when no further page is reachable (truncated is false): offset plus the positions this page read, which for departmentId 7 or 17 can exceed returned. | |
| effectiveQuery | No | The search as applied: q and each filter set, as name=value pairs with JSON-encoded values in parameter order, without limit or offset. |