Skip to main content
Glama

What have I already done in this run?

ratchet_get_run
Read-onlyIdempotent

Retrieve the status and outcomes of a previous run using its run ID to check completed, in-flight, and failed tasks before resuming work.

Instructions

Recall the work already gated under a run id, before doing anything that might repeat it. Call this FIRST when resuming a task — after a restart, a handoff, or when your context has been compacted and you are no longer certain what you did. It returns what succeeded with the recorded results, what is still in flight, what failed, and — separately, because it is the only category that can hurt you — what has an unknown outcome. Anything under "done" has already happened: use its result rather than performing it again. Costs about a seventeenth of the context of listing the same effects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYesThe run id you passed to ratchet_begin_effect for this task.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark this as read-only, idempotent, and non-destructive, but the description adds important behavioral detail: it separates succeeded, in-flight, failed, and unknown outcomes, and flags unknown outcomes as the only category that can hurt the caller. It also discloses the relative cost of listing the same effects, which is valuable for an agent optimizing context usage.

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?

The description is front-loaded with the core instruction, then explains return categories, safety semantics, and cost — all in a compact, well-organized block. Every sentence adds operational value, and the warning about unknown outcomes is placed where it matters.

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?

Despite having no output schema, the description tells the agent what categories of results to expect and how to interpret them. It covers when to call the tool, what it returns, what to avoid repeating, and why the unknown category is important — more than enough for correct invocation.

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%, and the description references the run id's origin ('the run id you passed to ratchet_begin_effect'), adding a small linkage beyond the schema. This is useful but does not substantially extend the parameter meaning; the baseline of 3 is appropriate.

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?

States a specific verb and resource: 'recall the work already gated under a run id.' It clearly distinguishes itself from the broader listing tools by focusing on the run-level view and enumerating the exact outcome categories returned.

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?

The description explicitly says to call this FIRST when resuming a task after restart, handoff, or context compaction, and warns against doing anything that might repeat prior work. This gives an agent a clear trigger condition and operational precedence.

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