Skip to content

MCP tools

The Typemo MCP server offers eight tools: four that read and four that write. This page lists what each one takes and returns, and what a search result holds. To connect a client, see Connect an AI agent.

ToolAccessWhat it returns
list_collectionsReadcollections: each one’s id, name, documents, locale and projectId.
describe_collectionReadThe collection’s fields, roles, unmappedRoles and source, with its id, name, documents, locale and projectId.
searchReadresults, found, facets, and nextCursor when there is another page.
fetchReadid, title, url, text and metadata.
create_collectionWriteThe new collection’s id, name and locale.
upsert_documentsWriteaccepted, failed, errors and the collection’s new documentCount.
delete_documentsWritedeleted, notFound and the collection’s new documentCount.
sync_sourceWritestatus: queued, or busy when a sync is already running.

Read tools work with any key or sign-in. Write tools need a Write & Read key, or a sign-in that granted write access.

Returned fieldWhat it holds
fields[] (describe_collection)Each field’s name, type, role, label and description, and whether it is filterable and sortable. Fields Typemo keeps for itself are left out.
unmappedRolesWhich of title, url and content no field fills yet. Search results cite those three.
sourceThe collection’s source type, sync status, lastSyncAt and lastError.
text (fetch)The whole content field. Without one, every field as name: value lines.
metadata (fetch)Every other field of the document.

Each result keeps id, title, url and text, the first 300 characters of the content. It adds what a bot needs to answer without a second call. A field the collection doesn’t map, or a document leaves empty, is left out.

FieldWhat it holds
price, salePriceThe Price and Sale Price roles. salePrice appears only when it is below the price.
currencyThe project’s currency symbol, the one the widget shows. A project has one, so collections that sell in different currencies share it.
inStocktrue or false from the In Stock role: a flag, or a count above zero.
image, category, ratingThe Image, Category and Rating roles.
attributesThe value of each of your filters and custom roles, under the column’s name. A column a field above already returns isn’t repeated.
variants, variantCountOn a collection that groups variants: up to 10 variants per product, and how many pass your filters.
One result (abridged)
{
"id": "products:1001",
"title": "Court Sneakers",
"url": "https://example.com/court-sneakers",
"text": "Low-profile leather sneakers with a cushioned insole…",
"price": 79.99,
"salePrice": 64.99,
"inStock": true,
"category": "Footwear > Sneakers",
"rating": 4.6,
"currency": "€",
"attributes": { "Size": 42 },
"variantCount": 3,
"variants": [
{
"id": "products:1001",
"title": "Court Sneakers",
"url": "https://example.com/court-sneakers?size=42",
"price": 79.99,
"salePrice": 64.99,
"inStock": true,
"attributes": { "Size": 42 }
},
{
"id": "products:1002",
"title": "Court Sneakers",
"url": "https://example.com/court-sneakers?size=43",
"price": 79.99,
"inStock": false,
"attributes": { "Size": 43 }
},
{
"id": "products:1003",
"title": "Court Sneakers",
"url": "https://example.com/court-sneakers?size=44",
"price": 79.99,
"inStock": true,
"attributes": { "Size": 44 }
}
]
}

That one result answers “is it in size 43”: it is not.

Variant ruleWhat happens
The result’s own rowAlways one of the variants. When the list is cut at 10 and would leave it out, it comes first.
A variant’s idFetchable like a result id.
A variant’s fieldsIts own price, sale price, availability and attributes. With a Size filter set up, the size comes with every variant.
filtersNarrow the variants as well as the products.
The query’s wordsDon’t narrow the variants.

A column you described under Describe fields for AI is explained to every AI that reads your catalog.

WhereWhat the AI gets
describe_collectionEach field’s label and description.
search resultsThe value in attributes, keyed by the label, else the column’s header in your file, else the column name. Your filters come under their names too.
Two columns, one keyThe first keeps the key, and the others are keyed <key> (<column>), such as Size (size_us), so no value is lost.
search filtersTake the column name, the label, the header, or a key attributes shows: { "field": "Size", "op": "eq", "value": 43 }. A column name wins over a label, and a label over a header.
An ambiguous nameA label or header that names two columns is refused with both column names listed. Filter on a column name, or on the Size (size_us) form.
create_collectionTakes the same fieldMeta as the API, next to roles.

