Skip to main content
Glama

report_run_end

Records how a goal run's agent completed a turn, including token usage and final answer; a usage limit pauses goal runs until reset. Plugin-only internal call.

Instructions

Reports how a goal run's agent finished a turn: a usage limit skips the run and holds goal runs until the reset. For the quarterdeck-goals plugin only: agents and the model must not call this.

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": {
      "run_id": "<run_id>",
      "answer": "<answer>"
    },
    "name": "report_run_end"
  }
}

Input Schema

NameRequiredDescriptionDefault
usageNoThe turn's token counts, added to the run
answerYesThe run agent's final message
reasonNoturn.complete's reason, e.g. error
run_idYes
run_scopeNoA goal run passes its run id here; anyone else leaves it out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / usage / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It discloses that a usage limit skips the run and holds goal runs until reset, which is useful, but it omits side-effect, reversibility, auth, and return behavior details.

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?

The description is two sentences, front-loaded with purpose and then the usage restriction. It is compact, though the phrase 'how a goal run's agent finished a turn' is slightly compressed.

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?

For a tool with a nested usage object, no annotations, and no output schema, the description leaves important context unstated: required inputs, side effects, return/ack behavior, and error semantics. The plugin restriction and usage-limit behavior help, but the definition is only minimally complete.

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 coverage is 80%, so the schema already documents most parameters such as usage, answer, reason, and run_scope. The description adds no parameter-level meaning beyond what the schema 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?

The description uses a specific verb and resource: it reports how a goal run's agent finished a turn. It also scopes the tool to the quarterdeck-goals plugin, though it does not explicitly compare it to sibling run tools.

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?

It gives a clear negative rule—agents and the model must not call this—and confines use to the quarterdeck-goals plugin. It does not state the positive calling context or name an alternative, so guidance is adequate but incomplete.

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