Skip to main content
Glama

万忆反事实之镜

Set up counterfactual branches at key decisions, auto-settle them when due, and compare actual vs alternative outcomes to sharpen future judgment.

Instructions

护城河#2「反事实之镜」:在关键决策点开平行分支(事实路径 vs 反事实路径),到期自动结算对比。每次BLOCK/CAUTION拦截时自动开立;支持手动open开分支、settle记录实际结果并自动判定verdict(fact_won/counter_won/neutral)、list_open查待结算、list_settled查已结算、auto_check_due自动检查到期。counter_won时自动沉淀入错题本并强化置信度拦截。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNo标签数组
actionNoopen/settle/list_open/list_settled/get/auto_check_dueopen
lessonNosettle可选:手动指定教训
branch_idNo分支ID(settle/get必填)
fact_pathNo事实路径:taken(做了)/avoided(没做)taken
risk_levelNocritical/high/medium/low(影响默认结算天数)medium
counter_pathNo反事实路径描述(不填则根据风险自动生成)
fact_outcomeNosettle必填:实际发生的结果
decision_textNoopen必填:决策点描述
decision_typeNotrade/write/code/otherother
counter_outcomeNosettle可选:反事实结果推算(不填则自动推算)
settlement_daysNo多少天后结算(critical=3天/high=7天/medium=14天/low=30天默认)
confidence_target_idNo关联的置信度检查target_id(拦截联动时自动填)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does it well: it reveals automatic triggers (auto-open on interception), deferred behaviors (auto-settle when due, auto-verdict determination), and cross-tool side effects (counter_won auto-sinks into the error notebook and reinforces confidence interception). It omits output/return behavior and error handling, but the core behavioral traits are disclosed.

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 core mechanism is front-loaded, and each subsequent clause conveys distinct information: trigger condition, manual actions, verdict values, and downstream effects. The opening self-reference ('护城河#2「反事实之镜」') is mild filler, and the single dense run-on sentence is harder for an agent to parse than structured sentences, but nothing is wasted.

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?

For a tool with 13 parameters and 6 actions but no annotations and no output schema, the description covers the open→settle→verdict lifecycle and downstream effects well. However, it omits the 'get' action that appears in the schema's action enum, says nothing about return values or list output shapes for list_open/list_settled, and provides no error or edge-case guidance—gaps an agent cannot fill from structured data.

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 every parameter is already documented in structured form and the baseline applies. The description adds workflow-level semantics (risk_level drives auto-generation of counter_path and settlement days; settle auto-judges verdict from outcomes), but it largely restates what the schema already says rather than adding meaning beyond it.

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 concrete mechanism: opening parallel fact/counterfactual branches at decision points and auto-settling them for comparison. It enumerates the sub-actions (open/settle/list_open/list_settled/auto_check_due), the verdict outcomes (fact_won/counter_won/neutral), and the workflow linkage, which clearly distinguishes it from the sibling memory/experience/confidence tools.

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?

The description gives clear trigger conditions: automatic branch opening on every BLOCK/CAUTION interception, plus manual open at key decision points, and explicit purposes for list_open/list_settled/auto_check_due. It does not name sibling alternatives or state when not to use the tool, which would push this to a 5.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/17861102832/wanyimem'

If you have feedback or need assistance with the MCP directory API, please join our Discord server