Skip to main content
Glama

get_knowledge_text

Fetch text-based knowledge entries like feedback files, notes, or configuration text from the workspace by specifying a key to access stored information.

Instructions

Fetch a text-type knowledge entry by key. Use this to access text-based knowledge like feedback files, notes, or configuration text stored in the workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesThe key of the text entry to fetch

Implementation Reference

  • Tool handler for 'get_knowledge_text' registered in the MCP server. It calls the client's getKnowledgeText method.
    server.tool(
        'get_knowledge_text',
        `Fetch a text-type knowledge entry by key. Use this to access text-based knowledge like feedback files, notes, or configuration text stored in the workspace.`,
        {
            key: z.string().describe('The key of the text entry to fetch'),
        },
        async ({ key }, extra) => {
            const client = clientFactory(extra);
            const result = await client.getKnowledgeText(key);
            return {
                content: [{
                    type: 'text' as const,
                    text: JSON.stringify(result, null, 2),
                }],
            };
        }
    );
  • The underlying client implementation that makes the HTTP request to the /knowledge/text API endpoint.
    async getKnowledgeText(key: string) {
        const query = new URLSearchParams({ key });
        return this.request(`/knowledge/text?${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