Skip to main content
Glama

getCollection

Retrieve a specific collection by its unique ID from Raindrop.io's bookmark manager. Use this tool to efficiently access and manage saved bookmarks within defined collections.

Instructions

Get a specific collection by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesCollection ID

Implementation Reference

  • Core handler function that implements fetching a single Raindrop collection by ID using the API client. This is the exact implementation logic for 'getCollection'.
    async getCollection(id: number): Promise<Collection> { const { data } = await this.client.GET('/collection/{id}', { params: { path: { id } } }); if (!data?.item) throw new Error('Collection not found'); return data.item; }
  • Usage of getCollection in the MCP resource reader for handling mcp://collection/{id} URIs dynamically.
    } const collection = await this.raindropService.getCollection(collectionId); return { contents: [{ uri, text: JSON.stringify({ collection }, null, 2) }] };
  • Related getCollections method for listing all collections, often used alongside getCollection.
    async getCollections(): Promise<Collection[]> { const { data } = await this.client.GET('/collections'); return [...(data?.items || [])]; }

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/adeze/raindrop-mcp'

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