Ask Forge

Ask Forge gives an AI assistant tools to read, review, generate and change your SchemaSmith schema packages. You reach them through an MCP server or the ask-forge command line.

Two Interfaces

Ask Forge gives any AI agent a registry of specialized tools for reading, analyzing, generating, and modifying database schemas on every platform SchemaSmith supports. You reach those tools in two ways.

The MCP server

The MCP server is how AI agents such as Claude, Copilot and Cursor reach SchemaSmith's tools. Connect it once, and your AI assistant can chain tools on its own: explore your schema, identify issues, generate fixes, and plan migrations, all in a single conversation. Its executable is ForgeBarrett.Mcp, and every tool name it uses carries the schemasmith_ prefix.

MCP Server Setup has the configuration for each MCP client.

The ask-forge CLI

The standalone command-line interface, ask-forge, works these ways:

  • The interactive REPL. Launch it from a schema product directory and have a conversation. The AI chains tools together, asks clarifying questions, and remembers context across turns.
  • Direct subcommands. Every tool is also a direct command, and none needs an LLM. Use them in scripts and CI pipelines, or when you know exactly what you want.
  • A one-shot question. A question in quotes after ask-forge is answered once, and the CLI exits.

Console & Commands covers the REPL, the subcommands and their options.

Not yet on sale

Ask Forge is a licensed add-on to SchemaSmith Community. It is not yet on sale. These pages describe how it is packaged and how it works.

Capability Groups

Ask Forge's tools fall into these groups. The tools reference describes every tool in each one.

Group What it covers
Explore Browse products, templates, tables, scripts, views, and connections
Analyze Review schemas, plan migrations, trace dependencies, validate structure
Generate Produce table definitions, migration scripts, change suggestions, and portable diagrams, and manage database connections
Modify Create and delete templates; create packages, tables, enum and domain types, sequences and events; rename tables, columns and modeled objects; apply changes; configure delivery, rebuild policy, MySQL and MariaDB partitioning, MariaDB periods and PostgreSQL policies
Deploy Extract from databases, apply schemas, pull table data, build patch packages
Learn Search the knowledge base and view tool execution logs
Discover Find and run any tool by name, including specialized tools not shown by default

Every modification writes JSON that belongs in source control. The Deploy tools run SchemaTongs, SchemaQuench, DataTongs and SchemaShears with the same settings files you would use by hand. Over MCP, a tool is named with the prefix, as in schemasmith_review_schema. On the command line it is a kebab-case subcommand, as in ask-forge review-schema.

Safety Model

Ask Forge sorts its tools into four access tiers. The tiers control what the AI can do:

Tier What it can do Over MCP
Tier 1: ReadOnly Read, browse, analyze, review; cannot change anything Runs without confirmation
Tier 2: Generate Produce suggestions and schemas, manage connections Runs without confirmation
Tier 3: Modify Create, rename, and change schema package files Requires confirm: true
Tier 4: External Run SchemaTongs, SchemaQuench, DataTongs, SchemaShears as subprocesses Requires confirm: true

Over MCP, a Tier 3 or Tier 4 tool runs only when the call carries confirm: true, dry runs included. Reaching one through schemasmith_execute_tool does not skip the check. The guard checks the tool that will actually run, so confirm: true goes in the schemasmith_execute_tool arguments, next to tool_name.

Trust levels apply only to the conversational agent: the REPL and the one-shot question. Observer allows Tier 1 only, Assistant (the default) allows Tiers 1 and 2, and Operator allows every tier. The MCP server and the direct subcommands have none, so there a Tier 3 or Tier 4 tool is something you confirm rather than something you are refused. By default, a direct subcommand asks before it runs a Modify or External tool.

A valid Ask Forge license unlocks all four tiers. Without a license, Ask Forge exits at startup. Trust Levels covers the tiers, trust levels and confirmation in full.

LLM Providers

Direct CLI subcommands and MCP tool invocations need no LLM provider. Only the conversational question-answering mode needs one, and none is active until you set one up. Ask Forge works with hosted APIs such as Anthropic, OpenAI and Azure OpenAI, with a local model through Ollama, and with any OpenAI-compatible endpoint. LLM Providers covers each one.

Documentation

Shape. Strengthen. Succeed.

Free schema-as-code for SQL Server, PostgreSQL, MySQL, and MariaDB.

The source is on GitHub for anyone to read.

Get Started on GitHub