agentleFS
adezeadeze/raindrop-mcp/.github/skills/mcp-refactoring/SKILL.md

mcp-refactoring

Skill188 starsChanged 8 months agoMITView on GitHub

Refactoring MCP Tools for Better LLM Integration and Usability

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ensure each resource supports GET (read), and where appropriate, CREATE, UPDATE, DELETE (write) actions.

    line 22
  2. Distinctive:

    Add tool parameters for limit, offset, and sample to all list/search tools.

    line 29
  3. Distinctive:

    Use MCP's sampling capability to advertise this in the server manifest.

    line 30
  4. Distinctive:

    Use the MCP elicitation capability to allow the server to ask clarifying questions or confirmations.

    line 38
  5. Very specific:

    Use a consistent {resource}_{action} pattern (e.g., collection_list, bookmark_create, tag_manage)

    line 44
  6. Distinctive:

    Do the same for bookmarks, tags, highlights

    line 52
  7. Distinctive:

    Ensure every tool and parameter has a clear, concise description

    line 57
  8. Distinctive:

    Use Zod schemas for validation and documentation

    line 58
  9. Distinctive:

    Sampling: Add sample and limit parameters to all list/search tools

    line 79
  10. Distinctive:

    Elicitation: Use MCP's elicitation to prompt for missing/ambiguous info and confirmations

    line 80
  11. Distinctive:

    Consistent Error Handling: Always return structured, descriptive errors

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MCP Refactoring Skill

Guidelines for refactoring Raindrop MCP tools for better LLM integration, usability, and following MCP best practices.

Capabilities: Resources, Sampling, Elicitation

Resources

Expose all major Raindrop entities as MCP resources:

  • collections://all, collections://{id}
  • bookmarks://{id}, tags://all
  • highlights://all, user://info

Implement resource discovery and navigation (list, get, search, children, etc.) using standard MCP resource URIs and methods. Ensure each resource supports GET (read), and where appropriate, CREATE, UPDATE, DELETE (write) actions.

Sampling

For large collections/bookmarks/tags/highlights, implement sampling endpoints:

  • e.g., bookmarks://collection/{id}?sample=10 returns a random or recent sample.
  • Add tool parameters for limit, offset, and sample to all list/search tools.
  • Use MCP's sampling capability to advertise this in the server manifest.

Elicitation

Implement elicitation tools for:

  • Confirming destructive actions (delete, merge, etc.)
  • Requesting missing parameters (e.g., if a required field is omitted, prompt the LLM/user)
  • Use the MCP elicitation capability to allow the server to ask clarifying questions or confirmations.

Streamlining Tools for LLMs

Hierarchical, Predictable Naming

  • Use a consistent {resource}_{action} pattern (e.g., collection_list, bookmark_create, tag_manage)
  • Group related actions under a single tool with an operation parameter where possible (e.g., collection_manage for create, update, delete)

Reduce Redundancy

Collapse similar tools:

  • Merge collection_create, collection_update, collection_delete into collection_manage with an operation parameter
  • Do the same for bookmarks, tags, highlights
  • For read-only actions, keep list, get, and search as separate, simple tools

LLM-Friendly Descriptions

  • Ensure every tool and parameter has a clear, concise description
  • Use Zod schemas for validation and documentation

Example: Refactored Tool Set

Tool NameDescriptionOperations/Params
collection_manageCreate, update, or delete a collectionoperation: create/update/delete
collection_listList all or child collectionsparentId
bookmark_manageCreate, update, delete, move, tag bookmarksoperation, ids, data
bookmark_searchSearch bookmarks with filtersquery, tags, collection, etc.
tag_manageRename, merge, delete tagsoperation, tagNames, newName
highlight_manageCreate, update, delete highlightsoperation, id, data
user_profileGet user info
user_statisticsGet user or collection statscollectionId
import_exportImport/export bookmarks, check statusoperation, format, etc.
diagnosticsServer diagnosticsincludeEnvironment

LLM/AI-Optimized Features

  • Resource URIs: Support direct resource access via URIs (e.g., collections://all)
  • Streaming: For large lists, support streaming or pagination
  • Sampling: Add sample and limit parameters to all list/search tools
  • Elicitation: Use MCP's elicitation to prompt for missing/ambiguous info and confirmations
  • Consistent Error Handling: Always return structured, descriptive errors

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.