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.
Tools at a glance
Section titled “Tools at a glance”| Tool | Access | What it returns |
|---|---|---|
list_collections | Read | collections: each one’s id, name, documents, locale and projectId. |
describe_collection | Read | The collection’s fields, roles, unmappedRoles and source, with its id, name, documents, locale and projectId. |
search | Read | results, found, facets, and nextCursor when there is another page. |
fetch | Read | id, title, url, text and metadata. |
create_collection | Write | The new collection’s id, name and locale. |
upsert_documents | Write | accepted, failed, errors and the collection’s new documentCount. |
delete_documents | Write | deleted, notFound and the collection’s new documentCount. |
sync_source | Write | status: 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 field | What 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. |
unmappedRoles | Which of title, url and content no field fills yet. Search results cite those three. |
source | The 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. |
What a search returns
Section titled “What a search returns”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.
| Field | What it holds |
|---|---|
price, salePrice | The Price and Sale Price roles. salePrice appears only when it is below the price. |
currency | The project’s currency symbol, the one the widget shows. A project has one, so collections that sell in different currencies share it. |
inStock | true or false from the In Stock role: a flag, or a count above zero. |
image, category, rating | The Image, Category and Rating roles. |
attributes | The 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, variantCount | On a collection that groups variants: up to 10 variants per product, and how many pass your filters. |
{ "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 rule | What happens |
|---|---|
| The result’s own row | Always one of the variants. When the list is cut at 10 and would leave it out, it comes first. |
A variant’s id | Fetchable like a result id. |
| A variant’s fields | Its own price, sale price, availability and attributes. With a Size filter set up, the size comes with every variant. |
filters | Narrow the variants as well as the products. |
| The query’s words | Don’t narrow the variants. |
Custom roles in results and filters
Section titled “Custom roles in results and filters”A column you described under Describe fields for AI is explained to every AI that reads your catalog.
| Where | What the AI gets |
|---|---|
describe_collection | Each field’s label and description. |
search results | The 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 key | The first keeps the key, and the others are keyed <key> (<column>), such as Size (size_us), so no value is lost. |
search filters | Take 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 name | A 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_collection | Takes 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.
Ids, paging and limits
Section titled “Ids, paging and limits”| Rule | Value |
|---|---|
| Result ids | <collection>:<id>, where <id> is Typemo’s document id. fetch takes the whole result id. |
delete_documents ids | The <id> part of a result id, or the id you pushed. |
collection | Optional on read tools when the key reaches one collection. Otherwise the tool lists the collections to pick from. |
limit | 1–50 results per page, default 10. |
cursor | The nextCursor of the previous page. |
list_collections | Lists the first 100 collections. |
upsert_documents | Up to 1,000 documents a call, each with a string id. One invalid document rejects the whole batch with a per-document report. |
delete_documents | Up to 1,000 ids a call. |
create_collection | A name of up to 100 characters; at most 12 custom roles in fieldMeta. Roles are never guessed from field names. |
sync_source | For 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.
Tool reference
Section titled “Tool reference”list_collections
Section titled “list_collections”Every collection this credential can reach, with its document count. Start here.
No parameters.
describe_collection
Section titled “describe_collection”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.
| Parameter | Type | Required | Description |
|---|---|---|---|
collection | string | no | Collection id. Omit when the key reaches only one collection. |
search
Section titled “search”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.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | yes | What to look for. * matches every document. |
collection | string | no | Collection id. Omit when the key reaches only one collection. |
filters | array | no | Every filter must match. |
filters[].field | string | yes | A field describe_collection marks filterable, by its name, its label or the key attributes shows it under; for contains, a text field. |
filters[].op | string | yes | eq, neq, gt, gte, lt, lte, in, nin, or contains (a phrase in a text field). |
filters[].value | string or number or boolean or array | yes | What to compare with; in and nin take an array. |
sort | string | no | field:asc or field:desc. Default: relevance. |
limit | integer | no | Results per page, default 10. |
queryType | string | no | question 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. |
cursor | string | no | nextCursor from the previous page. |
The whole document behind a search result id.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | A result id from search: <collection>:<document id>. |
create_collection
Section titled “create_collection”A new, empty collection to push documents into. Needs write access.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Collection name, up to 100 characters. |
locale | string | no | Language of the content, e.g. en, de. Default en. |
project | string | no | Project id; needed only when your account has several. |
roles | object | no | The 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. |
fieldMeta | object | no | What 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. |
upsert_documents
Section titled “upsert_documents”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.
| Parameter | Type | Required | Description |
|---|---|---|---|
collection | string | yes | Collection id. |
documents | array | yes | Each document needs a unique string id. At most 1000 per call; the batch is validated as a whole. |
delete_documents
Section titled “delete_documents”Delete up to 1000 documents by id. Needs write access.
| Parameter | Type | Required | Description |
|---|---|---|---|
collection | string | yes | Collection id. |
ids | array | yes | Ids to delete: the id part of a search result id, or the id you pushed. At most 1000 per call. |
sync_source
Section titled “sync_source”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.
| Parameter | Type | Required | Description |
|---|---|---|---|
collection | string | yes | Collection id. |
Next: Connect an AI agent, or Describe fields for AI so agents read your columns right.