Skip to main content
Glama

screengraph_causal_why

Trace backward through cross-app activity to find why a file, symbol, or error changed, returning the root cause and full evidence chain.

Instructions

Cognitive time-travel debugging: given a file path, symbol or snippet, walk the cross-app causal graph backwards and return the root cause (terminal error, chat message, dashboard anomaly, docs page) and the full evidence chain that led to the edit.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target": "<target>"
    },
    "name": "screengraph_causal_why"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesFile path, symbol, error string or code snippet to explain.
max_depthNoMaximum backward hops.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It discloses the backward graph traversal and describes the return as a root cause plus full evidence chain, but it does not state whether the operation is read-only, what prerequisites exist, or any limits beyond the schema's max_depth. This is useful behavioral context but incomplete for a tool with zero annotation coverage.

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 description is a single front-loaded sentence that quickly moves from the debugging metaphor to the concrete action. It is appropriately sized and mostly free of waste, though the 'Cognitive time-travel debugging' branding is less direct than the operational content that follows.

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

Completeness3/5

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

There is no output schema and no annotations, so the description should explain behavior and returns more fully. It names root-cause categories and the evidence chain, which covers the core return concept, but it does not explain the result structure, prerequisites, or operational constraints. Adequate for a two-parameter tool, but with clear gaps.

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 input schema already documents both target and max_depth. The description repeats the target types but adds no new meaning about max_depth or how depth affects the causal walk. The baseline of 3 is appropriate when the schema does the parameter-level work.

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?

The description states a specific action: walk the cross-app causal graph backwards from a file path, symbol, or snippet and return the root cause plus evidence chain. This is clearly distinguishable from sibling tools like search, timeline replay, and visual search. The metaphor is followed by concrete operational detail, so the tool's purpose is unambiguous.

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?

The phrase 'Cognitive time-travel debugging' and the target examples imply a debugging/root-cause use case, but there is no explicit guidance on when to choose this over siblings such as timeline replay or search. No exclusions or alternatives are provided. Usage is therefore implied rather than stated.

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