For Agents
Read, write, query, and transact over entities in Cloud Datastore's NoSQL document database. Lets agents persist application state with strong consistency and ACID transactions.
Get started with Cloud Datastore API in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"look up a datastore entity by key"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with Cloud Datastore API API.
Look up entities by key in single calls or batched lookups
Run GQL and structured queries against entity kinds with filters and ordering
Commit groups of inserts, updates, upserts, and deletes in atomic transactions
Reserve entity IDs ahead of insert with allocateIds and reserveIds
GET STARTED
Use for: I need to look up a Datastore entity by its key, Run a GQL query that returns the 10 most recent orders, Commit a transaction that updates two entities atomically, Allocate a new entity ID before inserting
Not supported: Does not run analytical SQL, manage relational schema, or stream change events — use for entity reads, writes, queries, and transactions in Datastore-mode databases only.
Cloud Datastore is Google's schemaless NoSQL document database for fully managed, scalable application storage. The API exposes 18 endpoints covering entity lookup, queries (GQL and structured), allocateIds for ID generation, and atomic transactions via beginTransaction, commit, and rollback. It also exposes import and export operations to and from Cloud Storage, plus index management for query optimisation.
Export and import entire entity kinds to and from Cloud Storage
Manage composite indexes that back complex query patterns
Patterns agents use Cloud Datastore API API for, with concrete tasks.
★ Schemaless Application State Storage
Persist user profiles, sessions, and operational state in a NoSQL document store with strong consistency on lookups by key. The API's commit operation supports atomic upserts of multiple entities, and lookup batches reads to minimise round-trips. Most applications can replace a small relational store with Datastore in under a day if access patterns are key-based.
POST /v1/projects/{projectId}:lookup with a list of entity keys for users; POST /v1/projects/{projectId}:commit with mutations to upsert their session state
Atomic Multi-Entity Transactions
Begin a Datastore transaction, perform reads and writes, then commit or roll back atomically. POST /v1/projects/{projectId}:beginTransaction returns a transaction id that scopes subsequent lookups and the final commit. This supports use cases such as inventory decrement plus order creation in a single ACID step. Rollback on conflict is exposed as a first-class operation.
Begin a transaction, lookup the inventory entity, decrement its count, upsert an order entity, and commit; rollback on conflict
Backup and Restore via Cloud Storage
Export a Datastore kind to Cloud Storage as a managed backup, then re-import the same files into a different project for disaster recovery or environment refresh. POST /v1/projects/{projectId}:export and :import accept a Cloud Storage URI prefix and entity-filter for kinds and namespaces. Long-running operations let agents poll for completion.
POST /v1/projects/{projectId}:export with outputUrlPrefix gs://acme-backup/datastore/2026-06-10/ and entityFilter for kinds [User, Order]; poll the operation until done
AI Agent State Persistence
An AI agent that needs persistent state across runs can use Datastore through Jentic without operator-written client code. Jentic search returns the matching lookup, query, commit, or transaction operation, the agent loads the schema, and Jentic executes against datastore.googleapis.com using vault-stored credentials. This makes durable agent memory a single intent-search away.
Use Jentic to search 'commit a datastore mutation', load the commit schema, and execute it with an upsert mutation for the agent's state entity
18 endpoints — cloud datastore is google's schemaless nosql document database for fully managed, scalable application storage.
METHOD
PATH
DESCRIPTION
/v1/projects/{projectId}:lookup
Look up entities by key
/v1/projects/{projectId}:runQuery
Run a GQL or structured query
/v1/projects/{projectId}:commit
Commit mutations atomically
/v1/projects/{projectId}:beginTransaction
Begin a transaction
/v1/projects/{projectId}:allocateIds
Allocate new entity IDs
/v1/projects/{projectId}:export
Export entities to Cloud Storage
/v1/projects/{projectId}:lookup
Look up entities by key
/v1/projects/{projectId}:runQuery
Run a GQL or structured query
/v1/projects/{projectId}:commit
Commit mutations atomically
/v1/projects/{projectId}:beginTransaction
Begin a transaction
/v1/projects/{projectId}:allocateIds
Allocate new entity IDs
Three things that make agents converge on Jentic-routed access.
Credential isolation
Google OAuth client secrets and refresh tokens are stored encrypted in the Jentic vault. Agents receive scoped, short-lived access tokens for datastore.googleapis.com; raw credentials never enter the agent context.
Intent-based discovery
Agents search Jentic by intent (e.g. 'commit a datastore mutation') and Jentic returns the matching operation with its input schema, so the agent calls the right endpoint without browsing the discovery doc.
Time to first call
Direct Datastore integration: 1-2 days for OAuth and entity-key construction. Through Jentic: under 1 hour.
Alternatives and complements available in the Jentic catalogue.
Cloud Firestore API
Firestore is the successor to Datastore with realtime listeners and richer querying.
Choose Firestore for new projects or when realtime updates are needed. Use Datastore when continuing to operate an existing Datastore-mode database.
Cloud Bigtable Admin API
Bigtable is a wide-column key-value store for high-throughput workloads; Datastore is document-oriented.
Choose Bigtable for petabyte-scale time-series and IoT workloads. Use Datastore for application document storage with transactions.
Cloud Storage API
Cloud Storage holds Datastore export and import files.
Choose Cloud Storage for the bucket and object operations underlying backups. Use Datastore for entity reads, writes, and queries.
Specific to using Cloud Datastore API API through Jentic.
What authentication does the Cloud Datastore API use?
The Cloud Datastore API uses OAuth 2.0 with the datastore or cloud-platform scope. Through Jentic the OAuth client and refresh tokens are stored in the Jentic vault and the agent receives short-lived scoped access tokens, so raw Google credentials never enter the agent context.
Can I run transactions with the Cloud Datastore API?
Yes. Call POST /v1/projects/{projectId}:beginTransaction to obtain a transaction id, perform lookups and queries with that id, then commit the mutations atomically with POST /v1/projects/{projectId}:commit, or roll back via :rollback. Conflicts on serializable transactions are surfaced and require client retry.
What are the rate limits for the Cloud Datastore API?
Google enforces standard Cloud quotas on datastore.googleapis.com: per-project read/write entity-operation quotas, transaction quotas, and admin operation limits for export and import. Quotas are visible in the Cloud Console under IAM and admin, quotas, filtered to datastore.googleapis.com.
How do I run a GQL query through Jentic?
Search Jentic for 'run a datastore gql query', load the schema for POST /v1/projects/{projectId}:runQuery, and execute it with gqlQuery.queryString set. Jentic returns the batch of entities and the cursor for paginated continuation.
Is the Cloud Datastore API free?
Datastore has a daily free tier (entity reads, writes, deletes, and a stored-data allowance). Beyond the free tier you pay per million entity operations and per GiB of stored data; see the official pricing page for current rates.
How do I export a Datastore kind to Cloud Storage?
Call POST /v1/projects/{projectId}:export with outputUrlPrefix as a gs:// URI and entityFilter listing kinds and namespaces. The response is a long-running operation; poll its name endpoint until done is true and metadata.outputUrlPrefix is set.
/v1/projects/{projectId}:export
Export entities to Cloud Storage