Skip to main content
Glama

end_run

Finish the current goal run by recording a summary of work done, items awaiting human action, and lessons learned. The next run reads this to continue where you left off.

Instructions

Finish the current goal run with a summary: what you did, what waits for the human, what you learned. Required at the end of every run; the next run reads it.

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": {
      "summary": "<summary>"
    },
    "name": "end_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idNoDefaults to the run from get_goal_brief
statusNoA few words on how the goal stands now, shown in its one-line summary in the Goals pane until a later run changes it, e.g. "clean" or "2 PRs awaiting review" (plain text, cut to 40 characters). Set it when the goal's instructions say what it means; leave it out to keep the current one, or pass "" to clear it.
summaryYesWhat you did this run, what is waiting for the human, and anything you learned
run_scopeNoA goal run passes its run id here; anyone else leaves it out.
status_toneNoHow the goal stands by its status, which colours it in the Goals pane: ok (green, e.g. "clean"), attention (yellow, e.g. "PR #12 awaiting review"), problem (red, e.g. a failing check). Only with status; leave it out for no colour.
status_checkNoGive it with status whenever the status describes something outside Quarterdeck that can change without this goal running (a PR awaiting review, an open issue): the scheduler checks it about every 5 minutes and updates the status. Setting or clearing the status later replaces or clears the check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / status_check / additionalProperties
      Removed value: -false
    • addedInput schema / properties / status_check / properties / number / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / status_check / properties / otherwise / additionalProperties / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "status": {
      -        "description": "The new status text",
      -        "type": "string"
      -      },
      -      "tone": {
      -        "description": "Its tone; left out, the status keeps its current tone",
      -        "enum": [
      -          "ok",
      -          "attention",
      -          "problem"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "properties": {
      +      "status": {
      +        "description": "The new status text",
      +        "type": "string"
      +      },
      +      "tone": {
      +        "description": "Its tone; left out, the status keeps its current tone",
      +        "enum": [
      +          "ok",
      +          "attention",
      +          "problem"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / status_check / properties / otherwise / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / status_tone / $ref
      Removed value: -"#/properties/status_check/properties/otherwise/additionalProperties/anyOf/1/properties/tone"
    • addedInput schema / properties / status_tone / enum
      Added value: +[
      +  "ok",
      +  "attention",
      +  "problem"
      +]
    • addedInput schema / properties / status_tone / type
      Added value: +"string"
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose one useful consequence — "the next run reads it" — which is real context an agent could not infer from the schema, but it says nothing about whether the run becomes immovable afterward, whether later run_step calls are rejected, or whether status/status_check are persisted at end time.

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?

Two sentences, both front-loaded: the action and its payload first, the obligation and reason second. No filler, nothing that fails to earn its place.

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?

The tool is moderately complex (6 params, nested status_check), but 100% schema coverage means the description need not re-explain parameters, and no output schema exists. Against that, the description correctly covers the action, the required summary content, the mandatory timing, and the persistence consequence.

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 the schema already documents all six parameters in depth, including the run_id default, status truncation, and status_check polling semantics. The description's summary content list duplicates the schema's summary description almost verbatim, adding no meaning beyond what structured data provides.

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?

"Finish the current goal run with a summary" gives a specific verb (finish) and resource (goal run), plus the three content elements the summary should carry. It is clear on its own, but it never distinguishes itself from the very similar sibling report_run_end, so an agent must guess which of the two closes a run.

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?

"Required at the end of every run" gives a concrete timing condition, which is more than implied usage. However, no alternative is named or excluded (report_run_end, cancel_run, fail_run, run_progress all overlap in the sibling set), so the agent gets a when but no when-not.

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