Skip to main content
Glama

ohmyho.st

Create or replace one database schedule

database_schedule_set
DestructiveIdempotent

Create or replace a named database schedule in the selected Dev or Prod environment. SQL statements execute as the application's runtime role with row-level security. Write statements must be safe to repeat. Supply exactly one of cron (five-field UTC expression) and every_seconds (60 to 2678400). timeout_ms accepts 1000 to 30000 and defaults to 10000. Replacing a schedule overwrites its definition and requires confirmed: true. A reached Stop budget disables schedules within about an hour and refuses enabled: true with project_budget_exceeded. Restoring a schedule requires its full definition.

Input Schema

NameRequiredDescriptionDefault
cronNoFive-field cron expression evaluated in UTC. Send exactly one of cron or every_seconds.
nameYesDatabase schedule name, unique per project environment.
enabledNo
confirmedYesConfirms that the statements run with the application's runtime role.
project_idYesProject identifier.
statementsYesStatements run in order by the application's runtime role. At most 16 KiB per statement and 64 KiB in total.
timeout_msNo
environmentYesApplication environment the mutation applies to.
every_secondsNoInterval in seconds between runs. Send exactly one of cron or every_seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Well beyond the annotations, which only declare destructive/idempotent/non-read-only: the description discloses that statements execute as the application's runtime role under row-level security, that write statements must be safe to repeat, that replacement destroys the prior definition, and that a reached Stop budget disables schedules within roughly an hour. These are exactly the operational and safety facts an agent needs before calling a destructive upsert.

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?

Six tight sentences, front-loaded with the core action before constraints, and each one carries a distinct fact (execution identity, idempotency requirement, cadence exclusivity, timeout, confirmation, budget). Slightly dense with rule fragments, but there is no filler or restatement of the title.

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 a destructive 9-parameter mutation with no output schema, the description covers execution identity, idempotency, cadence exclusivity, timeout bounds, overwrite/confirmation behavior, and budget failure mode. The only real omission is what the tool returns on success or what project_budget_exceeded implies for retry, which is a minor gap given there is no output schema to lean on.

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?

With 78% schema coverage the schema carries much of the burden, but the description still adds meaning: the exclusive-or between cron and every_seconds, that cron is a five-field UTC expression, the accepted every_seconds and timeout_ms ranges, and the 10000 default. The semantics of confirmed: true as acknowledging runtime-role execution are also spelled out, which the bare const schema does not convey.

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

Purpose4/5

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

"Create or replace a named database schedule in the selected Dev or Prod environment" states a specific verb pair (create/or-replace), the resource (database schedule), and the scope (named, per environment). The upsert framing makes it distinguishable in kind from the list/get/delete/run_now siblings without needing to name them, though it never explicitly points an agent at those alternatives.

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?

It gives real usage context: replacing overwrites the existing definition and requires confirmed: true, restoring needs the full definition, and an exhausted Stop budget will refuse enabled: true with project_budget_exceeded. What it lacks is any explicit routing to siblings (e.g. run_now for immediate execution, get for reading a definition), so the when-to-use-vs-alternative guidance is context rather than a decision rule.

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.