Skip to main content
Glama

Watch a cron job

add_heartbeat
Destructive

Add a heartbeat for a scheduled job. Returns ping URLs: success at the end, /start at the beginning, /fail or / on failure. A missed ping alerts the owner. Keep the URLs secret (job config, not public code). Needs write access.

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": {
      "app": "<app>",
      "name": "<name>",
      "grace_minutes": "<grace_minutes>"
    },
    "name": "add_heartbeat"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app: its slug, name, domain (shop.app), URL or id. list_apps shows them all.
cronNoCron expression in UTC, like 0 3 * * *. Use this or every_hours.
nameYesLike “Nightly backup”
every_hoursNoRuns every N hours (0.0167 = every minute). Use this or cron.
grace_minutesYesHow late it may be before BugOtter alerts

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations, it discloses the ping-URL contract (success at end, /start, /fail or /<exit code>), the downstream consequence of a missed ping, a security constraint (keep URLs secret, job config not public code), and the write-access requirement. It does not address what happens on repeated invocation, which matters given idempotentHint=false and destructiveHint=true.

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?

Four short sentences, front-loaded with the action and immediately followed by the return contract. Everything carries information, though the URL-semantics clause is dense and could be split for faster scanning.

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 creation tool with no output schema, the description covers the essential return values, the alerting behavior, secret handling, and auth needs. Gaps are minor: no guidance on re-calling with the same name, and no mention of what the created heartbeat looks like afterwards.

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

Parameters3/5

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

Schema description coverage is 100%, so cron/every_hours/grace_minutes are already fully documented with examples and the 'use this or that' alternative. The description adds only conceptual context (a missed ping triggers an alert), not new parameter-level meaning, which fits the baseline 3.

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 specific verb and resource ('Add a heartbeat for a scheduled job') and even previews the artifact it produces (ping URLs). The create-vs-delete/update distinction is inferable from the sibling names, but the description never names an alternative, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by 'for a scheduled job' plus the alerting framing ('A missed ping alerts the owner'), and 'Needs write access' signals a prerequisite. There is no explicit when-to-use vs when-not guidance and no pointer to delete_heartbeat or update_heartbeat_schedule.

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.

Resources