Skip to main content
Glama

list_knowledge_lists

Discover available knowledge lists with field definitions, row counts, and metadata to understand data structure before querying.

Instructions

List all knowledge list schemas with field definitions, row counts, and metadata. Returns detailed information about each list including fields, source type, category, entity config, and KG sync status. Use this to discover what lists exist and understand their structure before querying rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler that calls the client's listKnowledgeLists method.
    async (_args, extra) => {
        const client = clientFactory(extra);
        const result = await client.listKnowledgeLists();
        return {
            content: [{
                type: 'text' as const,
                text: JSON.stringify(result, null, 2),
            }],
        };
    }
  • The actual client method that makes the API request to fetch knowledge lists.
    async listKnowledgeLists() {
        return this.request('/knowledge/lists');
    }
  • The MCP tool registration for list_knowledge_lists.
        server.tool(
            'list_knowledge_lists',
            `List all knowledge list schemas with field definitions, row counts, and metadata.
    Returns detailed information about each list including fields, source type, category, entity config, and KG sync status.
    Use this to discover what lists exist and understand their structure before querying rows.`,
            {},
            async (_args, extra) => {
                const client = clientFactory(extra);
                const result = await client.listKnowledgeLists();
                return {
                    content: [{
                        type: 'text' as const,
                        text: JSON.stringify(result, null, 2),
                    }],
                };
            }
        );

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/Agentled/mcp-server'

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