sqlew
v5.4.3Automated ADR (Architecture Decision Records) for AI Coding Agents - MCP server with SQL-backed decision repository
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
decision
Context Management - Store decisions with versioning and metadata. Use action: "help" for documentation.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action |
_sqlew_project | object | Per-call project target (overrides startup detection). Use the "project" tool to obtain a ref. |
constraint
Architectural Rules - Define and manage project constraints with priorities. Use action: "help" for documentation.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action |
_sqlew_project | object | Per-call project target (overrides startup detection). Use the "project" tool to obtain a ref. |
project
Project Resolution - Target a specific project per tool call (desktop AI agents / multi-project). Actions: - current: Show the active project (or unbound status) - resolve: Resolve/register a project by root path or name; returns a stable ref - list: List all registered projects - validate: Check whether a root/name/ref resolves cleanly (read-only) Desktop flow: call project.resolve { root } once, then pass _sqlew_project: { ref } on subsequent decision/constraint calls. Use action: "help" for documentation.
| Parameter | Type | Description |
|---|---|---|
action * | string | Project action to perform |
allow_create | boolean | Allow creating a new project when resolving by name |
name | string | Project name (for resolve, validate) |
ref | string | Stable project ref, e.g. "sqlew_proj_3" (for resolve, validate) |
root | string | Absolute path to the project root (for resolve, validate) |
help
**REQUIRED PARAMETER**: action (must be specified in ALL calls) Help System - Query action documentation, parameters, and workflow guidance Actions: - query_action: Get action documentation with parameters and examples - query_params: Get parameter list only (quick reference) - query_tool: Get tool overview and all actions - workflow_hints: Get common next actions after current action - batch_guide: Get guidance for batch operations - error_recovery: Analyze errors and suggest fixes Use this tool to understand how to use other sqlew tools. Returns only requested information (80-95% token re…
| Parameter | Type | Description |
|---|---|---|
action * | string | Help action to perform |
current_action | string | Current action name (for workflow_hints) |
error_message | string | Error message to analyze (for error_recovery) |
operation | string | Batch operation name in format "tool.action" (for batch_guide) |
target_action | string | Target action name (for query_action, query_params) |
tool | string | Target tool name (for query_action, query_params, query_tool, workflow_hints) |
example
**REQUIRED PARAMETER**: action (must be specified in ALL calls) Example System - Browse and search code examples for sqlew tools Actions: - get: Get examples by tool, action, or topic - search: Search examples by keyword - list_all: List all available examples with filtering Use this tool to find working code snippets. Returns only requested examples (token-efficient).
| Parameter | Type | Description |
|---|---|---|
action * | string | Example action to perform |
action_name | string | Filter by action name (for get, search) |
complexity | string | Filter by complexity: basic|intermediate|advanced (for search, list_all) |
keyword | string | Keyword to search (for search) |
limit | number | Maximum results to return (default: 20, for list_all) |
offset | number | Result offset for pagination (default: 0, for list_all) |
tool | string | Filter by tool name (for get, search, list_all) |
topic | string | Search by topic in title or explanation (for get) |
use_case
**REQUIRED PARAMETER**: action (must be specified in ALL calls) Use Case Catalog - Browse and search complete workflow scenarios Actions: - get: Get complete use case workflow by ID - search: Search use cases by keyword/category - list_all: List all use cases with filtering and pagination Use this tool to learn end-to-end workflows and multi-step operations. Returns workflow steps with executable code examples.
| Parameter | Type | Description |
|---|---|---|
action * | string | Use case action to perform |
category | string | Filter by category (optional for search, list_all) |
complexity | string | Filter by complexity level |
keyword | string | Search keyword - searches title and description (for search) |
limit | number | Maximum results to return (default: 20, for list_all) |
offset | number | Result offset for pagination (default: 0, for list_all) |
use_case_id | number | Use case ID to retrieve (for get) |
suggest
Intelligent decision/constraint suggestion system. Find related decisions by key pattern, tags, or full context. Prevents duplicates and ensures consistency.
| Parameter | Type | Description |
|---|---|---|
action * | string | Suggestion action to perform |
_sqlew_project | object | Per-call project target (overrides startup detection). Use the "project" tool to obtain a ref. |
category | string | Constraint category filter (optional, when target=constraint) |
constraint_text | string | Alias for text parameter (constraint text to search) |
key | string | Decision key (for by_key, by_context, check_duplicate when target=decision) |
layer | string | Layer filter (optional) |
limit | number | Max suggestions (default: 5) |
min_score | number | Minimum relevance score (default: 30) |
priority | number | Priority level (optional) |
tags | array | Tags array (for by_tags, by_context) |
target | string | Target type for suggestions (default: decision) |
text | string | Constraint text to search (for by_key, by_context, check_duplicate when target=constraint) |
queue
Hook queue management - list, clear, remove pending items from .sqlew/queue/pending.json. Use action: "help" for documentation.
| Parameter | Type | Description |
|---|---|---|
action * | string | Queue action to perform |
_sqlew_project | object | Per-call project target (overrides startup detection). Use the "project" tool to obtain a ref. |
index | number | Item index for remove action (0-based) |