MCP Tools Reference

Complete reference for all Quoth MCP tools

Quoth exposes several tools through the Model Context Protocol (MCP). These tools are called automatically by your AI assistant when relevant.

Tools Overview

ToolPurposeAuth Required
quoth_guidelinesGet adaptive guidelines for coding/review/documentationYes
quoth_search_indexSemantic search across documentationYes
quoth_read_docRead full document contentYes
quoth_propose_updateSubmit documentation updatesYes (editor+)
quoth_list_templatesList available templatesYes
quoth_get_templateFetch template structureYes
quoth_read_chunksFetch specific chunksYes
quoth_genesisBootstrap project documentationYes (admin)

quoth_guidelines

Get adaptive guidelines for your current task. Strongly recommended before writing code, reviewing, or documenting.

This tool replaces the need to manually activate personas. Claude can call it autonomously when writing code.

Parameters

ParameterTypeRequiredDescription
modestringYescode, review, or document
fullbooleanNoReturn full guidelines (~500 tokens) instead of compact (~150 tokens)

Modes

ModeUse WhenReturns
codeWriting or editing codePatterns, anti-patterns, trust levels
reviewAuditing existing codeViolation detection, drift vs new pattern
documentCreating/updating Quoth docsTemplate requirements, embedding rules

Example

Get Quoth guidelines for writing code
→ quoth_guidelines({ mode: "code" })

Response (Compact)

## Quoth Guidelines: Code

**STRONGLY RECOMMENDED:** Call `quoth_search_index` before proceeding.

### Core Rules
1. Search first - `quoth_search_index` before coding
2. Trust levels: >80% follow exactly, 60-80% verify, <60% cross-ref
3. Docs = intended design - when code conflicts, docs win
4. Never invent patterns - only use what's documented
5. Templates required - `quoth_get_template` before Quoth updates

### Anti-Patterns
- Assuming patterns without searching
- Inventing patterns not in documentation
- Ignoring LOW trust warnings

quoth_search_index

Performs semantic search across your knowledge base using AI embeddings.

Parameters

ParameterTypeRequiredDescription
querystringYesNatural language search query
limitnumberNoMax results (default: 15)
rerankbooleanNoEnable Cohere reranking (default: true)

Example

Search Quoth for "authentication patterns"

Returns ranked results with relevance scores and content snippets.

quoth_read_doc

Retrieves the full content of a specific document.

Parameters

ParameterTypeRequiredDescription
doc_idstringYesDocument title or path

Example

Read the "testing-patterns" document from Quoth

quoth_propose_update

Submits a documentation update proposal with evidence.

Requires editor or admin role. Viewers cannot propose updates.

Parameters

ParameterTypeRequiredDescription
doc_idstringYesDocument to update
new_contentstringYesProposed new content (full markdown)
evidence_snippetstringYesCode or commit reference
reasoningstringYesWhy this update is needed

quoth_genesis

Bootstraps documentation for a new project. See the Genesis Guide for detailed usage.

Parameters

ParameterTypeRequiredDescription
depth_levelstringNominimal, standard, or comprehensive
focusstringNofull_scan or update_only
language_hintstringNoPrimary language hint

Prompts (Personas)

Recommended: Use quoth_guidelines tool instead of prompts. It provides the same rules with lower token cost (~150 tokens vs ~2,000) and Claude can call it autonomously.

For strict behavioral enforcement, Quoth still provides prompts that configure AI behavior for an entire conversation:

quoth_architect

Enforces "Single Source of Truth" rules. Use before writing code:

/prompt quoth_architect

The AI will automatically search documentation before generating code.

quoth_auditor

Reviews code against documentation. Use for code review:

/prompt quoth_auditor

Distinguishes between violations (bad code) and new patterns (needs documentation).

quoth_documenter

Documents code as you build:

/prompt quoth_documenter

Fetches templates and creates structured documentation immediately.

Quoth Plugin Hooks

When using Claude Code with Quoth connected, lightweight hooks provide automatic hints:

HookOutputTokens
SessionStart"Quoth MCP active. Strongly recommend quoth_guidelines('code') and quoth_search_index before writing code."~25
PreToolUse (Edit/Write)"Quoth patterns available via quoth_guidelines() and quoth_search_index"~15
StopBadge enforcement instruction~20

Badge Format

When you use any quoth_* tools, end your response with:

┌─────────────────────────────────────────────────┐
│ 🪶 Quoth                                        │
│   ✓ patterns/testing-pattern.md (vitest mocks) │
└─────────────────────────────────────────────────┘

Rate Limits

TierRequests/minSearch/day
Free10100
Pro601,000
EnterpriseUnlimitedUnlimited

Rate limits apply per API key. Generate separate keys for different projects to avoid hitting limits.