When a key reaches exactly one collection, the search tool’s description lists that collection’s filterable fields and what its custom roles mean. That holds for a key limited to one collection, and for a key whose project has just one. With a sign-in, which can reach several projects, the description stays general.

RuleValue
Result ids<collection>:<id>, where <id> is Typemo’s document id. fetch takes the whole result id.
delete_documents idsThe <id> part of a result id, or the id you pushed.
collectionOptional on read tools when the key reaches one collection. Otherwise the tool lists the collections to pick from.
limit1–50 results per page, default 10.
cursorThe nextCursor of the previous page.
list_collectionsLists the first 100 collections.
upsert_documentsUp to 1,000 documents a call, each with a string id. One invalid document rejects the whole batch with a per-document report.
delete_documentsUp to 1,000 ids a call.
create_collectionA name of up to 100 characters; at most 12 custom roles in fieldMeta. Roles are never guessed from field names.
sync_sourceFor a collection fed by a feed, a store, a plugin or a crawl. A collection you push to has nothing to sync.

Document limits and column roles are the same as on Push over the API.

Every collection this credential can reach, with its document count. Start here.

No parameters.

Fields with their types and roles, which fields can filter or sort a search, roles no field fills yet, and the sync status of its source. A field the merchant described carries a label and a description: its meaning, which makes it a custom role. Call before filtering.

ParameterTypeRequiredDescription
collectionstringnoCollection id. Omit when the key reaches only one collection.

Full-text search over a collection, ranked by relevance and popularity. Results carry a citable url and a short text, plus the price, availability and image where the collection maps them, and under attributes the value of each of its filters and each custom role the merchant described, by label. A collection that groups its variants returns products with up to 10 of their variants (each with its own price, availability and attributes, such as size and colour) and how many there are (variantCount), so one result answers “is it in size 43”; filters narrow the variants too. fetch returns the whole document. Sort only on fields describe_collection marks sortable; filter on fields it marks filterable, by name or label, or match a phrase in a text field with contains.

ParameterTypeRequiredDescription
querystringyesWhat to look for. * matches every document.
collectionstringnoCollection id. Omit when the key reaches only one collection.
filtersarraynoEvery filter must match.
filters[].fieldstringyesA field describe_collection marks filterable, by its name, its label or the key attributes shows it under; for contains, a text field.
filters[].opstringyeseq, neq, gt, gte, lt, lte, in, nin, or contains (a phrase in a text field).
filters[].valuestring or number or boolean or arrayyesWhat to compare with; in and nin take an array.
sortstringnofield:asc or field:desc. Default: relevance.
limitintegernoResults per page, default 10.
queryTypestringnoquestion when the query is a sentence or a question: documents are ordered by how well they cover its words, none needs every word. keywords for names and short terms: every word must match first. Default: keywords.
cursorstringnonextCursor from the previous page.

The whole document behind a search result id.

ParameterTypeRequiredDescription
idstringyesA result id from search: <collection>:<document id>.

A new, empty collection to push documents into. Needs write access.

ParameterTypeRequiredDescription
namestringyesCollection name, up to 100 characters.
localestringnoLanguage of the content, e.g. en, de. Default en.
projectstringnoProject id; needed only when your account has several.
rolesobjectnoThe field each role reads: title, url and content are what search results cite; also image, price, salePrice, inStock, category, rating, id. Nothing is guessed from field names.
fieldMetaobjectnoWhat you say about a field: a label (its name for shoppers and AI) and a description (what it means). A field with a description is a custom role, at most 12: search returns its value under the label and filters accept the label.

Create or replace up to 1000 documents, matched by id. The whole batch is validated first; one invalid document rejects it with a per-document report. Roles (title, url, content…) are set with create_collection, never guessed from field names; describe_collection shows roles still unmapped. Needs write access.

ParameterTypeRequiredDescription
collectionstringyesCollection id.
documentsarrayyesEach document needs a unique string id. At most 1000 per call; the batch is validated as a whole.

Delete up to 1000 documents by id. Needs write access.

ParameterTypeRequiredDescription
collectionstringyesCollection id.
idsarrayyesIds to delete: the id part of a search result id, or the id you pushed. At most 1000 per call.

Pull the collection’s URL feed or platform integration now, or re-crawl a crawled site. Progress shows in describe_collection. Push-fed collections have nothing to sync. Needs write access.

ParameterTypeRequiredDescription
collectionstringyesCollection id.

Next: Connect an AI agent, or Describe fields for AI so agents read your columns right.