Skip to main content
Glama
johnreitano

MCP Datastore Server

by johnreitano

datastore_list_kinds

List all entity kinds (tables) in Google Cloud Datastore using this tool. Enables quick access to available data structures for query and management purposes.

Instructions

List all available entity kinds (tables) in the Datastore

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • MCP tool handler for 'datastore_list_kinds': calls DatastoreClient.listKinds() and formats the response as text.
    case 'datastore_list_kinds': const kinds = await datastoreClient.listKinds(); return { content: [ { type: 'text', text: `Available entity kinds:\n${kinds.map((k: string) => `- ${k}`).join('\n')}`, }, ], };
  • DatastoreClient.listKinds(): Queries the '__kind__' namespace to retrieve and return all available entity kinds.
    async listKinds(): Promise<string[]> { try { const query = this.datastore.createQuery('__kind__').select('__key__'); const [entities] = await this.datastore.runQuery(query); return entities.map(entity => entity[this.datastore.KEY].name).filter(Boolean); } catch (error) { throw new Error(`Failed to list kinds: ${error instanceof Error ? error.message : 'Unknown error'}`); } }
  • src/index.ts:29-35 (registration)
    Tool registration in ListTools response: defines name, description, and empty input schema.
    name: 'datastore_list_kinds', description: 'List all available entity kinds (tables) in the Datastore', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema for 'datastore_list_kinds' tool: empty object (no parameters required).
    inputSchema: { type: 'object', properties: {}, },

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/johnreitano/daisy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server