Skip to main content
Glama

updateBookmark

Modify existing bookmarks in Raindrop.io by updating titles, descriptions, tags, importance, or moving them to new collections for organized access.

Instructions

Update an existing bookmark

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionIdNoCollection ID to move the bookmark to
excerptNoShort excerpt or description
idYesBookmark ID
importantNoMark as important
tagsNoList of tags
titleNoTitle of the bookmark

Implementation Reference

  • Core implementation of updateBookmark: performs the HTTP PUT request to the Raindrop.io API to update a specific bookmark by ID.
    async updateBookmark(id: number, updates: Partial<Bookmark>): Promise<Bookmark> { const { data } = await this.client.PUT('/raindrop/{id}', { params: { path: { id } }, body: updates }); if (!data?.item) throw new Error('Failed to update bookmark'); return data.item; }
  • Part of bookmark_manage MCP tool handler that handles the 'update' operation by preparing payload and calling the updateBookmark service method.
    case 'update': if (!args.id) throw new Error('id is required for update'); const updatePayload: Record<string, unknown> = { link: args.url, title: args.title, }; setIfDefined(updatePayload, 'excerpt', args.description); setIfDefined(updatePayload, 'tags', args.tags); setIfDefined(updatePayload, 'important', args.important); return await raindropService.updateBookmark(args.id, updatePayload as any); case 'delete': if (!args.id) throw new Error('id is required for delete'); await raindropService.deleteBookmark(args.id); return { deleted: true }; default: throw new Error(`Unsupported operation: ${String(args.operation)}`); } }
  • Full code block including JSDoc for the updateBookmark helper function used by MCP tools.
    /** * Update a bookmark * Raindrop.io API: PUT /raindrop/{id} */ async updateBookmark(id: number, updates: Partial<Bookmark>): Promise<Bookmark> { const { data } = await this.client.PUT('/raindrop/{id}', { params: { path: { id } }, body: updates }); if (!data?.item) throw new Error('Failed to update bookmark'); return data.item; }

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