lambdadb-mcp

v0.8.0
@functional-systems/lambdadb-mcp Checked 4 days ago Published 3 days ago

MCP server for LambdaDB data plane

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lambdadb_list_collections List Collections

List one page of collections in the configured project. Follow nextPageToken when more inventory is needed; a page is not the full list. For field types and indexes of a chosen collection, use lambdadb_get_collection.

ParameterTypeDescription
pageTokenstringOpaque nextPageToken from the previous response.
sizeintegerCollections per page (1–100).

lambdadb_get_collection Get Collection

Inspect a collection's field types and indexConfigs before constructing searches. indexConfigs and document counts describe branch main; another branch, a tag or an alias carries its own schema in lambdadb_get_branch, lambdadb_get_tag or lambdadb_get_alias. Use lambdadb_query_collection for documents, or lambdadb_list_docs with size 1 to see a sample document's actual field values.

ParameterTypeDescription
collectionName *string

lambdadb_query_collection Query Collection

Search documents with full-text, vector, boolean, or hybrid queries and return ranked results. Call lambdadb_get_collection first to learn field names and index types. Omit query for a small match-all sample; use lambdadb_fetch_docs for known IDs and lambdadb_list_docs to scan without ranking. Results wrap document fields under docs[].doc and are not all matches. Optional Bayesian hybrid search, native reranking and keyword facets require a supporting server; facets require newly built keyword indexes. size: 0 requires facets and forbids reranking. Reranking requires a scoring query and forbid…

