Skip to main content
Glama

Project context

rbook_context
Destructive

View, update, condense, snapshot, or check the history of project context documents, next steps, and constraints, and search decisions, learnings, and missions to resume work.

Instructions

The record's documents and lists: view the context digest; update, condense, snapshot or history the context documents; next_steps (by nextStepAction) and constraints (by constraintAction); search decisions, learnings and missions. search needs query; snapshot requires source; condense applies unless dryRun=true. New next steps and constraints come from rbook_session capture.

Input Schema

NameRequiredDescriptionDefault
modeNoupdate: manual if contextType/edits supplied; else aggregate
pageNo1-based page
queryNosearch: required
sinceNoISO date
untilNohistory: ISO date
actionYes
dryRunNocondense: preview only
sourceNosnapshot: its label
compactNoview: default true; false adds both documents and every row
pageSizeNoRows per page
sizeOnlyNoview: sizes only
strategyNocondense: how hard to cut
evergreenNoNever shown as past the review age
missionIdNolist/carry: only this mission
sessionIdNo
contextTypeNoDefault master_context, except view/history
nextStepIdsNoshow/complete/drop/reopen: required; carry: omitted/[] means all pending/carried
projectRootNoFolder/rbook:// address; inferred
searchLimitNosearch: default 5
searchTypesNoDefault: decisions only
arrayUpdatesNoAppend to arrays
constraintIdNoreaffirm: id; resets its age
fieldUpdatesNo[{path, value}]
statusFilterNodecisions/learnings only; []=all; default excludes superseded
carryToSprintNoAn existing sprint; omit to park
constraintIdsNoarchive: ids
recencyWeightNosearch: 0-1, default 0.5
nextStepActionNo
nextStepStatusNolist: open unless IDs supplied; show ignores filters
constraintActionNo
constraintStatusNolist: default active
targetSizePercentNocondense: % of size limit; default 60
stalenessThresholdDaysNoreview: days, default 30

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changedv4.7.2
    • addedInput schema / properties / compact / description
      Added value: +"view: default true; false adds both documents and every row"
    • addedInput schema / properties / constraintId / description
      Added value: +"reaffirm: id; resets its age"
    • addedInput schema / properties / constraintIds / description
      Added value: +"archive: ids"
    • addedInput schema / properties / constraintStatus / description
      Added value: +"list: default active"
    • addedInput schema / properties / contextType / description
      Added value: +"Default master_context, except view/history"
    • addedInput schema / properties / dryRun / description
      Added value: +"condense: preview only"
    • addedInput schema / properties / page / description
      Added value: +"1-based page"
    • addedInput schema / properties / pageSize / description
      Added value: +"Rows per page"
    • addedInput schema / properties / query / description
      Added value: +"search: required"
    • addedInput schema / properties / recencyWeight / description
      Added value: +"search: 0-1, default 0.5"
    • addedInput schema / properties / searchLimit / description
      Added value: +"search: default 5"
    • addedInput schema / properties / since / description
      Added value: +"ISO date"
    • addedInput schema / properties / sizeOnly / description
      Added value: +"view: sizes only"
    • addedInput schema / properties / source / description
      Added value: +"snapshot: its label"
    • addedInput schema / properties / stalenessThresholdDays / description
      Added value: +"review: days, default 30"
    • addedInput schema / properties / strategy / description
      Added value: +"condense: how hard to cut"
    • addedInput schema / properties / until / description
      Added value: +"history: ISO date"
  2. Changed4 schema fields changedv4.7.1
    • changedInput schema / properties / arrayUpdates / description
      Previous value: -"Arrays to append to"New value: +"Append to arrays"
    • changedInput schema / properties / fieldUpdates / description
      Previous value: -"[{path, value}] edits"New value: +"[{path, value}]"
    • changedInput schema / properties / nextStepStatus / description
      Previous value: -"list: defaults to open unless IDs supplied; show ignores filters"New value: +"list: open unless IDs supplied; show ignores filters"
    • changedInput schema / properties / projectRoot / description
      Previous value: -"Folder or rbook:// address; inferred"New value: +"Folder/rbook:// address; inferred"
  3. First observedv4.7.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations flag destructiveHint=true, readOnlyHint=false and idempotentHint=false, yet the description never says which actions overwrite or destroy state, whether condense/snapshot/archive are reversible, or what permissions are needed. It adds only the dryRun default for condense, which the schema already documents. For a destructive multi-action tool this is a material disclosure gap, though nothing in the text contradicts the annotations.

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?

A single compact paragraph that front-loads the resource and then the action inventory, with conditional rules clustered at the end – appropriate density for a 33-parameter dispatcher. Minor waste in awkward phrasing such as 'history the context documents', which reads as a verb and costs a beat of comprehension, but overall every clause carries information.

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

Completeness2/5

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

With 8 actions, 33 parameters and no output schema, the description leaves the agent unable to predict what any action returns (view digest, history range, search hits, constraint review) or what side effects update/condense/archive produce. Only three of the eight actions get any behavioral constraint, and pagination/size semantics (page, pageSize, sizeOnly, compact) are untouched. The complexity demands substantially more than this.

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 88%, so per-parameter meaning is largely handled by the schema and the baseline would be 3. The description earns above baseline by stating cross-parameter coupling that no single field description captures: query is required specifically for search, source specifically for snapshot, and condense is dry-run unless dryRun=true. It does not, however, clarify the action-parameter interactions for update, history, or the nextStepAction/constraintAction sub-dispatchers.

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 names the resource ('the record's documents and lists') and enumerates the eight action families (view, update, condense, snapshot, history, next_steps, constraints, search), which lets an agent recognize the tool's scope without opening the schema. It also draws a boundary against rbook_session ('New next steps and constraints come from rbook_session capture'). What keeps it from a 5 is that update/condense/snapshot/history are only restated as verbs, not explained, so the agent learns the names but not what each operation actually accomplishes.

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?

Useful gating rules are given for three actions ('search needs query; snapshot requires source; condense applies unless dryRun=true') and one negative routing hint sends creation of next steps/constraints to rbook_session. However, there is no guidance for the obvious sibling overlaps: why use search here versus rbook_decisions or rbook_learnings, or when to use this tool's next_steps/constraints lists versus the dedicated tools. Usage is implied by the action list rather than explained.

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