Skip to main content
Server path: /datastore-structured | Type: Embedded | PCID required: No Tables with defined column schemas. Create collections, import CSV data, run analytics and natural language queries, and manage rows. For a guided walkthrough, see the Datastore documentation.

Tools

ToolDescription
datastore-structured_list_collectionsList all structured datastore collections
datastore-structured_create_collectionCreate a new collection with a defined schema
datastore-structured_create_collection_from_csvCreate a collection from a CSV file
datastore-structured_create_collection_with_templateCreate a collection from a pre-built template
datastore-structured_get_collectionGet collection details and schema
datastore-structured_delete_collectionDelete a collection and all its data
datastore-structured_update_schemaAdd, remove, or rename columns
datastore-structured_list_templatesList available collection templates
datastore-structured_list_itemsList rows with pagination and sorting
datastore-structured_create_itemCreate a new row
datastore-structured_batch_create_itemsCreate multiple rows at once (max 500)
datastore-structured_get_itemGet a row by item ID
datastore-structured_get_item_by_keyGet row(s) by key
datastore-structured_update_itemUpdate a row (partial update)
datastore-structured_delete_itemDelete a row
datastore-structured_import_dataImport CSV data into existing collection
datastore-structured_searchSearch rows by text with fuzzy/exact/prefix matching
datastore-structured_natural_queryQuery data using natural language
datastore-structured_analytics_queryRun analytics with natural language
datastore-structured_migrate_sortfieldChange default sort order

datastore-structured_list_collections

List all structured datastore collections in the current workspace. Parameters: None Response fields:
FieldTypeDescription
collectionsobject[]Array of collection objects
collections[].idstringCollection ID
collections[].namestringCollection name
collections[].descriptionstringCollection description
collections[].typestringCollection type
collections[].maxItemsnumberMaximum number of items allowed
collections[].numItemsnumberCurrent number of items
collections[].isSharedbooleanWhether the collection is shared
collections[].statusstringCollection status
collections[].createdBystringUser ID of the creator
collections[].createdByNamestringDisplay name of the creator
collections[].isStructuredbooleanWhether the collection uses a structured schema
collections[].schemaobjectSchema definition with fields array
collections[].permissionsobjectPermission settings
collections[].createdAtstringCreation timestamp
collections[].updatedAtstringLast updated timestamp

datastore-structured_create_collection

Create a new structured datastore collection with a defined column schema. Parameters:
ParameterTypeRequiredDescription
namestringYesCollection name
descriptionstringNoCollection description
typestringYesMust be "datastore"
createdBystringYesUser ID of the creator
createdByNamestringYesDisplay name of the creator
templateIdstringNoTemplate ID to base the collection on. Defaults to "none".
schemaobjectYesSchema definition with fields array and nextFieldId
Response fields:
FieldTypeDescription
messagestringSuccess message
idstringID of the newly created collection
isStructuredbooleanWhether the collection is structured
schemaobjectThe applied schema definition

datastore-structured_create_collection_from_csv

Create a new structured collection by importing a CSV file. The schema is auto-generated from CSV headers if not provided. Parameters:
ParameterTypeRequiredDescription
fileUrlstringYesURL of the CSV file to import
namestringYesCollection name
descriptionstringNoCollection description
createdBystringYesUser ID of the creator
createdByNamestringYesDisplay name of the creator
schemaobjectNoSchema definition. Auto-generated from CSV headers if omitted.
Response fields:
FieldTypeDescription
collectionIdstringID of the newly created collection
importednumberNumber of rows successfully imported
totalnumberTotal number of rows in the CSV
schemaobjectThe applied or auto-generated schema

datastore-structured_create_collection_with_template

Create a new structured collection from a pre-built template. Use list_templates to see available templates. Parameters:
ParameterTypeRequiredDescription
namestringYesCollection name
descriptionstringNoCollection description
templateIdstringYesTemplate ID (from list_templates)
createdBystringYesUser ID of the creator
createdByNamestringYesDisplay name of the creator
Response fields:
FieldTypeDescription
messagestringSuccess message
idstringID of the newly created collection
isStructuredbooleanWhether the collection is structured
schemaobjectThe template-based schema definition

datastore-structured_get_collection

Get details and schema for a specific collection. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
Response fields:
FieldTypeDescription
idstringCollection ID
namestringCollection name
descriptionstringCollection description
typestringCollection type
isStructuredbooleanWhether the collection uses a structured schema
maxItemsnumberMaximum number of items allowed
numItemsnumberCurrent number of items
isSharedbooleanWhether the collection is shared
statusstringCollection status
createdBystringUser ID of the creator
createdByNamestringDisplay name of the creator
schemaobjectSchema definition with fields array
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp

datastore-structured_delete_collection

Delete a collection and all its data. This action is irreversible. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
Response fields:
FieldTypeDescription
messagestringConfirmation message

datastore-structured_update_schema

Update the schema of an existing collection. Use this to add, remove, or rename columns. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
schemaobjectYesUpdated schema definition with fields array and nextFieldId
Response fields:
FieldTypeDescription
messagestringSuccess message
schemaobjectThe updated schema definition

datastore-structured_list_templates

List all available pre-built collection templates. Parameters: None Response fields:
FieldTypeDescription
templatesobject[]Array of template objects
templates[].idstringTemplate ID
templates[].namestringTemplate name
templates[].descriptionstringTemplate description
templates[].categorystringTemplate category
templates[].schemaobjectSchema definition for the template

