Skip to main content
Glama
ispyridis

Calibre RAG MCP Server

by ispyridis

get_project_info

Retrieve detailed information about a specific RAG project within the Calibre ebook library, including its configuration, contents, and organization for semantic search and contextual conversations.

Instructions

Get detailed information about a specific RAG project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_nameYesName of the project

Implementation Reference

  • The main handler function for the 'get_project_info' tool. It validates the project_name argument, retrieves the project configuration from the in-memory projects Map, and sends a formatted JSON-RPC success response with project details.
    case 'get_project_info':
        const infoProjName = args.project_name;
        
        if (!infoProjName) {
            this.sendError(id, -32602, 'Missing required parameter: project_name');
            return;
        }
        
        const project = this.projects.get(infoProjName);
        if (!project) {
            this.sendError(id, -32603, `Project '${infoProjName}' not found`);
            return;
        }
        
        this.sendSuccess(id, {
            content: [{
                type: 'text',
                text: `**Project: ${project.name}**\n\n` +
                    `Description: ${project.description}\n` +
                    `Created: ${project.created_at}\n` +
                    `Books: ${project.books.length}\n` +
                    `Chunks: ${project.chunk_count}\n` +
                    `Vector Dimension: ${project.vector_dimension}\n` +
                    `${project.last_updated ? `Last Updated: ${project.last_updated}` : ''}`
            }],
            project: project
        });
        break;
  • server.js:1072-1085 (registration)
    Tool registration in the tools/list response, including the tool name, description, and input schema definition (JSON Schema for parameters).
    {
        name: 'get_project_info',
        description: 'Get detailed information about a specific RAG project',
        inputSchema: {
            type: 'object',
            properties: {
                project_name: {
                    type: 'string',
                    description: 'Name of the project'
                }
            },
            required: ['project_name']
        }
    }
  • JSON Schema defining the input parameters for the 'get_project_info' tool: requires a 'project_name' string.
    inputSchema: {
        type: 'object',
        properties: {
            project_name: {
                type: 'string',
                description: 'Name of the project'
            }
        },
        required: ['project_name']
    }

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/ispyridis/calibre-rag-mcp-nodejs'

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