Skip to main content
Glama

get_knowledge_rows

Fetch sample data rows from knowledge lists to inspect actual payloads and understand data structure for workflows.

Instructions

Fetch sample rows from a knowledge list. Use this to inspect actual data — see example payloads from investor/deal lists. Returns rows with their full rowData, plus count and totalCount for the list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
listKeyYesThe list key to fetch rows from (e.g., "investors", "deals")
limitNoNumber of rows to return (default 5, max 50)

Implementation Reference

  • Tool registration for "get_knowledge_rows" in src/tools/knowledge.ts.
        server.tool(
            'get_knowledge_rows',
            `Fetch sample rows from a knowledge list. Use this to inspect actual data — see example payloads from investor/deal lists.
    Returns rows with their full rowData, plus count and totalCount for the list.`,
            {
                listKey: z.string().describe('The list key to fetch rows from (e.g., "investors", "deals")'),
                limit: z.number().min(1).max(50).optional().describe('Number of rows to return (default 5, max 50)'),
            },
            async ({ listKey, limit }, extra) => {
                const client = clientFactory(extra);
                const result = await client.getKnowledgeRows(listKey, limit);
                return {
                    content: [{
                        type: 'text' as const,
                        text: JSON.stringify(result, null, 2),
                    }],
                };
            }
        );
  • The actual handler implementation for "get_knowledge_rows" within the AgentledClient class, which makes the API call to the knowledge service.
    async getKnowledgeRows(listKey: string, limit?: number) {
        const query = new URLSearchParams({ listKey });
        if (limit) query.set('limit', String(limit));
        return this.request(`/knowledge/rows?${query}`);
    }

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