Skip to main content
Glama
jimpick

MCP JSON Document Collection Server

by jimpick

list_json_doc_databases

Discover available JSON document databases to identify which collections you can access for document management and querying operations.

Instructions

Returns the list of JSON document databases. Use this to understand which databases are available before trying to access JSON documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the 'list_json_doc_databases' tool. Queries the localJsonDbCollection by 'name' index, extracts database names from documents, and returns them as a JSON string in the tool response.
    case "list_json_doc_databases": { const results = await localJsonDbCollection.query<string, JsonDocDb>("name", { includeDocs: true, descending: true, }) const dbNames = results.rows.flatMap(row => row.doc ? [row.doc.name] : []); return { content: [ { type: "text", text: JSON.stringify(dbNames) } ] } }
  • src/index.ts:117-127 (registration)
    Registration of the 'list_json_doc_databases' tool in the ListTools response, specifying name, description, and input schema (no required parameters).
    { name: "list_json_doc_databases", description: "Returns the list of JSON document databases. " + "Use this to understand which databases are available before trying to access JSON documents.", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Input schema for the 'list_json_doc_databases' tool, defining an empty object with no properties or required fields.
    inputSchema: { type: "object", properties: {}, required: [], },

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/jimpick/mcp-json-db-collection-server'

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