ParameterTypeDescription
collectionName *string
candidateSizeintegerBayesian without rerank requires 1 <= size <= candidateSize <= 1000 (size defaults to 10 on the server). With rerank, omit this field and use rerank.candidateSize, whose default is unchanged. Unsuppor…
consistentReadbooleanInclude the branch's pending writes (bulk imports appear after indexing). Allowed with an omitted ref, a branch ref, or an alias that targets a branch; a tag ref or an alias that targets a tag rejects…
facetsobjectKeyword field names (including dotted paths) mapped to bucket options. Requires newly built keyword indexes on a supporting server.
fieldsProjection of returned document fields: {include: [...]} and/or {exclude: [...]} using dot notation for nested paths; include applies before exclude.
includeVectorsbooleanInclude stored vector values in returned documents; default false because vectors make responses large.
partitionFilterobjectOnly for partitioned collections: {field: <configured partition field>, in: [values]} limits the request to the partitions holding those values.
queryobjectQuery object; omit for match-all. Full-text: {queryString: {query: 'refund policy', defaultField: 'text'}} with Lucene syntax (field:value, AND/OR/NOT, "phrase", wildcard*, ranges [a TO b], *:* match-…
refRead target {kind: 'branch'|'tag'|'alias', name}; omitted reads the main branch. Names come from lambdadb_list_branches, lambdadb_list_tags, or lambdadb_list_aliases.
rerankOptional per-query native reranking with typesafe/jev-1.13.0 (optional criteria) or cohere/rerank-v5.0-pro|rerank-v5.0-fast (no criteria); requires a scoring query and positive size, forbids sort. Lam…
sizeintegerDocuments to return (1–1000), or 0 with nonempty facets. Keep exploration small (20 or fewer) and use fields to leave out large stored fields; every returned document is passed through in full.
sortarrayOrdered single-key objects mapping an indexed field to 'asc' or 'desc', e.g. [{createdAt: 'desc'}]. Omit for score order; not allowed with rerank.

lambdadb_list_docs List Documents

List one page of documents at the selected ref in ascending document ID order, or by sort. A branch listing reads its published snapshot unless consistentRead is set; a tag, or an alias that targets a tag, also includes the tag's captured pending writes. A listing with a large pending payload can fail with HTTP 429; retry later. To continue, call again with pageToken set to nextPageToken and every other argument exactly as before: the token is bound to size, sort, consistentRead, filter, fields, partitionFilter, includeVectors and ref, and any change fails with HTTP 400. Use lambdadb_fetch_doc…

ParameterTypeDescription
collectionName *string
consistentReadbooleanInclude the branch's pending writes (bulk imports appear after indexing). Allowed with an omitted ref, a branch ref, or an alias that targets a branch; a tag ref or an alias that targets a tag rejects…
fieldsProjection of returned document fields: {include: [...]} and/or {exclude: [...]} using dot notation for nested paths; include applies before exclude.
filterobjectFilter applied before pagination using the queryString and bool shapes of lambdadb_query_collection, e.g. {queryString: {query: 'category:docs'}}. Vector and ranking queries are not allowed.
includeVectorsbooleanInclude stored vector values in returned documents; default false because vectors make responses large.
pageTokenstringOpaque nextPageToken from the previous response. Repeat every other argument exactly as on the first page, leaving omitted ones omitted; a changed request condition fails with HTTP 400.
partitionFilterobjectOnly for partitioned collections: {field: <configured partition field>, in: [values]} limits the request to the partitions holding those values.
refRead target {kind: 'branch'|'tag'|'alias', name}; omitted reads the main branch. Names come from lambdadb_list_branches, lambdadb_list_tags, or lambdadb_list_aliases.
sizeintegerDocuments per page (1–1000). Keep pages small and use fields to leave out large stored fields; every returned document is passed through in full.
sortarray1–4 single-field objects, each mapping a keyword, long, double or datetime field to 'asc' or 'desc', e.g. [{category: 'asc'}, {createdAt: 'desc'}]; ascending document ID breaks ties. Omit for ascend…

lambdadb_fetch_docs Fetch Documents

Fetch known document IDs at the selected ref. Results wrap document fields under docs[].doc. A missing ID is not an error: check the ref and, for a recent write, use consistentRead on its branch or an alias that targets that branch.

ParameterTypeDescription
collectionName *string
ids *arrayDocument id values to look up (1–1000). Use fields to leave out large stored fields; every returned document is passed through in full.
consistentReadbooleanInclude the branch's pending writes (bulk imports appear after indexing). Allowed with an omitted ref, a branch ref, or an alias that targets a branch; a tag ref or an alias that targets a tag rejects…
fieldsProjection of returned document fields: {include: [...]} and/or {exclude: [...]} using dot notation for nested paths; include applies before exclude.
includeVectorsbooleanInclude stored vector values in returned documents; default false because vectors make responses large.
partitionFilterobjectOnly for partitioned collections: {field: <configured partition field>, in: [values]} limits the request to the partitions holding those values.
refRead target {kind: 'branch'|'tag'|'alias', name}; omitted reads the main branch. Names come from lambdadb_list_branches, lambdadb_list_tags, or lambdadb_list_aliases.

lambdadb_list_branches List Branches

List one page of branches in a collection in name order, each with its snapshot metadata, numDocs, dataUpdatedAt and own indexConfigs. Follow nextPageToken when more are needed; a page is not the full list. Use the returned names as ref {kind: 'branch'} for reads or as branch for writes; main always exists.

ParameterTypeDescription
collectionName *string
pageTokenstringOpaque nextPageToken from the previous response.
sizeintegerBranches per page (1–100); the server default is 10.

lambdadb_list_tags List Tags

List one page of immutable tags in a collection in name order, each with its current published snapshot, numDocs, dataUpdatedAt and indexConfigs. A tag created before its first snapshot has snapshotId, snapshotCommittedAt and dataUpdatedAt null and numDocs 0 until a build publishes its captured writes. Follow nextPageToken when more are needed; a page is not the full list. Use the returned names as ref {kind: 'tag'} for stable reads; tags are never write targets.

ParameterTypeDescription
collectionName *string
pageTokenstringOpaque nextPageToken from the previous response.
sizeintegerTags per page (1–100); the server default is 10.

lambdadb_list_aliases List Aliases

List one page of aliases in a collection in name order with their current branch or tag targets and the indexConfigs they serve (null when dangling). Follow nextPageToken when more are needed; a page is not the full list. Use the returned names as ref {kind: 'alias'} for reads, and check every page for references before deleting a branch or tag.

ParameterTypeDescription
collectionName *string
pageTokenstringOpaque nextPageToken from the previous response.
sizeintegerAliases per page (1–100); the server default is 10.

lambdadb_get_branch Get Branch

Inspect one branch: its own indexConfigs, numDocs, dataUpdatedAt (null while empty), head and parent snapshots. A branch owns its index schema, so use this instead of lambdadb_get_collection before searching or writing on a branch other than main. A name that is not a branch is not found.

ParameterTypeDescription
branchName *stringExisting branch name from lambdadb_list_branches.
collectionName *string

lambdadb_get_tag Get Tag

Inspect one immutable tag: its fixed indexConfigs and the snapshot, numDocs and dataUpdatedAt of its current published snapshot. Before the first publication snapshotId, snapshotCommittedAt and dataUpdatedAt are null and numDocs is 0; the snapshot ID can change as the tag's captured writes are published, while the tag's data stays fixed. Reads of a tag include its captured writes. A name that is not a tag is not found.

ParameterTypeDescription
collectionName *string
tagName *stringExisting tag name from lambdadb_list_tags.

lambdadb_get_alias Get Alias

Inspect one alias: its current branch or tag target and the indexConfigs that reads through it see. A dangling alias (its target is gone) is still returned, with dangling true and indexConfigs null. A name that is not an alias is not found.

ParameterTypeDescription
aliasName *stringExisting alias name from lambdadb_list_aliases.
collectionName *string

lambdadb_connect Connect LambdaDB Project

Start connecting this server to one LambdaDB project through browser approval; only when the user asks to connect. Returns promptly with verification_uri, user_code and attempt_id: show the link and code to the user, who signs in and selects the project in LambdaDB. This server then saves a project key in the OS credential store. Check progress with lambdadb_connection_status. Calling again while an attempt is pending returns that attempt. Connecting again later switches the saved project after approval.

lambdadb_connection_status LambdaDB Connection Status

Report a Connect attempt (pending, issuing, connected, region_requested, canceled, expired or failed) and the saved connection. Omit attempt_id to see only the saved connection.

ParameterTypeDescription
attempt_idstringattempt_id returned by lambdadb_connect.

lambdadb_cancel_connection Cancel LambdaDB Connect

Stop a pending Connect attempt; its approval code then has no effect here. A key claim already in progress cannot be canceled. The saved connection is unchanged.

ParameterTypeDescription
attempt_id *stringattempt_id returned by lambdadb_connect.