Skip to main content
Glama
ShadowGraph

ShadowGraph

Official

shadowgraph_review_context

Load a turn check-in working set of active decisions, open reviews, and suggested questions with synchronized review signal handles, then persist deduplicated signals in a committed revision.

Instructions

Load the turn check-in working set (activeDecisions, openReviews, suggestedQuestions) with synchronized reviewSignalId handles. Use when check-in must persist signals; shadowgraph_context saves no signals; shadowgraph_review also persists signals and returns due items only. Skips closed decisions. Deduplicates owned signals by decision/reason/coverage and commits a revision storing signals; grants widen reads; no status changes.

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": "shadowgraph_review_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
factsNoNon-persisted {key:value} map overriding stored facts for object rules (e.g. {ready:true}); arrays/non-objects error. Unlisted keys read active stored facts; string rules require changedFacts.
limitNoMaximum items per collection, 1-1000, applied to each collection independently. Omit for the default of 50.
grantIdNoAlias for accessId; conflicting identifiers are refused.
projectNoProject or confirmed workspace binding; otherwise origin-only. No identity returns an empty scoped view.
accessIdNoGrant ID, rechecked at use. Widens reads only, never write authority. Presenting it commits a revision and bounded audit (at most one aggregate per grant, surface, outcome and UTC day). Conflicts with grantId are refused.
originIdNoCapture-origin ID for unattributed records when project is omitted.
changedFactsNoNon-persisted string[] of changed fact keys firing plain string reopenWhen rules (e.g. ["budget"]); non-strings error. Symbolic strings ("key >= value") and object rules read values from stored facts or facts overrides instead.

Output Schema