datastore-structured_list_items

List rows in a collection with pagination and sorting options. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
limitnumberNo50Maximum number of rows to return
offsetnumberNoNumber of rows to skip for pagination
orderedBystringNo"createdAt:desc"Sort order for results
formatstringNo"light"Response format: "light" or "full"
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
itemsobject[]Array of row objects
paginationobjectPagination metadata
pagination.totalCountnumberTotal number of rows in the collection
pagination.hasNextPagebooleanWhether more rows exist after this page
pagination.hasPrevPagebooleanWhether rows exist before this page

datastore-structured_create_item

Create a new row in a collection. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
keystringYesUnique key for the row
contentobjectYesRow data matching the collection schema
sortFieldstringNoCustom sort field value
metadataobjectNoAdditional metadata for the row
triggerChangesbooleanNoWhether to trigger change notifications
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
idstringID of the created row
keystringKey of the created row
messagestringSuccess message

datastore-structured_batch_create_items

Create multiple rows at once. Maximum 500 items per batch. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
itemsobject[]YesArray of items, each with key, content, and optional metadata and sortField
triggerChangesbooleanNoWhether to trigger change notifications
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
creatednumberNumber of rows successfully created
failednumberNumber of rows that failed to create
messagestringSummary message

datastore-structured_get_item

Get a single row by its item ID. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
itemIdstringYesItem ID of the row
decryptSecretsbooleanNofalseWhether to decrypt secret fields
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
idstringItem ID
keystringRow key
sortFieldstringSort field value
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp
isSecretbooleanWhether the row contains secret data
contentobjectRow data
metadataobjectRow metadata
collectionIdstringParent collection ID
providerIdstringProvider ID

datastore-structured_get_item_by_key

Get one or more rows by their key value. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
keystringYesRow key to look up
sortFieldstringNoSort field value to narrow results
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
itemsobject[]Array of matching rows
items[].idstringItem ID
items[].keystringRow key
items[].sortFieldstringSort field value
items[].createdAtstringCreation timestamp
items[].updatedAtstringLast updated timestamp
items[].isSecretbooleanWhether the row contains secret data
items[].contentobjectRow data
items[].metadataobjectRow metadata

datastore-structured_update_item

Update an existing row. Performs a partial update — only the provided fields are changed. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
itemIdstringYesItem ID of the row to update
contentobjectYesFields to update
metadataobjectNoMetadata fields to update
triggerChangesbooleanNoWhether to trigger change notifications
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
idstringItem ID of the updated row
keystringRow key
messagestringSuccess message

datastore-structured_delete_item

Delete a row from a collection. Specify the row by itemId or by key (and optionally sortField). Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
itemIdstringNoItem ID of the row to delete
keystringNoKey of the row to delete (alternative to itemId)
sortFieldstringNoSort field value to narrow deletion when using key
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
messagestringConfirmation message

datastore-structured_import_data

Import CSV data into an existing collection. Rows are appended to the collection. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
fileUrlstringYesURL of the CSV file to import
Response fields:
FieldTypeDescription
importednumberNumber of rows successfully imported
totalnumberTotal number of rows in the CSV
failednumberNumber of rows that failed to import
messagestringSummary message

Search rows by text with configurable matching strategy. Supports fuzzy, exact, and prefix matching across all fields or a specific field. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
qstringYesSearch query text
fieldstringNo"all"Field to search: "all", "content", "sortField", or "key"
typestringNo"fuzzy"Match type: "fuzzy", "exact", or "prefix"
thresholdnumberNo0.3Fuzzy match threshold (0–1). Lower values are more permissive.
limitnumberNo50Maximum number of results
compiledbooleanNofalseWhether the query is a pre-compiled search expression
queryParamsobjectNoAdditional query parameters for compiled searches
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
itemsobject[]Array of matching rows
items[].idstringItem ID
items[].keystringRow key
items[].contentobjectRow data
items[].scorenumberMatch relevance score
items[].snippetstringText snippet highlighting the match

datastore-structured_natural_query

Query collection data using natural language. Supports two modes: natural-search returns matching rows, natural-answer returns an AI-generated answer. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
querystringYesNatural language query
modestringYes"natural-search" to return matching rows, or "natural-answer" for an AI-generated answer
limitnumberNoMaximum number of results
offsetnumberNoNumber of results to skip for pagination
returnAllbooleanNoWhether to return all matching results
translationobjectNoTranslation configuration for the query
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
itemsobject[]Array of matching rows (in natural-search mode)
answerstringAI-generated answer (in natural-answer mode)
analysisobjectQuery analysis and interpretation details
paginationobjectPagination metadata
translationobjectTranslation details if translation was requested

datastore-structured_analytics_query

Run analytics on collection data using natural language. Returns tabular results with column definitions. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
querystringYesNatural language analytics query (e.g. “total sales by region”)
limitnumberNo10000Maximum number of result rows
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
columnsobject[]Column definitions for the result table
rowsobject[]Result rows
totalRowsnumberTotal number of result rows
explanationstringNatural language explanation of the analytics query

datastore-structured_migrate_sortfield

Change the default sort order for a collection. Updates all existing rows to use the new sort configuration. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
sortConfigobjectYesSort configuration with fields array and direction
Response fields:
FieldTypeDescription
messagestringSuccess message
updatednumberNumber of rows updated with the new sort order