Skip to main content
Glama

due-check

Read-only

Determine whether a scheduled database job is due by comparing its schedule, last run status, retry defaults, and current time to decide if it should run now.

Instructions

dbabrain common.cli due-check: A schedule and its last run, asked whether it is due. Request fields (pass them as request):

  • time_window: The schedule.

  • row: A store row instead of last_run / last_status.

  • last_run: The previous run's start.

  • last_status: done | error | timeout | running.

  • now: The instant to judge at (UTC).

  • local_now: The same in local time - checks the hours.

  • retry_default: The app's retry fallback.

  • timeout_default: The app's timeout fallback.

  • default_repeat: The app's interval fallback.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "due-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds genuine context beyond that: `row` substitutes for last_run/last_status, `now` is the UTC judgement instant while `local_now` drives hour checks, and retry/timeout/repeat defaults are app-level fallbacks. What it never discloses is the actual decision rule for 'due' or how conflicting inputs (row vs last_run) are resolved.

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?

One front-loaded purpose sentence followed by a scannable field glossary; every line maps to a request key and there is no filler. The terseness is a vagueness problem, not a verbosity problem.

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

Completeness3/5

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

An output schema exists, so the return value needn't be explained, and all request fields are named. Still, the central semantics – how 'due' is computed and what happens when `row` and `last_run`/`last_status` are both supplied – are absent, which is a real gap for a judgement tool.

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 0% – the only parameter is an undocumented free-form `request` object – so the description must carry the full burden and largely does, enumerating all eight request fields and explaining each. The explanations are thin (e.g. 'time_window: The schedule.' gives no expected shape), which keeps it below 5.

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?

The description states a concrete predicate: given a schedule and its last run, decide whether it is due. That is specific enough to distinguish it from sibling list/describe/status tools. It falls short of 5 because the phrasing is nominal rather than verb-led and never explicitly contrasts itself with any sibling such as list-jobs.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus alternatives, no prerequisites, and no exclusions. The purpose sentence implies the calculation scenario, but an agent must infer the trigger condition on its own.

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

Deploy Server

Other Tools