NameRequiredDescriptionDefault
projectYesThe resolved project, or null when unresolved.
openReviewsYesDecisions currently due for reconsideration.
completenessYesPer-collection completeness. context returns several named collections, so one page object cannot describe it.
readProvenanceNoOriginal read bounds; reuse intersects these with currently valid authority.
activeDecisionsYesDecisions in a current, actionable state: proposed, planned, in_progress, executed, validated, or reconsidered.
reusableAttemptsNoAttempts whose reusableWhen conditions all hold now. Worth reconsidering, not authorised to retry.
staleAssumptionsYesFacts that are no longer active, such as superseded or expired ones, which earlier decisions may still rest on.
suggestedQuestionsYesQuestions for the low-confidence decisions in this project.
conditionDiagnosticsNoConditions that could not be settled, or that rest on facts which disagree. Neither a breach nor a confirmed-safe decision.
failedAttemptsToAvoidYesAttempts that failed: resultClass failed or, with none and not captured, a result mentioning failure, regression, or error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.44.5
    • changedOutput schema / description
      Previous value: -"The working set for one project."New value: +"Turn check-in working set with synchronized openReviews signal IDs and suggestedQuestions."
    • changedOutput schema / properties / activeDecisions / items / description
      Previous value: -"A stored decision, including its alternatives and auditable confidence basis."New value: +"A newly recorded decision with its canonical ID, rejected alternatives, and initial confidence basis."
  2. Changed12 schema fields changedv0.44.1
    • changedInput schema / properties / changedFacts / description
      Previous value: -"Non-persisted string[] of changed fact keys firing string reopenWhen rules (e.g. [\"budget\"]); non-strings error. Object rules read values from facts overrides or stored facts instead."New value: +"Non-persisted string[] of changed fact keys firing plain string reopenWhen rules (e.g. [\"budget\"]); non-strings error. Symbolic strings (\"key >= value\") and object rules read values from stored facts or facts overrides instead."
    • addedOutput schema / properties / activeDecisions / items / properties / changeSummary
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Summary of changes from superseded decisions."
      +}
    • addedOutput schema / properties / activeDecisions / items / properties / reopenWhen
      Added value: +{
      +  "description": "Rules recorded directly on the decision that make it reconsiderable.",
      +  "type": "array"
      +}
    • addedOutput schema / properties / activeDecisions / items / properties / tags
      Added value: +{
      +  "description": "Labels or extracted keywords stored with the decision.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / activeDecisions / items / properties / task
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Task or problem context this decision addresses."
      +}
    • addedOutput schema / properties / activeDecisions / items / properties / visibility
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Visibility boundary: project or global."
      +}
    • addedOutput schema / properties / failedAttemptsToAvoid / items / properties / tags
      Added value: +{
      +  "description": "Labels or extracted keywords stored with the attempt.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / failedAttemptsToAvoid / items / properties / task
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Task or problem context this attempt was trying to solve."
      +}
    • addedOutput schema / properties / failedAttemptsToAvoid / items / properties / visibility
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Visibility boundary: project or global."
      +}
    • addedOutput schema / properties / staleAssumptions / items / properties / changeSummary
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Summary of modifications compared to superseded versions."
      +}
    • addedOutput schema / properties / staleAssumptions / items / properties / tags
      Added value: +{
      +  "description": "Labels or extracted keywords stored with the fact.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / staleAssumptions / items / properties / visibility
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Visibility boundary: project or global."
      +}
  3. Changed4 schema fields changedv0.43.6
    • changedInput schema / properties / accessId / description
      Previous value: -"Grant ID, rechecked at use. Widens reads only, never write authority. Presenting an access key commits a revision and bounded operational audit: at most one aggregate per grant, surface, outcome and UTC day. Conflicts with a different grantId are refused."New value: +"Grant ID, rechecked at use. Widens reads only, never write authority. Presenting it commits a revision and bounded audit (at most one aggregate per grant, surface, outcome and UTC day). Conflicts with grantId are refused."
    • changedInput schema / properties / changedFacts / description
      Previous value: -"Ephemeral changed-key signals for string-form reopenWhen rules; not stored facts. Example: changedFacts:[\"budget\"] fires reopenWhen:[\"budget\"]. Object rules instead read values from facts overrides or stored facts."New value: +"Non-persisted string[] of changed fact keys firing string reopenWhen rules (e.g. [\"budget\"]); non-strings error. Object rules read values from facts overrides or stored facts instead."
    • changedInput schema / properties / facts / description
      Previous value: -"Temporary key/value overrides for object rules; unlisted keys use stored facts. Example: facts:{ready:true} tests {key:\"ready\",value:true}. This does not record a fact or fire a string rule; changedFacts supplies those changed-key signals."New value: +"Non-persisted {key:value} map overriding stored facts for object rules (e.g. {ready:true}); arrays/non-objects error. Unlisted keys read active stored facts; string rules require changedFacts."
    • changedInput schema / properties / originId / description
      Previous value: -"Capture-origin id; with no project the record belongs to it alone."New value: +"Capture-origin ID for unattributed records when project is omitted."
  4. Changed2 schema fields changedv0.42.4
    • changedOutput schema / properties / completeness / properties / capture / properties / gaps / items / properties / reason / enum
      Previous value: -[
      -  "maxQueueDepth",
      -  "maxStoreBytes",
      -  "maxItemsPerSession",
      -  "session_in_another_project",
      -  "raw_expired",
      -  "transcript_unrecognised",
      -  "session_left_project",
      -  "transcript_rewritten",
      -  "transcript_reanchored",
      -  "transcript_incomplete_at_end",
      -  "transcript_line_oversized",
      -  "tool_calls_not_captured"
      -]New value: +[
      +  "maxQueueDepth",
      +  "maxStoreBytes",
      +  "maxItemsPerSession",
      +  "session_in_another_project",
      +  "raw_expired",
      +  "prior_setup",
      +  "transcript_unrecognised",
      +  "session_left_project",
      +  "transcript_rewritten",
      +  "transcript_reanchored",
      +  "transcript_incomplete_at_end",
      +  "transcript_line_oversized",
      +  "tool_calls_not_captured"
      +]
    • addedOutput schema / properties / completeness / properties / capture / properties / priorSetup
      Added value: +{
      +  "description": "Unextracted items of no or an earlier setup; never extracted by the current one.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  5. Changed2 schema fields changedv0.42.3
    • changedInput schema / properties / changedFacts / description
      Previous value: -"Fact keys that just changed. Only string-form reopenWhen rules match this list; it is an ephemeral signal, not durable state."New value: +"Ephemeral changed-key signals for string-form reopenWhen rules; not stored facts. Example: changedFacts:[\"budget\"] fires reopenWhen:[\"budget\"]. Object rules instead read values from facts overrides or stored facts."
    • changedInput schema / properties / facts / description
      Previous value: -"Fact key/value overrides evaluated instead of the stored facts of the same key. Stored facts are used for every key not listed here, so reopen rules still work after a restart."New value: +"Temporary key/value overrides for object rules; unlisted keys use stored facts. Example: facts:{ready:true} tests {key:\"ready\",value:true}. This does not record a fact or fire a string rule; changedFacts supplies those changed-key signals."
  6. Changed1 schema field changedv0.42.2
    • changedInput schema / properties / accessId / description
      Previous value: -"Grant ID, rechecked at use."New value: +"Grant ID, rechecked at use. Widens reads only, never write authority. Presenting an access key commits a revision and bounded operational audit: at most one aggregate per grant, surface, outcome and UTC day. Conflicts with a different grantId are refused."
  7. Addedv0.42.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false) by disclosing concrete side effects: it commits a revision storing signals, deduplicates owned signals by decision/reason/coverage, skips closed decisions, bounds audit to one aggregate per grant/surface/outcome/day, and makes no status changes. It also clarifies that grants widen reads only and never confer write authority, which directly explains the non-readOnly, non-idempotent profile.

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 purpose and contents, then usage routing, then behavioral caveats; no sentence is pure filler. The packed semicolon chaining makes it slightly dense to scan, which keeps it short of a 5.

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?

For a complex, multi-parameter mutating tool with an output schema and annotations present, the description covers purpose, alternatives, mutation scope, dedup semantics, and read/write authority boundaries. An agent has everything needed to call it correctly.

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 seven parameters in depth. The description only echoes 'grants widen reads' (already stated in accessId's schema text) and mentions reviewSignalId handles, adding little new parameter meaning beyond the structured data.

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 ('Load') plus the exact resource ('turn check-in working set') and enumerates its contents (activeDecisions, openReviews, suggestedQuestions) with synchronized reviewSignalId handles. It also distinguishes itself from shadowgraph_context and shadowgraph_review, so an agent can pick it without opening sibling schemas.

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?

Explicitly gives the selecting condition ('Use when check-in must persist signals') and names the two nearest alternatives with their differing behaviors: shadowgraph_context saves no signals and shadowgraph_review persists but returns due items only. Both when-to-use and when-not-to-use are covered.

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