Skip to main content
Glama
kyle641320

TMF (True Memory Fragments)

tmf_stale_slice

Plan which current source files to re-read after a stored claim turns stale, such as following a merge. Get suggested reads and side-effect checks before editing.

Instructions

Plan which current source to re-read after a stored claim becomes stale, for example after a merge. Use a claim_id previously returned by tmf_context, tmf_retrieve or tmf_explain; do not invent IDs. Returns claim_fresh, per-binding stale status, required_reads with source anchors, retained_fresh_bindings, optional_fresh_neighbors, side_effect_checks and a stop_rule. Read the suggested current source and resolve applicable side-effect checks before editing; retain matching bindings rather than re-reading the whole repository. Reading suggestions are bounded heuristics, not proof of complete dependency coverage. An unknown claim ID raises an error; rediscover the target with tmf_retrieve. This plans reads only: it does not perform edits, refresh the index, or guarantee freshness at a later write. Source is authoritative; fresh does not mean correct.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
claim_idYesExisting stored claim ID, typically retained from an earlier query or tmf_explain result with fresh=false. A missing ID raises an error.
questionNoOptional current development task, e.g. preserve timeout units after a dependency update. Default empty string; task terms help select source-reading suggestions.
max_required_readsNoMaximum required-reading suggestions, default 4; values are clamped to 1–16. A bounded list is not proof that all affected source is covered.
max_optional_neighborsNoMaximum optional fresh-neighbor suggestions, default 4; values are clamped to 0–16. Use 0 to omit optional neighbors.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.1
    • addedInput schema / properties / claim_id / description
      Added value: +"Existing stored claim ID, typically retained from an earlier query or tmf_explain result with fresh=false. A missing ID raises an error."
    • addedInput schema / properties / max_optional_neighbors / description
      Added value: +"Maximum optional fresh-neighbor suggestions, default 4; values are clamped to 0–16. Use 0 to omit optional neighbors."
    • addedInput schema / properties / max_required_reads / description
      Added value: +"Maximum required-reading suggestions, default 4; values are clamped to 1–16. A bounded list is not proof that all affected source is covered."
    • addedInput schema / properties / question / description
      Added value: +"Optional current development task, e.g. preserve timeout units after a dependency update. Default empty string; task terms help select source-reading suggestions."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it enumerates return fields (claim_fresh, required_reads, retained_fresh_bindings, side_effect_checks, stop_rule), states error behavior for unknown IDs, and prominently discloses limits ('bounded heuristics, not proof of complete dependency coverage', 'fresh does not mean correct'). This is unusually rich behavioral disclosure.

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?

Front-loaded with the purpose, then return fields, then usage constraints, so an agent gets the essentials in the first sentence. It is dense but most sentences earn their place; the unknown-claim-ID error is somewhat restated (once as 'do not invent IDs', once as 'an unknown claim ID raises an error'), which costs a point.

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?

There is no output schema, so the description must carry the return contract, and it does — listing the exact returned fields plus the stop_rule and side-effect-check obligations. Combined with the error path and the freshness caveat, nothing an agent needs to invoke and interpret this tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so 3 is the baseline, but the description adds real guidance beyond the schema: claim_id must come from a prior tmf tool and must not be invented, and the task terms in 'question' influence source-reading selection. It does not add syntax detail for the two capped-integer parameters, which the schema already documents well.

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 precise verb and resource: 'Plan which current source to re-read after a stored claim becomes stale.' It names the sibling tools that produce the claim_id (tmf_context, tmf_retrieve, tmf_explain) and clearly scopes itself as read-planning only, distinguishing it from edit or index-refresh siblings.

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 an explicit trigger ('after a stored claim becomes stale, for example after a merge'), an explicit exclusion ('plans reads only: it does not perform edits, refresh the index, or guarantee freshness'), and routes the agent elsewhere on failure ('rediscover the target with tmf_retrieve'). When-to-use, when-not, and alternatives are all present.

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