Skip to main content
Glama

tascan_heartbeat_run

Idempotent

Extend a claimed local run's lease and mark it running (POST /runs/:run_id/heartbeat -> heartbeat_agent_run). ok false with reason not_live means the run is no longer yours -- the sweep expired it, or it was never yours to begin with -- STOP, do not finish it. Never mints a completion or a receipt. Requires agent:dispatch:code. A run outside your org is 404, never 403.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYesThe run ID from tascan_claim_run's response.
instanceYesThe SAME instance string you claimed with -- a mismatch answers not_live.
extend_secondsNoOptional: push expires_at out to now + this many seconds (60-86400) if that is later than the current lease -- never shortens it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare non-readonly, idempotent, non-destructive, closed-world, but the description adds critical context they cannot: the not_live failure semantics, the 404-not-403 cross-org behavior, and the explicit guarantee that no completion/receipt is produced. This is exactly the extra behavioral disclosure annotations cannot carry.

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?

Extremely dense and front-loaded: lease-extension purpose first, then failure semantics, then guarantees, then auth, then error codes. No sentence is filler.

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

Completeness5/5

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

With no output schema, the description fully compensates by describing the success/failure signal ('ok false with reason not_live') and the 404 case, plus the auth scope. An agent has everything needed to call this correctly and interpret the result.

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 run_id, instance, and extend_seconds are already fully documented in the schema, including the same-instance mismatch behavior and the never-shortens lease rule. The description adds no parameter meaning beyond that, so the baseline of 3 applies.

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?

Specific verb+resource with scope: 'Extend a claimed local run's lease and mark it running', plus the underlying endpoint mapping. An agent can distinguish it from tascan_claim_run and tascan_finish_run purely from the text.

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

Usage Guidelines5/5

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

Gives explicit when-not behavior ('ok false with reason not_live ... STOP, do not finish it') and an explicit prerequisite ('Requires agent:dispatch:code'). It also bounds the tool's role by stating it never mints a completion or receipt, which routes completion work elsewhere.

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.