Algolia MCP by usefulapi
v1.2.1Search indices, read records and synonyms, and add, change or delete records in Algolia.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
algolia_list_indices List indices
List the indices in the Algolia application with their entry counts, sizes and update times. Good first call. Algolia API: GET /1/indexes.
| Parameter | Type | Description |
|---|---|---|
hitsPerPage | integer | Results per page (0–1000; 0 returns counts only). |
page | integer | Page number, starting at 0. |
algolia_search_index Search an index
Search one index and return the matching records (hits) with highlights and facets when requested. Up to 1,000 hits; use paging for more. Algolia API: POST /1/indexes/{indexName}/query.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
filters | string | Filter expression, for example "brand:Apple AND price < 500". |
hitsPerPage | integer | Results per page (0–1000; 0 returns counts only). |
page | integer | Page number, starting at 0. |
params | object | Other Algolia search parameters as an object, for example { attributesToRetrieve, facets, facetFilters }. |
query | string | Text to search for. |
algolia_multi_search Search several indices
Run one or more search queries across one or more indices in one call and return one result per query, in order. A hit query has indexName and query. A facet query has indexName, type "facet", facet and query. Algolia API: POST /1/indexes/*/queries.
| Parameter | Type | Description |
|---|---|---|
requests * | array | The queries (hit or facet). Each has indexName, plus any search parameter at the top level. |
strategy | string | "none" runs all queries (default). |
algolia_search_facet_values Search facet values
Search the values of one facet in an index, for example brand names that start with "App". Algolia API: POST /1/indexes/{indexName}/facets/{facetName}/query.
| Parameter | Type | Description |
|---|---|---|
facetName * | string | Facet attribute name, for example "brand". |
facetQuery * | string | Text to match inside the facet values. |
indexName * | string | Index name (from algolia_list_indices). |
params | object | Other Algolia search parameters as an object, for example { attributesToRetrieve, facets, facetFilters }. |
algolia_get_object Get a record
Get one record by objectID, optionally with only some attributes. Algolia API: GET /1/indexes/{indexName}/{objectID}.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
objectID * | string | The record's objectID. |
attributesToRetrieve | array | Attribute names to return (default: all). |
algolia_get_objects Get several records
Get up to 1,000 records by objectID across indices in one call. Algolia API: POST /1/indexes/*/objects.
| Parameter | Type | Description |
|---|---|---|
requests * | array | The records to fetch. |
algolia_get_settings Get index settings
Get an index's settings: searchable and facet attributes, ranking, typo tolerance and more. Algolia API: GET /1/indexes/{indexName}/settings.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
algolia_search_synonyms Search synonyms
Search the synonyms of an index. Algolia API: POST /1/indexes/{indexName}/synonyms/search.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
hitsPerPage | integer | Results per page (0–1000; 0 returns counts only). |
page | integer | Page number, starting at 0. |
query | string | Text to search for. |
type | string | Limit to one synonym type. |
algolia_get_synonym Get a synonym
Get one synonym by objectID. Algolia API: GET /1/indexes/{indexName}/synonyms/{objectID}.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
objectID * | string | The record's objectID. |
algolia_search_rules Search rules
Search the query rules of an index (rules that change results for matching queries or contexts). Algolia API: POST /1/indexes/{indexName}/rules/search.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
anchoring | string | Match type of the rule's pattern. |
context | string | Limit to rules with this context. |
enabled | boolean | Only enabled (true) or disabled (false) rules. |
hitsPerPage | integer | Results per page (0–1000; 0 returns counts only). |
page | integer | Page number, starting at 0. |
query | string | Text to search for. |
algolia_get_rule Get a rule
Get one query rule by objectID. Algolia API: GET /1/indexes/{indexName}/rules/{objectID}.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
objectID * | string | The record's objectID. |
algolia_get_task Check a write task
Check whether an index write (returned as taskID) is published yet. Algolia API: GET /1/indexes/{indexName}/task/{taskID}.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
taskID * | A taskID from a write response. |
algolia_get_logs Get API logs
Get the last seven days of API log entries (queries, indexing, errors), newest first. Needs a key with the logs permission. Algolia API: GET /1/logs.
| Parameter | Type | Description |
|---|---|---|
indexName | string | Only logs for this index. |
length | integer | Number of entries (1–1000). |
offset | integer | First entry to return (newest is 0). |
type | string | Type of log entry (default all). |
algolia_save_object Add a record
Add a new record with an auto-generated objectID. Changes the index. Returns the new objectID and a taskID. Algolia API: POST /1/indexes/{indexName}.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
record * | object | The record as a JSON object. |
algolia_add_or_replace_object Add or replace a record
Add a record with this objectID, or replace the whole existing record. Replacing drops attributes not sent. Changes the index. Algolia API: PUT /1/indexes/{indexName}/{objectID}.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
objectID * | string | The record's objectID. |
record * | object | The record as a JSON object. |
algolia_partial_update_object Update some attributes of a record
Change only the given attributes of one record and keep the rest. Changes the index. Algolia API: POST /1/indexes/{indexName}/{objectID}/partial.
| Parameter | Type | Description |
|---|---|---|
attributes * | object | The attributes to set, for example { price: 399 }. |
indexName * | string | Index name (from algolia_list_indices). |
objectID * | string | The record's objectID. |
createIfNotExists | boolean | Create the record when it does not exist (default false). |
algolia_delete_object Delete a record
Delete one record by objectID. The record is removed from search results after the returned taskID completes. Algolia API: DELETE /1/indexes/{indexName}/{objectID}.
| Parameter | Type | Description |
|---|---|---|
indexName * | string | Index name (from algolia_list_indices). |
objectID * | string | The record's objectID. |