Skip to main content
Glama
SignOff Studio MCP server

SignOff Studio MCP server

Save a database check

save_db_check

Saves a read-only SQL check with its expected result to the project so agents or teammates can rerun it; runs the check first and blocks unsafe SQL or overwrites unless allowed.

Instructions

Saves a read-only SQL check with its expectation to database/sql//.sql (the app's SQL file format plus -- expect: and -- params: lines), so db_assert {"check":""} or a teammate can re-run it. Runs it first and reports the result unless verify is false. Refuses non-read SQL and replacing an existing file unless overwrite is true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "sql": "<sql>",
      "expect": "<expect>"
    },
    "name": "save_db_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesOne read-only statement; :name parameters allowed
nameYese.g. "Order is marked paid"
expectYesAll must pass. op: eq neq lt lte gt gte
folderNoSub-folder of database/sql, default "checks"
paramsNo
verifyNoRun it before saving (default true)
overwriteNo
connectionNo

Output Schema

NameRequiredDescriptionDefault
nameYes
pathYes
passedYesResult of the run before saving (null when verify is false)
replacedYes
verifiedYes
connectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description discloses the write target, the file format, the pre-save execution behavior, and the two important refusal conditions: non-read SQL and replacing an existing file without overwrite. This gives an agent the operational context needed to avoid unintended failures.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core action and destination, then moves to runtime behavior and refusal rules. It is compact and every clause adds useful information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with nested expectation objects and an output schema, the description covers the essential storage, execution, and overwrite behavior. It does not explain every parameter such as connection, but the schema and output schema already carry much of that detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaningful semantics beyond the schema by explaining how folder and name determine the destination path, what verify controls, and what overwrite permits. It also clarifies the read-only SQL requirement. With 63% schema coverage, some parameters such as connection are left to the schema, but the main behavioral toggles are explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it saves a read-only SQL check plus expectation. It also names the exact destination path and file format, and links the saved artifact to db_assert, making it clearly distinguishable from execution-only siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the intended use: persisting a check so db_assert or a teammate can re-run it. It also gives clear behavioral conditions: it runs the check unless verify is false, refuses non-read SQL, and refuses overwriting unless overwrite is true. It does not explicitly route agents to an alternative for running existing checks, but the context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.