Skip to main content
Glama

Working context

crbro_context
DestructiveIdempotent

Read and update a project's working context—active topics and open items—so you can add, resolve, or discard pending tasks and review recent closures.

Instructions

Read or write the working context: active topics and open items. With no change field it reads (written:false) everything: each open item whole with due and done_when, and recently closed. A write returns what changed and the counts (return_context:true for the whole context). Scope: this connection's project plus global items; scope=all spans every project. resolve_pending closes items (the last 15 stay in recently_closed); discard_pending drops them without recording them as done. Prefer ids. Nothing is deleted by age. Sessions are logged by crbro_consolidate.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "crbro_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueNoWith add_pending: a calendar day YYYY-MM-DD, only when agreed.
clearNoEmpty topics, open and closed items (of the project only, when scoped), before the rest.
scopeNoall spans every project.
projectNoProject id or alias; default the boot project.
done_whenNoWith add_pending: an observable completion condition.
set_topicsNoReplace the active topics with these neuron ids.
add_pendingNoAn open item, checkable later. Identical text is deduplicated; re-adding updates due and done_when.
return_contextNoWith a write: return the whole context instead of the change and counts.
discard_pendingNoDrop items, same matcher, without recording them as done.
resolve_pendingNoClose items by id ("p_ab12cd") or 8+ characters of their text; several can match. Empty resolved = no match.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv2.12.0
    • changedInput schema / properties / add_pending / description
      Previous value: -"Add an open item, written so it can be checked later. Identical text is deduplicated within its project; re-adding may update due or done_when."New value: +"An open item, checkable later. Identical text is deduplicated; re-adding updates due and done_when."
    • changedInput schema / properties / clear / description
      Previous value: -"Empty active_topics, pending_tasks and recently_closed. Runs before the other updates in the same call."New value: +"Empty topics, open and closed items (of the project only, when scoped), before the rest."
    • changedInput schema / properties / discard_pending / description
      Previous value: -"Drop an open item by id or 8+ characters of its text WITHOUT recording it as done (it never appears in recently_closed). Same matcher as resolve_pending; matches come back in discarded."New value: +"Drop items, same matcher, without recording them as done."
    • changedInput schema / properties / done_when / description
      Previous value: -"Observable completion condition for add_pending; not an instruction to execute automatically."New value: +"With add_pending: an observable completion condition."
    • changedInput schema / properties / due / description
      Previous value: -"Optional real calendar day YYYY-MM-DD for add_pending."New value: +"With add_pending: a calendar day YYYY-MM-DD, only when agreed."
    • changedInput schema / properties / project / description
      Previous value: -"Registered project id or alias. Omitted uses this connection's boot project."New value: +"Project id or alias; default the boot project."
    • changedInput schema / properties / resolve_pending / description
      Previous value: -"Close an open item by id (e.g. \"p_ab12cd\") or by 8+ characters of its text (case-insensitive substring; several items can close at once). Matches move to recently_closed, newest first, capped at 15. An empty resolved in the reply means nothing matched."New value: +"Close items by id (\"p_ab12cd\") or 8+ characters of their text; several can match. Empty resolved = no match."
    • addedInput schema / properties / return_context
      Added value: +{
      +  "description": "With a write: return the whole context instead of the change and counts.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / scope / description
      Previous value: -"all reads/changes global context; otherwise use the current project when bound. clear in a project never clears other projects."New value: +"all spans every project."
    • changedInput schema / properties / set_topics / description
      Previous value: -"Replace the selected project active-topics list (or global list without a project) with these neuron ids, without merging."New value: +"Replace the active topics with these neuron ids."
  2. Changed6 schema fields changedv2.10.0
    • changedInput schema / properties / add_pending / description
      Previous value: -"Add an open item, written so it can be checked later. Identical text is deduplicated, so re-adding is a safe no-op."New value: +"Add an open item, written so it can be checked later. Identical text is deduplicated within its project; re-adding may update due or done_when."
    • addedInput schema / properties / done_when
      Added value: +{
      +  "description": "Observable completion condition for add_pending; not an instruction to execute automatically.",
      +  "type": "string"
      +}
    • addedInput schema / properties / due
      Added value: +{
      +  "description": "Optional real calendar day YYYY-MM-DD for add_pending.",
      +  "type": "string"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Registered project id or alias. Omitted uses this connection's boot project.",
      +  "type": "string"
      +}
    • addedInput schema / properties / scope
      Added value: +{
      +  "description": "all reads/changes global context; otherwise use the current project when bound. clear in a project never clears other projects.",
      +  "enum": [
      +    "project",
      +    "all"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / set_topics / description
      Previous value: -"Replace the whole active-topics list with these neuron ids (no merge). crbro_consolidate also rewrites it from the session."New value: +"Replace the selected project active-topics list (or global list without a project) with these neuron ids, without merging."
  3. Changed1 schema field changedv2.4.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  4. Changed3 schema fields changedv2.0.0
    • addedInput schema / properties / clear
      Added value: +{
      +  "description": "Empty active_topics, pending_tasks and recently_closed. Runs before the other updates in the same call.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / discard_pending
      Added value: +{
      +  "description": "Drop an open item by id or 8+ characters of its text WITHOUT recording it as done (it never appears in recently_closed). Same matcher as resolve_pending; matches come back in discarded.",
      +  "type": "string"
      +}
    • changedInput schema / properties / set_topics / description
      Previous value: -"Replace the whole active-topics list with these neuron ids (no merge). crbro_session_log also overwrites it."New value: +"Replace the whole active-topics list with these neuron ids (no merge). crbro_consolidate also rewrites it from the session."
  5. Changed3 schema fields changedv1.14.0
    • changedInput schema / properties / add_pending / description
      Previous value: -"Add a pending task"New value: +"Add an open item, written so it can be checked later. Identical text is deduplicated, so re-adding is a safe no-op."
    • changedInput schema / properties / resolve_pending / description
      Previous value: -"Mark a pending task as resolved"New value: +"Close an open item by id (e.g. \"p_ab12cd\") or by 8+ characters of its text (case-insensitive substring; several items can close at once). Matches move to recently_closed, newest first, capped at 15. An empty resolved in the reply means nothing matched."
    • changedInput schema / properties / set_topics / description
      Previous value: -"Set active topics (neuron IDs)"New value: +"Replace the whole active-topics list with these neuron ids (no merge). crbro_session_log also overwrites it."
  6. First observedv1.4.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the definition need not restate the safety profile. The definition usefully adds retention behavior, such as 'the last 15 stay in recently_closed' and 'Nothing is deleted by age'. However, it never explains the destructive `clear` parameter or exactly what 'what changed' contains, which leaves real gaps for a destructive tool.

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 purpose is stated first, and nearly every sentence adds a distinct rule about scope, resolution, retention, or return shape. Phrasing is telegraphic and occasionally dense, and the `clear` behavior is missing entirely, which is a structural gap rather than wasted wording.

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

Completeness4/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 definition rightly describes the return shapes: a write returns the change and counts, with return_context giving the whole context. It also covers scoping and retain-versus-discard semantics for a ten-parameter destructive tool. The undocumented `clear` behavior and the vague 'what changed' payload keep it from being fully 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 description coverage is 100%, so the schema already documents all ten parameters, including due, done_when, return_context, and the matcher behavior of resolve_pending and discard_pending. The definition adds only a little beyond that: 'Prefer ids' and the 15-item recently_closed note. The baseline of 3 is correct because the schema does most of the work.

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 definition uses a specific verb pair and a specific resource, saying it reads or writes the 'working context: active topics and open items'. It also distinguishes this tool from a related tool, noting 'Sessions are logged by crbro_consolidate' rather than by this tool. However, it does not name alternatives for reading or writing items, and its compound read/write nature makes it slightly harder to identify than a single-verb tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear guidance on when the tool reads versus writes: 'With no change field it reads (written:false) everything'. It also explains when to use resolve_pending versus discard_pending and when to use scope=all, and it advises 'Prefer ids'. It does not explicitly say when not to use the tool or name a focused sibling for item-level operations, so a 4 rather than 5 is appropriate.

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