sqlew

v5.4.3
sqlew Checked 2 hours ago Published 1 month ago

Automated 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.

ParameterTypeDescription
action *stringAction
_sqlew_projectobjectPer-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.

ParameterTypeDescription
action *stringAction
_sqlew_projectobjectPer-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.

ParameterTypeDescription
action *stringProject action to perform
allow_createbooleanAllow creating a new project when resolving by name
namestringProject name (for resolve, validate)
refstringStable project ref, e.g. "sqlew_proj_3" (for resolve, validate)
rootstringAbsolute 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…

ParameterTypeDescription
action *stringHelp action to perform
current_actionstringCurrent action name (for workflow_hints)
error_messagestringError message to analyze (for error_recovery)
operationstringBatch operation name in format "tool.action" (for batch_guide)
target_actionstringTarget action name (for query_action, query_params)
toolstringTarget 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).

ParameterTypeDescription
action *stringExample action to perform
action_namestringFilter by action name (for get, search)
complexitystringFilter by complexity: basic|intermediate|advanced (for search, list_all)
keywordstringKeyword to search (for search)
limitnumberMaximum results to return (default: 20, for list_all)
offsetnumberResult offset for pagination (default: 0, for list_all)
toolstringFilter by tool name (for get, search, list_all)
topicstringSearch 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.

ParameterTypeDescription
action *stringUse case action to perform
categorystringFilter by category (optional for search, list_all)
complexitystringFilter by complexity level
keywordstringSearch keyword - searches title and description (for search)
limitnumberMaximum results to return (default: 20, for list_all)
offsetnumberResult offset for pagination (default: 0, for list_all)
use_case_idnumberUse 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.

ParameterTypeDescription
action *stringSuggestion action to perform
_sqlew_projectobjectPer-call project target (overrides startup detection). Use the "project" tool to obtain a ref.
categorystringConstraint category filter (optional, when target=constraint)
constraint_textstringAlias for text parameter (constraint text to search)
keystringDecision key (for by_key, by_context, check_duplicate when target=decision)
layerstringLayer filter (optional)
limitnumberMax suggestions (default: 5)
min_scorenumberMinimum relevance score (default: 30)
prioritynumberPriority level (optional)
tagsarrayTags array (for by_tags, by_context)
targetstringTarget type for suggestions (default: decision)
textstringConstraint 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.

ParameterTypeDescription
action *stringQueue action to perform
_sqlew_projectobjectPer-call project target (overrides startup detection). Use the "project" tool to obtain a ref.
indexnumberItem index for remove action (0-based)