adding-llm-mcp-tools
adding-llm-mcp-tools is an MCP server development skill for AI agents, published by TriliumNext in the Trilium repository on GitHub. Skillspace rates adding-llm-mcp-tools C (73/100) and it passed the safety scan; a judge model has also reviewed it.
Use when adding, changing, or reviewing an LLM/MCP tool in Trilium (the `defineTools` definitions under packages/trilium-core/src/services/llm/tools/ — note/attribute/attachment/hierarchy/icon/skill tools) — anything exposed to both the in-app LLM chat and the external MCP server. Covers why `execute` MUST be synchronous (the `NotAPromise<T>` compile guard + better-sqlite3 sync transactions), the `mutates:true`→`getSql().transactional` wiring, the single `allToolRegistries` registration point feeding both consumers, the return-`{error}`-don't-throw contract, the protected/system-note guards, and the `getTool()`/`cls.init()` spec harness. Do NOT use for client-side note UI, ETAPI endpoints, or generic Vitest questions (see writing-unit-tests).
- Grade
- C
- Quality
- 73 / 100
- Safety
- Passed
- GitHub stars
- 37,821
Placed #2 of 6 in the judged category final for MCP server development.
This rating describes the version of the repository we crawled; it may have changed since, so go by its current files.
Our review
- Architecture
- 97 / 100
- Maturity
- Structured: ships references or scripts
- Security scan
- No issues found
- License
- Not declared. Check the repository before reusing it.
Judge review
Placed #2 of 6 in the judged category final for MCP server development.
- Trigger
88 88 - Instructions
92 92 - Specificity
95 95 - Safety
78 78 - Disclosure
48 48 - Maintenance
82 82
Extraordinarily specific, battle-scarred guidance down to line numbers and commit hashes, but it is one dense wall of footguns with no reference split.
Not checked yet
- Category is a classifier prediction; no model has read this skill yet
- No blind task eval yet
- Scope (portable / vendor / repo-internal) not assessed; only the top of each category is read for scope
- Sibling files (scripts, references) not fetched; security scan covers SKILL.md only
Skillspace indexes and rates this skill; it does not host or endorse it. Run third-party skills at your own risk.