Skip to main content
Glama

readarr_search_missing

Search for missing books by author ID to complete your digital library collection through the MCP *arr Server's media management system.

Instructions

Trigger a search for all missing books for an author

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
authorIdYesAuthor ID to search missing books for

Implementation Reference

  • src/index.ts:503-516 (registration)
    Registers the 'readarr_search_missing' tool in the TOOLS array if Readarr client is configured. Defines the input schema requiring 'authorId'.
    { name: "readarr_search_missing", description: "Trigger a search for all missing books for an author", inputSchema: { type: "object" as const, properties: { authorId: { type: "number", description: "Author ID to search missing books for", }, }, required: ["authorId"], }, },
  • Input schema for the tool: object with required 'authorId' number.
    { name: "readarr_search_missing", description: "Trigger a search for all missing books for an author", inputSchema: { type: "object" as const, properties: { authorId: { type: "number", description: "Author ID to search missing books for", }, }, required: ["authorId"], }, },
  • MCP server tool handler: validates Readarr config, extracts authorId from args, calls ReadarrClient.searchMissingBooks, returns success response with command ID.
    case "readarr_search_missing": { if (!clients.readarr) throw new Error("Readarr not configured"); const authorId = (args as { authorId: number }).authorId; const result = await clients.readarr.searchMissingBooks(authorId); return { content: [{ type: "text", text: JSON.stringify({ success: true, message: `Search triggered for missing books`, commandId: result.id, }, null, 2), }], }; }
  • ReadarrClient method: POST to /command with 'AuthorSearch' and authorId to trigger search for missing books in Readarr API.
    async searchMissingBooks(authorId: number): Promise<{ id: number }> { return this['request']<{ id: number }>('/command', { method: 'POST', body: JSON.stringify({ name: 'AuthorSearch', authorId, }), }); }

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/aplaceforallmystuff/mcp-arr'

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