Skip to main content
Glama

heartbeat_task

Extend an active lease on a resource to prevent expiration, keeping task claims valid for shared AI workflows.

Instructions

Extend an active lease on a resource so it does not expire.

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": {
      "resource": "<resource>"
    },
    "name": "heartbeat_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNoNew TTL in seconds from now (default 900, max 7200)
resourceYesResource to heartbeat
holder_sessionNoFilled in by the Memro hooks; leave it out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden alone. It explains the effect (extends the lease) and the consequence (prevents expiry), but says nothing about what happens if the lease is not held, has already expired, or whether the call is idempotent or requires ownership.

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?

A single front-loaded sentence with no filler; every word contributes to purpose and effect. The economy is a virtue, though it leaves the definition thinner than a no-annotation tool might warrant.

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?

With 100% schema coverage, three simple parameters, and no output schema, the structured fields cover most of what an agent needs. The missing piece is behavioral: failure modes when the lease is absent or expired, which for a lease-mutation tool with zero annotations is a real gap.

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 ttl, resource, and holder_session are already documented in the input schema, including defaults, max values, and hook injection. The description adds no parameter-level meaning beyond what the schema provides, so the baseline 3 applies.

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 gives a specific verb and resource ('Extend an active lease on a resource') plus the rationale ('so it does not expire'), which is enough for an agent to distinguish it from claim_task or release_task conceptually. It stops short of naming a sibling or stating explicitly that a lease must already be held.

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 'active lease' and 'so it does not expire' — an agent can infer this is for keeping an already-claimed lease alive rather than acquiring one. There is no explicit when/when-not guidance or reference to claim_task as the prerequisite.

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