Skip to main content
Glama

ohmyho.st

Watch the columns of one table for data events

database_watch_create
DestructiveIdempotent

Create or replace the row-change capture watch for one ordinary application table in the selected Dev or Prod database. Repeating it with different columns or operations replaces the existing trigger and changes which future row values and events are published; this can overwrite an active watch configuration. Only the selected columns (at most 32) are published under the returned data. event type. Historical rows are not emitted and watched columns must not be dropped while active. A sleeping database wakes and normal compute metering applies. Requires confirmed: true and idempotency_key; keep the original key after an uncertain response. A reached Stop budget refuses with project_budget_exceeded.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table": "orders",
      "columns": [
        "id",
        "total"
      ],
      "environment": "dev"
    },
    "name": "database_watch_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesOrdinary table owned by the application, created by a deployed migration.
schemaNoSchema of the table, public when omitted. The schemas pgcf, ohmyhost, information_schema and pg_* cannot be watched.public
columnsYesColumns published with every event, exactly as written; names are case-sensitive.
confirmedYes
operationsNoRow changes that publish an event; all three when omitted.
project_idYesProject identifier.
environmentYes
idempotency_keyYesIdentifies one mutation and its canonical request payload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds substantive context beyond them: it names what gets overwritten (an active watch configuration), that only selected columns are published under a data.<topic> event type, that historical rows are never emitted, that watched columns must not be dropped while active, that a sleeping database wakes and incurs compute metering, and the project_budget_exceeded refusal.

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

Conciseness4/5

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

Front-loaded with the core action and replacement semantics, then progressively adds constraints, side effects, and required-field/error behavior. Three dense sentences carry a lot; a small amount of the wording (the restated 32-column limit, the Dev/Prod mention) is already in the schema.

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?

With eight parameters, two required security/confirmation fields, and no output schema, the description covers the failure modes, side effects, and required inputs an agent needs before calling. Only minor gaps remain, such as what the returned event type name looks like in practice and how the response reports a replacement.

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?

Schema coverage is 75%, so most parameters are already documented structurally; the description still adds the operational meaning of confirmed and idempotency_key ('keep the original key after an uncertain response') and the 32-column publication limit. The environment parameter's Dev/Prod choice is echoed but not enriched.

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?

States a specific verb pair and resource ('Create or replace the row-change capture watch') scoped to 'one ordinary application table in the selected Dev or Prod database'. This lets an agent distinguish it from the sibling watch/delete, watch/list and table-create tools without opening any schema.

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?

Clearly frames this as an upsert: repeating the call with different columns or operations replaces the existing trigger, which tells the agent when this is the right call versus a fresh setup. It does not explicitly route to siblings (e.g. watch_delete for removal or watch_list to inspect an existing watch), which keeps it short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.