ZeroWidth Ledger

Log decisions with expectations, add evidence, and track metrics in Ledger.

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
92%
命名の品質
82%
ポイズニングのリスク
100%
権限の一致
90%
プロトコルへの準拠
100%

検出事項(1)

  • LOWTool 'entity_tags_browse' suggests web access but openWorldHint=falseentity_tags_browse 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~14,046トークン数(ツール定義)
~2.7 KB一般的なレスポンスサイズ
注意への影響は大きい(128k コンテキストの 10.97%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "ledger": {
      "url": "https://api.zerowidth.ai/mcp/x/ledger"
    }
  }
}

リモートエンドポイント

https://api.zerowidth.ai/mcp/x/ledgerstreamable-http

できること

ツール一覧

ツール(40)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢search_docs(query, limit)

Search ZeroWidth product documentation. Returns matching pages with title, slug, public URL, and a query-relevant snippet. Use this when the user asks about a ZeroWidth product (Compass, Workbench, Caliper, Prism, Ledger, Napkin, zv1), an API behavior, or a policy. No authentication required — the docs corpus is public.

入力スキーマ

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Search query — keywords or natural-language phrase."
    },
    "limit": {
      "default": 10,
      "description": "Max number of results. Defaults to 10.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 20
    }
  },
  "required": [
    "query"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_doc(slug)

Fetch the full Markdown body of a specific docs page by its slug. Use this after `search_docs` when the user needs the complete content of a page. No authentication required.

入力スキーマ

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "description": "Page slug. Accepts 'compass/api', '/compass/api', or 'docs/compass/api'."
    }
  },
  "required": [
    "slug"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_docs(product)

Enumerate all available docs pages, optionally filtered by product (e.g. 'compass', 'legal', 'overview'). Use this to discover what slugs exist before calling `get_doc`. No authentication required.

入力スキーマ

{
  "type": "object",
  "properties": {
    "product": {
      "description": "Optional product slug filter (e.g. 'compass', 'legal', 'overview').",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢ledger_entries_list(status, origin, kind, compassPageId, q, ...)

The workspace's memory: decisions (changes with pre-registered expectations), lessons (distilled beliefs), and observations (captured facts). CONSULT BEFORE ACTING — before proposing a flow change, prompt edit, or process decision, filter by the Compass page it touches (compassPageId) and check whether prior attempts exist and how they settled. Filter status=open for unsettled expectations awaiting evidence (each carries a derived `lapsed` flag — true when its deadline has passed; surface lapsed ones when the user asks what needs attention); kind=lesson for what the team already believes.

入力スキーマ

{
  "type": "object",
  "properties": {
    "status": {
      "description": "Filter by lifecycle state (open = awaiting evidence).",
      "type": "string",
      "enum": [
        "draft",
        "open",
        "settled",
        "superseded"
      ]
    },
    "origin": {
      "description": "Filter by who wrote it (manual, workbench, …).",
      "type": "string",
      "enum": [
        "manual",
        "workbench",
        "caliper",
        "compass",
        "prism",
        "room",
        "assistant",
        "import"
      ]
    },
    "kind": {
      "description": "Filter by species: decision (pre-registered expectations), lesson (distilled beliefs), observation (captured facts).",
      "type": "string",
      "enum": [
        "decision",
        "lesson",
        "observation",
        "belief"
      ]
    },
    "compassPageId": {
      "description": "Compass page id — every decision touching that workflow / system / person.",
      "type": "string"
    },
    "q": {
      "description": "Free-text search across an entry's summary, rationale, and lesson (case-insensitive). Use it to find the entry about a topic before acting.",
      "type": "string"
    },
    "cursor": {
      "description": "Pagination cursor from a prior page.",
      "type": "string"
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢ledger_entries_get(entryId, workspace)

One entry's full anatomy — the six fields, attached evidence (Caliper runs, measurements, observations), and the supersede chain (what replaced it, or what it replaced). Cite entry ids when telling the user about prior related decisions.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entryId": {
      "type": "string",
      "description": "Entry id (from ledger_entries_list)."
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    }
  },
  "required": [
    "entryId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴ledger_entries_create(kind, summary, rationale, prediction, lesson, ...)

Records a memory entry. Every entry is a TITLE (`summary`: one short plain sentence) over a BODY (`rationale`: the detail, markdown welcome) — never put the detail in the title. Three kinds: `decision` — a change being made now; PRE-REGISTRATION IS THE POINT, so `prediction` (what we expect) must be written NOW, before any evidence exists, and never backfilled to match an outcome. `lesson` — a distilled belief the team already holds (`lesson` text required, no prediction). `observation` — a durable fact worth remembering (no prediction): something already true, never something planned. Ideas, pitches, backlog items, and upcoming work are NOT entries — a dated piece of work that carries out a decision is a plan item (ledger_plan_add on that decision), and a running list you keep across runs belongs in a Napkin doc or sheet. When a user states something durable about their business in conversation, offer to capture it as a lesson or observation. When a user shares MEETING NOTES, propose the decisions you find with ledger_entries_draft so they keep or drop each one in Ledger; use this tool for an entry they've asked you to record. Link the Compass pages the entry touches so future consult-before-acting finds it. May return `needs_confirmation` — summarize the entry and wait for approval.

入力スキーマ

{
  "type": "object",
  "properties": {
    "kind": {
      "default": "decision",
      "description": "decision = a change with a pre-registered expectation; lesson = a belief arriving already settled; observation = a fact that is already true (not a plan, idea, or pitch).",
      "type": "string",
      "enum": [
        "decision",
        "lesson",
        "observation",
        "belief"
      ]
    },
    "summary": {
      "type": "string",
      "minLength": 1,
      "maxLength": 280,
      "description": "The entry's TITLE: one short plain sentence naming what we did (decision) or the fact itself (lesson, observation). Plain text, no markdown, at most 280 characters — e.g. \"Newsletter moves to a biweekly cadence\". Everything longer goes in rationale."
    },
    "rationale": {
      "description": "The entry's BODY: the detail under the title — why, context, lists, steps. Markdown is fine here and renders as formatted text.",
      "type": "string",
      "maxLength": 4000
    },
    "prediction": {
      "description": "Decisions ONLY. What we expect: a list of `claims` plus one shared `deadline`, or `freeform` for room decisions nothing can settle. A claim either REACHES a value (comparator + target, e.g. CTA clicks >= 400) or HOLDS one (`hold`, e.g. newsletter reads no more than 5% below the 28 days before this). Name every number the change is expected to move AND every number it shouldn't cost — a decision that claims only what it hopes will rise gets to pick its own evidence. Set `watch: true` on a number worth following that the decision isn't committing to. When the change aims at part of an event metric (\"new users in Germany\"), narrow the claim with `slice` ({ country: [\"DE\"] }) using label values from ledger_metrics_get — a claim on an event metric settles on the total counted since landing (reach) or events per day (hold).",
      "type": "object",
      "properties": {
        "claims": {
          "default": [],
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "enum": [
                  "caliper_eval",
                  "metric",
                  "manual"
                ]
              },
              "evalId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "metricId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "slice": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_]{0,39}$"
                },
                "additionalProperties": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                }
              },
              "comparator": {
                "type": "string",
                "enum": [
                  ">=",
                  "<=",
                  ">",
                  "<",
                  "="
                ]
              },
              "target": {
                "type": "number"
              },
              "unit": {
                "type": "string",
                "maxLength": 50
              },
              "hold": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "pre_landing"
                  },
                  "days": {
                    "default": 28,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  },
                  "maxDrop": {
                    "default": 0,
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "maxRise": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  }
                },
                "required": [
                  "kind"
                ]
              },
              "watch": {
                "type": "boolean"
              }
            },
            "required": [
              "source"
            ]
          }
        },
        "deadline": {
          "type": "string",
          "maxLength": 40
        },
        "freeform": {
          "type": "string",
          "maxLength": 2000
        }
      }
    },
    "lesson": {
      "description": "What we learned — required for kind=lesson, optional for kind=observation, forbidden on decisions (their lesson is written at settlement).",
      "type": "string",
      "maxLength": 4000
    },
    "compassPageIds": {
      "description": "Where — Compass page ids this decision touches.",
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "description": "Approval id from a prior needs_confirmation envelope.",
      "type": "string"
    }
  },
  "required": [
    "summary"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴ledger_entries_settle(entryId, lesson, verdict, workspace, approvalId)

The ritual moment: evidence has landed, the expectation closes, the lesson is written. Only propose settlement when attached evidence actually answers the prediction — check `ledger_entries_get` first and cite the evidence in the lesson. `lesson` (what we now believe) is required and permanent; settlement happens exactly once. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entryId": {
      "type": "string",
      "description": "The open entry to settle."
    },
    "lesson": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "What we now believe — the distilled, citable lesson."
    },
    "verdict": {
      "description": "Did the pre-registered expectation hold? `confirmed` every claim came out as hoped, `missed` none did, `mixed` some did and some didn't. Mixed is not a softer miss — \"it worked and it cost us something\" is usually the most informative result a change can produce, so use it rather than rounding to either side. Only when the entry carries an expectation and the evidence gives a clear answer.",
      "type": "string",
      "enum": [
        "confirmed",
        "mixed",
        "missed"
      ]
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "entryId",
    "lesson"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢ledger_metrics_list(workspace)

The numbers the workspace watches — each with unit, latest reading, and how many open decisions are bound to it. Consult when a user mentions a number that sounds like a tracked metric, and before recording a reading.

入力スキーマ

{
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡ledger_metrics_create(name, unit, description, icon, level, ...)

Create a metric — a number the workspace watches (triage time, weekly signups, cost per run). Check ledger_metrics_list first; names are unique per workspace. When a user says they want to track or measure something, offer this. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "e.g. \"Triage time\"."
    },
    "unit": {
      "description": "Display unit — \"min\", \"%\", \"$\", \"tickets/day\".",
      "type": "string",
      "maxLength": 50
    },
    "description": {
      "description": "What the number means and where it comes from.",
      "type": "string",
      "maxLength": 2000
    },
    "icon": {
      "description": "The thing the number counts, e.g. phone for calls, landmark for profit.",
      "type": "string",
      "enum": [
        "chart-line",
        "dollar-sign",
        "banknote",
        "landmark",
        "piggy-bank",
        "wallet",
        "coins",
        "receipt",
        "percent",
        "badge-percent",
        "calculator",
        "chart-pie",
        "trending-up",
        "trending-down",
        "users",
        "user-plus",
        "user-minus",
        "user-check",
        "contact",
        "phone",
        "handshake",
        "target",
        "trophy",
        "magnet",
        "megaphone",
        "mail",
        "search",
        "globe",
        "share-2",
        "mouse-pointer-click",
        "store",
        "tag",
        "calendar",
        "clock",
        "timer",
        "hourglass",
        "activity",
        "server",
        "bug",
        "rocket",
        "package",
        "boxes",
        "truck",
        "undo-2",
        "inbox",
        "headphones",
        "life-buoy",
        "repeat",
        "list-checks",
        "clipboard-check",
        "shield",
        "shield-alert",
        "lock",
        "file-text",
        "scale",
        "briefcase",
        "graduation-cap",
        "smile",
        "heart",
        "star",
        "message-circle",
        "cpu",
        "bot",
        "wrench",
        "layers",
        "link",
        "crosshair"
      ]
    },
    "level": {
      "description": "outcome = what the business is judged on; driver = moves an outcome; activity = daily work.",
      "type": "string",
      "enum": [
        "outcome",
        "driver",
        "activity"
      ]
    },
    "drives": {
      "description": "Ids of existing metrics this one moves.",
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡ledger_metrics_record_reading(metricId, createIfMissing, value, at, note, ...)

Record one observation of a tracked metric. `metricId` accepts a metric id OR its snake_case slug from ledger_metrics_list; an unknown one is a not_found error — check ledger_metrics_list, create it with ledger_metrics_create, or pass `createIfMissing: true` to mint a "measure" metric at that slug in the same call (an "event" metric when the reading carries `labels`). The reading automatically lands as evidence on every open decision whose prediction is bound to this metric — so when a user reports a number ("triage is down to 12 minutes"), offer to record it. For event-kind metrics, omit `value` to count one occurrence. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "metricId": {
      "type": "string",
      "description": "Metric id or slug (from ledger_metrics_list)."
    },
    "createIfMissing": {
      "description": "Mint the metric when the slug is unknown. Default false — an unknown slug is an error, so a typo can't quietly start a second series.",
      "type": "boolean"
    },
    "value": {
      "description": "The observed value, in the metric's unit. Omit for event-kind metrics to record one occurrence.",
      "type": "number"
    },
    "at": {
      "description": "ISO timestamp the reading is for. Defaults to now; set it when backfilling an earlier reading.",
      "type": "string"
    },
    "note": {
      "description": "Where the number came from, if worth recording.",
      "type": "string",
      "maxLength": 1000
    },
    "key": {
      "description": "Idempotency key (e.g. \"2026-w32\") — a repeat write with the same key returns the original reading instead of doubling the series. Use for scheduled/recurring recordings. The key is per set of labels, so one key per day can cover every country.",
      "type": "string",
      "maxLength": 120
    },
    "labels": {
      "description": "Event metrics only. What this count is broken down by, e.g. { country: \"DE\", plan: \"pro\" } — snake_case names, string values. Lets the metric be read and claimed by slice later. Refused on a measure.",
      "type": "object",
      "propertyNames": {
        "type": "string",
        "pattern": "^[a-z][a-z0-9_]{0,39}$"
      },
      "additionalProperties": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      }
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "metricId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢ledger_metrics_get(metricId, slice, by, bucket, workspace)

One metric's definition (unit, kind, direction, target, cadence) plus its readings newest first and the open decisions bound to it. Use before answering 'how is X trending?' or before recording a reading against it. `metricId` accepts the id or the snake_case slug from ledger_metrics_list. For an event metric whose readings carry labels, `labels` lists each label and its values, largest total first. Pass `slice` to get the series for part of it ("new users in DE"), or `by` to split the series by one label ("new users by country"); either returns `series`, summed per `bucket`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "metricId": {
      "type": "string",
      "description": "Metric id or slug (from ledger_metrics_list)."
    },
    "slice": {
      "description": "Event metrics only. Per label, the values to keep: { country: [\"DE\", \"AT\"] } keeps readings from DE or AT; several labels must all match. Names and values come from `labels`.",
      "type": "object",
      "propertyNames": {
        "type": "string",
        "pattern": "^[a-z][a-z0-9_]{0,39}$"
      },
      "additionalProperties": {
        "minItems": 1,
        "maxItems": 50,
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        }
      }
    },
    "by": {
      "description": "Event metrics only. A label name to split the series by.",
      "type": "string"
    },
    "bucket": {
      "description": "Series bucket when `slice` or `by` is set. Default week.",
      "type": "string",
      "enum": [
        "day",
        "week",
        "month"
      ]
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    }
  },
  "required": [
    "metricId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴ledger_entries_update(entryId, summary, rationale, prediction, facet, ...)

Corrects an entry in place — its title (summary), body (rationale), the pre-registered prediction of an OPEN decision (null clears it), or its facet (filing category; editable even after settlement). Works on open decisions, and on lessons, observations, and beliefs (they carry no expectation, so fixing their wording is fine any time). Use to fix a typo, swapped fields, or a misrecorded detail. Never edits kind or lesson. Fails with conflict on a settled decision — its claim is corrected by a human superseding it in Ledger — and on superseded or retracted entries. Entry ids come from ledger_entries_list. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entryId": {
      "type": "string",
      "description": "The entry to edit: an open decision, or a lesson / observation / belief."
    },
    "summary": {
      "description": "New title: one short plain sentence, no markdown, at most 280 characters.",
      "type": "string",
      "minLength": 1,
      "maxLength": 280
    },
    "rationale": {
      "description": "New body: the detail under the title; markdown is fine.",
      "type": "string",
      "maxLength": 4000
    },
    "prediction": {
      "description": "Replacement expectation (claims + deadline, or freeform), or null to clear it. Correcting a misrecorded expectation is fine; rewriting one to match what happened is not.",
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "claims": {
              "default": [],
              "maxItems": 10,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "source": {
                    "type": "string",
                    "enum": [
                      "caliper_eval",
                      "metric",
                      "manual"
                    ]
                  },
                  "evalId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "metricId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "slice": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,39}$"
                    },
                    "additionalProperties": {
                      "minItems": 1,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      }
                    }
                  },
                  "comparator": {
                    "type": "string",
                    "enum": [
                      ">=",
                      "<=",
                      ">",
                      "<",
                      "="
                    ]
                  },
                  "target": {
                    "type": "number"
                  },
                  "unit": {
                    "type": "string",
                    "maxLength": 50
                  },
                  "hold": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "pre_landing"
                      },
                      "days": {
                        "default": 28,
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365
                      },
                      "maxDrop": {
                        "default": 0,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "maxRise": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ]
                  },
                  "watch": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "source"
                ]
              }
            },
            "deadline": {
              "type": "string",
              "maxLength": 40
            },
            "freeform": {
              "type": "string",
              "maxLength": 2000
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "facet": {
      "description": "Filing facet; empty string = unassigned.",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "product",
            "pricing",
            "gtm",
            "sales",
            "people",
            "ops",
            "tooling",
            "finance",
            "positioning",
            "risk"
          ]
        },
        {
          "type": "string",
          "const": ""
        }
      ]
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "description": "Approval id from a prior needs_confirmation envelope.",
      "type": "string"
    }
  },
  "required": [
    "entryId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴ledger_entries_retract(entryId, workspace, approvalId)

Takes an entry out of the curated ledger — THE remedy when you recorded something wrong (a decision that wasn't made, a duplicate, a fact the user corrects). Reversible from Ledger and fully audited, so it is safe to offer as soon as the user says 'that's not right'. Not for overturning a settled claim the team once believed — a human supersedes that. Fails with conflict if already retracted. Ids come from ledger_entries_list. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entryId": {
      "type": "string",
      "description": "The entry to retract."
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "description": "Approval id from a prior needs_confirmation envelope.",
      "type": "string"
    }
  },
  "required": [
    "entryId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡ledger_entries_add_evidence(entryId, kind, summary, refId, data, ...)

Records what happened against an open decision — a manual observation the user reports ('the pilot team says triage feels faster'), an implementation note, or a reference to a Caliper run. Evidence is what settlement later reads, so attach it as it arrives and cite it in the lesson. Metric readings attach themselves via ledger_metrics_record_reading — don't duplicate them here. Fails with conflict on superseded entries. Ids come from ledger_entries_list. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entryId": {
      "type": "string",
      "description": "The entry the evidence is about."
    },
    "kind": {
      "default": "manual",
      "description": "Usually `manual`; `caliper_eval_run` with refId for a run; `implementation` when the change shipped.",
      "type": "string",
      "enum": [
        "caliper_eval_run",
        "manual",
        "metric_reading",
        "implementation",
        "task_run",
        "verbatim",
        "source"
      ]
    },
    "summary": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "What happened, in one or two sentences."
    },
    "refId": {
      "description": "Source record id (a Caliper run id, …) when there is one.",
      "type": "string",
      "maxLength": 100
    },
    "data": {
      "description": "Structured detail worth keeping with the summary.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "description": "Approval id from a prior needs_confirmation envelope.",
      "type": "string"
    }
  },
  "required": [
    "entryId",
    "summary"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴ledger_metrics_update(metricId, name, unit, description, kind, ...)

Corrects a metric's name, unit, description, kind (measure / event), direction (which way is good), target, cadence, icon, level, or the metrics it drives (its place in the metric tree). Readings are untouched. Only what you pass changes. The slug is not editable here — external writers address metrics by slug. Fails with conflict when a rename collides with a live metric. `metricId` is the id from ledger_metrics_list. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "metricId": {
      "type": "string",
      "description": "Metric id (from ledger_metrics_list)."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "unit": {
      "description": "\"min\", \"%\", \"$\", \"tickets/day\".",
      "type": "string",
      "maxLength": 50
    },
    "description": {
      "type": "string",
      "maxLength": 2000
    },
    "kind": {
      "description": "measure = a value each reading; event = a count of occurrences.",
      "type": "string",
      "enum": [
        "measure",
        "event"
      ]
    },
    "direction": {
      "description": "up = higher is better, down = lower is better, none.",
      "type": "string",
      "enum": [
        "up",
        "down",
        "none"
      ]
    },
    "target": {
      "description": "Goal value in the metric's unit; null clears.",
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "cadence": {
      "description": "How often a reading is expected.",
      "type": "string",
      "enum": [
        "",
        "daily",
        "weekly",
        "monthly",
        "quarterly"
      ]
    },
    "icon": {
      "description": "The mark the metric wears in every tool: the thing it counts (phone for calls, landmark for profit). \"\" goes back to the catalog's icon.",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "chart-line",
            "dollar-sign",
            "banknote",
            "landmark",
            "piggy-bank",
            "wallet",
            "coins",
            "receipt",
            "percent",
            "badge-percent",
            "calculator",
            "chart-pie",
            "trending-up",
            "trending-down",
            "users",
            "user-plus",
            "user-minus",
            "user-check",
            "contact",
            "phone",
            "handshake",
            "target",
            "trophy",
            "magnet",
            "megaphone",
            "mail",
            "search",
            "globe",
            "share-2",
            "mouse-pointer-click",
            "store",
            "tag",
            "calendar",
            "clock",
            "timer",
            "hourglass",
            "activity",
            "server",
            "bug",
            "rocket",
            "package",
            "boxes",
            "truck",
            "undo-2",
            "inbox",
            "headphones",
            "life-buoy",
            "repeat",
            "list-checks",
            "clipboard-check",
            "shield",
            "shield-alert",
            "lock",
            "file-text",
            "scale",
            "briefcase",
            "graduation-cap",
            "smile",
            "heart",
            "star",
            "message-circle",
            "cpu",
            "bot",
            "wrench",
            "layers",
            "link",
            "crosshair"
          ]
        },
        {
          "type": "string",
          "const": ""
        }
      ]
    },
    "level": {
      "description": "outcome = what the business is judged on; driver = a number that moves an outcome; activity = daily work. \"\" unplaces it.",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "outcome",
            "driver",
            "activity"
          ]
        },
        {
          "type": "string",
          "const": ""
        }
      ]
    },
    "drives": {
      "description": "Ids of the metrics this one moves. Replaces the current set; pass the full list. Loops are refused.",
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "description": "Approval id from a prior needs_confirmation envelope.",
      "type": "string"
    }
  },
  "required": [
    "metricId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴ledger_metrics_archive(metricId, archived, workspace, approvalId)

Takes a metric out of the gallery (`archived: true`) or puts it back (`false`). Readings stay, and entries that settled against it still read correctly — this is the cleanup for a metric minted once and abandoned, or one the workspace stopped watching. `metricId` accepts the id or slug from ledger_metrics_list. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "metricId": {
      "type": "string",
      "description": "Metric id or slug (from ledger_metrics_list)."
    },
    "archived": {
      "type": "boolean",
      "description": "true to archive, false to restore."
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "description": "Approval id from a prior needs_confirmation envelope.",
      "type": "string"
    }
  },
  "required": [
    "metricId",
    "archived"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢ledger_plan_list(entryId, from, to, ownerUserId, tag, ...)

Pass `entryId` for one decision's plan items, or `from` + `to` (YYYY-MM-DD, at most about a year apart) for the calendar: decision spans (recorded day → expectation deadline) plus every dated item inside the window, including standalone dates with no decision. Filter the calendar by `ownerUserId` to answer 'what's mine this week' or to find tomorrow's items to draft. Never use it to compare or rank people's output.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entryId": {
      "description": "One decision's plan.",
      "type": "string"
    },
    "from": {
      "type": "string",
      "description": "A calendar day, YYYY-MM-DD."
    },
    "to": {
      "type": "string",
      "description": "A calendar day, YYYY-MM-DD."
    },
    "ownerUserId": {
      "description": "Only items owned by this member.",
      "type": "string"
    },
    "tag": {
      "description": "Only items with this tag (blog, video, event…).",
      "type": "string"
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡ledger_plan_add(entryId, title, dueOn, startTime, endTime, ...)

Adds a plan item to an OPEN decision (the work that carries it out: a post, a launch step, an email). Omit entryId for a standalone date (a holiday, an event you're only watching). Items are all-day unless you pass startTime with timeZone (and optionally endTime), for a webinar, a scheduled post, or a launch at noon. If the date costs money or time and comes with an expectation, record it as a decision with ledger_entries_create instead. Use repeatWeeklyUntil for a weekly cadence: it writes one row per week (max 60), each movable on its own. Fails with conflict once the decision is settled. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entryId": {
      "description": "The open decision this carries out.",
      "type": "string"
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300
    },
    "dueOn": {
      "type": "string",
      "description": "A calendar day, YYYY-MM-DD."
    },
    "startTime": {
      "description": "Omit for an all-day item. 24-hour HH:MM in timeZone.",
      "type": "string"
    },
    "endTime": {
      "description": "Same-day end, after startTime.",
      "type": "string"
    },
    "timeZone": {
      "description": "IANA zone the time is in (America/Chicago). Required with startTime; use the user's own zone.",
      "type": "string"
    },
    "repeatWeeklyUntil": {
      "description": "Also add a copy every 7 days through this day.",
      "type": "string"
    },
    "ownerUserId": {
      "description": "A workspace member's user id.",
      "type": "string"
    },
    "url": {
      "description": "Where the work lives (draft, deck, published post).",
      "type": "string"
    },
    "note": {
      "type": "string",
      "maxLength": 2000
    },
    "tags": {
      "description": "What kind of work it is: blog, video, social, event… Reuse the workspace's existing tags (see ledger_plan_list).",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "description": "Approval id from a prior needs_confirmation envelope.",
      "type": "string"
    }
  },
  "required": [
    "title",
    "dueOn"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴ledger_plan_update(itemId, title, dueOn, startTime, endTime, ...)

Edits one plan item while its decision is open: move it (dueOn), rename it, change the owner (null clears), attach the link, or set status (planned | done | skipped). Mark done only when the user says it shipped; a link alone doesn't mean done. Fails with conflict once the decision is settled. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "itemId": {
      "type": "string"
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300
    },
    "dueOn": {
      "type": "string",
      "description": "A calendar day, YYYY-MM-DD."
    },
    "startTime": {
      "description": "null makes it all-day again.",
      "anyOf": [
        {
          "type": "string",
          "description": "Wall-clock time, 24-hour HH:MM."
        },
        {
          "type": "null"
        }
      ]
    },
    "endTime": {
      "anyOf": [
        {
          "type": "string",
          "description": "Wall-clock time, 24-hour HH:MM."
        },
        {
          "type": "null"
        }
      ]
    },
    "timeZone": {
      "description": "Required when setting startTime.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "planned",
        "done",
        "skipped"
      ]
    },
    "ownerUserId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "note": {
      "type": "string",
      "maxLength": 2000
    },
    "tags": {
      "description": "Replaces the item's tags.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "description": "Approval id from a prior needs_confirmation envelope.",
      "type": "string"
    }
  },
  "required": [
    "itemId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴ledger_plan_delete(itemId, workspace, approvalId)

Removes one plan item while its decision is open, for an item added by mistake or work that's no longer planned. If the work was planned and then dropped, prefer ledger_plan_update with status 'skipped' so settlement can see it. Fails with conflict once the decision is settled. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "itemId": {
      "type": "string"
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "description": "Approval id from a prior needs_confirmation envelope.",
      "type": "string"
    }
  },
  "required": [
    "itemId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢ledger_metric_presets_list(facet, tag)

Ready-made metrics a business can start tracking, each with a unit, a cadence, which direction is good, a business surface (facet), and cross-cutting tags. Reach for this when a workspace has few or no metrics, when someone asks what they should be measuring, or when a decision needs a number to settle against and none exists. Filter by `facet` (where it lives in the business) or `tag` (what kind of number it is). Suggest a SMALL set — three to six that fit what you know about this business — and say in one sentence why each one, rather than listing the catalog. Adopt with ledger_metric_presets_adopt. These are starting points: a workspace renames and retargets them freely afterwards.

入力スキーマ

{
  "type": "object",
  "properties": {
    "facet": {
      "description": "Business surface, matching the Ledger facet taxonomy.",
      "type": "string",
      "enum": [
        "product",
        "pricing",
        "gtm",
        "sales",
        "people",
        "ops",
        "tooling",
        "finance",
        "positioning",
        "risk"
      ]
    },
    "tag": {
      "description": "Cross-cutting bucket, e.g. retention, cost, speed.",
      "type": "string",
      "enum": [
        "revenue",
        "growth",
        "retention",
        "efficiency",
        "quality",
        "speed",
        "cost",
        "risk",
        "team",
        "customer",
        "pipeline",
        "reliability",
        "usage",
        "reach",
        "cash"
      ]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪ledger_metric_presets_adopt(slugs, workspace, approvalId)

Creates the named presets as real metrics the workspace owns, tagged from the catalog. Safe to repeat: a preset the workspace already has comes back `already_present` rather than creating a second series, and a workspace's own renames and targets are never overwritten. Adopt only what the user agreed to — a metric nobody reads is noise on the Metrics tab, and eight thoughtful ones beat forty. Tell them the metrics start empty and the next step is a feed (ledger_feeds_create) or a first reading. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "slugs": {
      "minItems": 1,
      "maxItems": 40,
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Preset slugs from ledger_metric_presets_list."
    },
    "workspace": {
      "description": "Workspace slug. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "slugs"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢ledger_metric_starters_list

Starter trees by shape of business or team (subscription software, services firm, online store, sales team, service operation). Each lists its metrics with a level (outcome / driver / activity) and the links between them (which number moves which). Reach for this before ledger_metric_presets_list when a workspace has no metrics yet or asks how its numbers fit together: pick the starter that matches what you know about the business, describe its tree in a sentence or two, and offer to adopt it with ledger_metric_starters_adopt, dropping any metric that doesn't fit.

入力スキーマ

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢ledger_metric_starters_adopt(starter, slugs, workspace, approvalId)

Creates a starter's metrics at their levels and links them. Pass `slugs` to keep only some of its metrics; links are made only where both ends exist. Safe to repeat and safe after a different starter: metrics the workspace already has are left as they are and get linked into the tree. Adopt only what the user agreed to. Tell them the metrics start empty and the next step is connecting a source (ledger_feeds_create) or a first reading. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "starter": {
      "type": "string",
      "description": "Starter slug from ledger_metric_starters_list."
    },
    "slugs": {
      "description": "The starter's metrics to keep. Omit for all of them.",
      "maxItems": 40,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workspace": {
      "description": "Workspace slug. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "starter"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡ledger_entries_draft(drafts, fromHistory, workspace, approvalId)

Writes up to 50 entries as DRAFTS: proposals that stay out of the record until a person confirms each one in Ledger's Drafts view. Use it for entries you found rather than were told — decisions in meeting notes, or a team's past changes read from its tracker, pull requests or launch posts (set `fromHistory: true`). For history: take each claim from what the source said AT THE TIME, set `landedAt` to when it shipped, attach the source URL, and leave `rollout` as full unless the source says otherwise. These read as low confidence because they were written down after the fact; say so plainly rather than overstating them. Tell the person how many drafts are waiting and that they review them under Decisions → Drafts. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "drafts": {
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "default": "decision",
            "type": "string",
            "enum": [
              "decision",
              "lesson",
              "observation",
              "belief"
            ]
          },
          "summary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 280,
            "description": "The TITLE: one short plain sentence naming the change or fact."
          },
          "rationale": {
            "description": "The BODY. For history, quote what the source said the change was for.",
            "type": "string",
            "maxLength": 4000
          },
          "prediction": {
            "description": "Decisions only. For history, the claim the source made at the time, not one fitted to what happened since.",
            "type": "object",
            "properties": {
              "claims": {
                "default": [],
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "caliper_eval",
                        "metric",
                        "manual"
                      ]
                    },
                    "evalId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "metricId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "slice": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_]{0,39}$"
                      },
                      "additionalProperties": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      }
                    },
                    "comparator": {
                      "type": "string",
                      "enum": [
                        ">=",
                        "<=",
                        ">",
                        "<",
                        "="
                      ]
                    },
                    "target": {
                      "type": "number"
                    },
                    "unit": {
                      "type": "string",
                      "maxLength": 50
                    },
                    "hold": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "pre_landing"
                        },
                        "days": {
                          "default": 28,
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 365
                        },
                        "maxDrop": {
                          "default": 0,
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "maxRise": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "kind"
                      ]
                    },
                    "watch": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "source"
                  ]
                }
              },
              "deadline": {
                "type": "string",
                "maxLength": 40
              },
              "freeform": {
                "type": "string",
                "maxLength": 2000
              }
            }
          },
          "lesson": {
            "type": "string",
            "maxLength": 4000
          },
          "landedAt": {
            "description": "When the change took effect: the merge, ship or launch date. Set once.",
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "rollout": {
            "description": "full unless the source says it was staged (partial) or had a held-out group (controlled).",
            "type": "string",
            "enum": [
              "full",
              "partial",
              "controlled"
            ]
          },
          "source": {
            "description": "Where the claim came from — the ticket, pull request or post.",
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "maxLength": 2000,
                "format": "uri"
              },
              "title": {
                "type": "string",
                "maxLength": 300
              }
            },
            "required": [
              "url"
            ]
          }
        },
        "required": [
          "summary"
        ]
      }
    },
    "fromHistory": {
      "description": "True when the drafts come from a team's past work, not the conversation.",
      "type": "boolean"
    },
    "workspace": {
      "description": "Workspace slug. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "drafts"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢ledger_feed_sources_list(workspace)

The connected servers this workspace exposes to you, with the id a feed needs. Their tools appear to you namespaced as `ext__<name>__<tool>` — call one directly to see what it returns before proposing a feed. A server the workspace has switched off for you is not listed and cannot be fed from here.

入力スキーマ

{
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Workspace slug. Omit to use the pinned workspace.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢ledger_feeds_list(metricId, workspace)

The standing instructions for how metrics' numbers arrive — which tool each one calls, how often, and how the last run went. Check before proposing a feed so you don't duplicate one, and consult when a user asks why a metric is stale: a feed with a failing last run is usually the answer.

入力スキーマ

{
  "type": "object",
  "properties": {
    "metricId": {
      "description": "Narrow to one metric (id or slug).",
      "type": "string"
    },
    "workspace": {
      "description": "Workspace slug. Omit to use the pinned workspace.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡ledger_feeds_preview(integrationId, toolName, toolArgs, mapping, windowHours, ...)

Call a connected server's tool once and see what a mapping would pull out of the response — nothing is written and no feed is created. Send no `mapping` for a first look: you get a sample of the response plus the paths that hold numbers. Then send a mapping to confirm it finds the readings you expect. Always do this before ledger_feeds_create; proposing a feed whose mapping you haven't seen work is how a metric fills up with the wrong number. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "integrationId": {
      "type": "string",
      "description": "From ledger_feed_sources_list."
    },
    "toolName": {
      "type": "string",
      "description": "The tool's own name on that server — NOT the ext__ namespaced form you call it by."
    },
    "toolArgs": {
      "description": "Arguments, exactly as the tool wants them. Use {{from}} / {{to}} (ISO instants) or {{date}} (YYYY-MM-DD) where a time range goes — those are substituted per run, and are what let one feed also backfill.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "mapping": {
      "description": "How to read the number. Omit on the first look.",
      "type": "object",
      "properties": {
        "shape": {
          "type": "string",
          "enum": [
            "scalar",
            "series"
          ]
        },
        "seriesPath": {
          "type": "string",
          "maxLength": 200
        },
        "valuePath": {
          "type": "string",
          "maxLength": 200
        },
        "atPath": {
          "type": "string",
          "maxLength": 200
        }
      },
      "required": [
        "shape",
        "valuePath"
      ]
    },
    "windowHours": {
      "description": "How far back the preview's window reaches. Default 24.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9600
    },
    "workspace": {
      "description": "Workspace slug. Omit to use the pinned workspace.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "integrationId",
    "toolName"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡ledger_feeds_create(metric, integrationId, toolName, toolArgs, mapping, ...)

Freeze a tool call as a metric's standing source: it runs on the cadence you give and records what it finds, with no model involved. `metric` takes an id or a snake_case slug; an unknown slug starts tracking that metric. Confirm the mapping with ledger_feeds_preview first. Tell the user they can backfill history afterwards with ledger_feeds_backfill. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "metric": {
      "type": "string",
      "description": "Metric id, or a snake_case slug to start tracking."
    },
    "integrationId": {
      "type": "string",
      "description": "From ledger_feed_sources_list."
    },
    "toolName": {
      "type": "string",
      "description": "The tool's own name on that server."
    },
    "toolArgs": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "mapping": {
      "type": "object",
      "properties": {
        "shape": {
          "type": "string",
          "enum": [
            "scalar",
            "series"
          ]
        },
        "seriesPath": {
          "type": "string",
          "maxLength": 200
        },
        "valuePath": {
          "type": "string",
          "maxLength": 200
        },
        "atPath": {
          "type": "string",
          "maxLength": 200
        }
      },
      "required": [
        "shape",
        "valuePath"
      ]
    },
    "schedule": {
      "type": "object",
      "properties": {
        "interval": {
          "type": "string",
          "enum": [
            "hourly",
            "daily",
            "weekly"
          ]
        },
        "time": {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        "timezone": {
          "type": "string",
          "maxLength": 64
        },
        "dayOfWeek": {
          "type": "integer",
          "minimum": 0,
          "maximum": 6
        }
      },
      "required": [
        "interval"
      ]
    },
    "label": {
      "description": "Short name for the feed, e.g. \"Weekly signups\".",
      "type": "string",
      "maxLength": 120
    },
    "windowHours": {
      "description": "How far back each run looks. Sensible per-cadence default.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9600
    },
    "workspace": {
      "description": "Workspace slug. Omit to use the pinned workspace.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "metric",
    "integrationId",
    "toolName",
    "mapping",
    "schedule"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴ledger_feeds_update(id, label, toolName, toolArgs, mapping, ...)

Change a feed's arguments, mapping, cadence, or pause it. Reach for this when a feed's last run reports `empty` (the response shape moved, so the mapping needs a new path) or `error`. Changing the mapping changes what the number means, so say what you're changing and why. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Feed id, from ledger_feeds_list."
    },
    "label": {
      "type": "string",
      "maxLength": 120
    },
    "toolName": {
      "type": "string"
    },
    "toolArgs": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "mapping": {
      "type": "object",
      "properties": {
        "shape": {
          "type": "string",
          "enum": [
            "scalar",
            "series"
          ]
        },
        "seriesPath": {
          "type": "string",
          "maxLength": 200
        },
        "valuePath": {
          "type": "string",
          "maxLength": 200
        },
        "atPath": {
          "type": "string",
          "maxLength": 200
        }
      },
      "required": [
        "shape",
        "valuePath"
      ]
    },
    "schedule": {
      "type": "object",
      "properties": {
        "interval": {
          "type": "string",
          "enum": [
            "hourly",
            "daily",
            "weekly"
          ]
        },
        "time": {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        "timezone": {
          "type": "string",
          "maxLength": 64
        },
        "dayOfWeek": {
          "type": "integer",
          "minimum": 0,
          "maximum": 6
        }
      },
      "required": [
        "interval"
      ]
    },
    "windowHours": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9600
    },
    "enabled": {
      "description": "false pauses it; the definition and history are kept.",
      "type": "boolean"
    },
    "workspace": {
      "description": "Workspace slug. Omit to use the pinned workspace.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪ledger_feeds_run(id, workspace, approvalId)

Run a feed immediately over its own window and record what it finds. Use it right after creating one to prove the mapping works — a run that comes back `empty` names the path that missed, which is what you fix with ledger_feeds_update. Does not move the feed's schedule. Re-running is safe: readings dedupe per time bucket. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Feed id, from ledger_feeds_list."
    },
    "workspace": {
      "description": "Workspace slug. Omit to use the pinned workspace.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡ledger_feeds_backfill(id, from, to, workspace, approvalId)

Run the same frozen instruction over a past range, so a metric has history instead of starting the day it was set up. Offer this whenever you create a feed — a chart with a year behind it is worth far more than one that begins today, and an expectation can be judged against what normal looked like. Works when the source returns a series; a source that only ever reports 'right now' will write one point. Safe to repeat: overlapping ranges dedupe. Keep ranges to a few hundred points; a run that fills up says so. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Feed id, from ledger_feeds_list."
    },
    "from": {
      "type": "string",
      "description": "Start of the range, ISO date or instant."
    },
    "to": {
      "description": "End of the range. Defaults to now.",
      "type": "string"
    },
    "workspace": {
      "description": "Workspace slug. Omit to use the pinned workspace.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "from"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴ledger_feeds_delete(id, workspace, approvalId)

Remove a feed. The readings it already wrote stay — the series is the record and outlives the instruction. Prefer pausing with ledger_feeds_update when the user might want it back. May return `needs_confirmation`.

入力スキーマ

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Feed id, from ledger_feeds_list."
    },
    "workspace": {
      "description": "Workspace slug. Omit to use the pinned workspace.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢comments_list(entityKind, entityId, workspace)

Lists the comment threads on one workspace entity (open first, then resolved) with authors and timestamps. Read this before weighing in on contested work — the threads are where disagreement lives before it becomes a decision.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entityKind": {
      "type": "string",
      "enum": [
        "workbench_flow",
        "compass_page",
        "compass_opportunity",
        "caliper_review",
        "caliper_dataset",
        "caliper_rubric",
        "caliper_eval",
        "caliper_spec",
        "napkin_board",
        "napkin_diagram",
        "napkin_doc",
        "napkin_sheet",
        "napkin_interface",
        "ledger_entry",
        "prism_field",
        "workspace_file"
      ],
      "description": "What the thread hangs on."
    },
    "entityId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    }
  },
  "required": [
    "entityKind",
    "entityId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡comments_create(entityKind, entityId, body, rootId, mentionedUserIds, ...)

Posts a comment on a workspace entity — a new thread, or a reply when rootId is given. Use it to leave findings where the discussion already lives (an eval result on the flow being debated, a summary on a long thread). Mention people via mentionedUserIds (from workspace member ids) to ring their notification bell; never mention someone who didn't ask to be pulled in.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entityKind": {
      "type": "string",
      "enum": [
        "workbench_flow",
        "compass_page",
        "compass_opportunity",
        "caliper_review",
        "caliper_dataset",
        "caliper_rubric",
        "caliper_eval",
        "caliper_spec",
        "napkin_board",
        "napkin_diagram",
        "napkin_doc",
        "napkin_sheet",
        "napkin_interface",
        "ledger_entry",
        "prism_field",
        "workspace_file"
      ],
      "description": "What the thread hangs on."
    },
    "entityId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "body": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10000
    },
    "rootId": {
      "description": "Reply into this thread; omit to start a new one.",
      "type": "string"
    },
    "mentionedUserIds": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "entityKind",
    "entityId",
    "body"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴comments_resolve(rootId, resolved, workspace, approvalId)

Sets a comment thread's resolved state (rootId = the thread's root comment id). Resolve ONLY when the human asked or the thread's question is demonstrably settled — and say what settled it in a reply first. Reopening is for new evidence.

入力スキーマ

{
  "type": "object",
  "properties": {
    "rootId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "resolved": {
      "type": "boolean"
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "type": "string"
    }
  },
  "required": [
    "rootId",
    "resolved"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢search_workspace(q, kinds, limit, workspace)

Finds entities across every tool by name in one call — Workbench flows, Compass pages, Caliper datasets, evals, rubrics, reviews, specs and sources (apps sending agent traces), Ledger entries, Napkin sketches and decks. Use it FIRST when the user names something without saying where it lives ('the onboarding flow', 'that invoice page'); reach for a tool's own list only when you already know the tool. Each hit carries its id, kind, and workspace-relative path, so the id feeds the matching *_get tool and the path makes a link. Results only include what the user can see, and only kinds this token may read.

入力スキーマ

{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Case-insensitive substring matched against names/titles."
    },
    "kinds": {
      "description": "Restrict to these kinds (flow, page, dataset, eval, entry, board). Omit to search everything.",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "flow",
          "page",
          "dataset",
          "eval",
          "entry",
          "board",
          "file",
          "shim",
          "knowledge_base",
          "task",
          "rubric",
          "review",
          "spec",
          "source"
        ]
      }
    },
    "limit": {
      "default": 20,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    }
  },
  "required": [
    "q"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢entity_tags_get(entityKind, ids, workspace)

Returns the tags on a batch of entities of one kind — the labels galleries organize by. Ids come from the kind's list/get tool or from search_workspace. Use it before entity_tags_set so you replace the full set knowingly, and to answer 'what is this filed under'. Entities the user can't see are omitted.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entityKind": {
      "type": "string",
      "enum": [
        "workbench_flow",
        "workbench_task",
        "workbench_kb",
        "compass_page",
        "compass_opportunity",
        "caliper_dataset",
        "caliper_rubric",
        "caliper_eval",
        "caliper_review",
        "caliper_spec",
        "caliper_source",
        "ledger_entry",
        "ledger_metric",
        "napkin_board",
        "napkin_deck",
        "napkin_doc",
        "napkin_sheet",
        "napkin_diagram",
        "prism_field",
        "prism_study"
      ],
      "description": "Which kind the ids belong to."
    },
    "ids": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      }
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    }
  },
  "required": [
    "entityKind",
    "ids"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢entity_tags_browse(tag, workspace)

Without a tag: every tag in use across the workspace with how many entities carry it, most-used first — the vocabulary the team already organizes by. With a tag: everything filed under it across every tool, each with its kind, id, title, and path. Use it to reuse existing labels instead of inventing near-duplicates, and to answer 'show me everything about X' when X is a label.

入力スキーマ

{
  "type": "object",
  "properties": {
    "tag": {
      "description": "A tag to expand into its items. Omit to list tags.",
      "type": "string",
      "minLength": 1,
      "maxLength": 40
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴entity_tags_set(entityKind, entityId, tags, workspace, approvalId)

Replaces the FULL tag set on one entity (an empty list clears it). Read the current tags with entity_tags_get first and pass the merged list — this is not additive. Tags are lowercase letters, numbers, spaces, and hyphens; prefer labels already in use (entity_tags_browse) so the workspace's vocabulary stays small. The id comes from the kind's list/get tool or search_workspace.

入力スキーマ

{
  "type": "object",
  "properties": {
    "entityKind": {
      "type": "string",
      "enum": [
        "workbench_flow",
        "workbench_task",
        "workbench_kb",
        "compass_page",
        "compass_opportunity",
        "caliper_dataset",
        "caliper_rubric",
        "caliper_eval",
        "caliper_review",
        "caliper_spec",
        "caliper_source",
        "ledger_entry",
        "ledger_metric",
        "napkin_board",
        "napkin_deck",
        "napkin_doc",
        "napkin_sheet",
        "napkin_diagram",
        "prism_field",
        "prism_study"
      ]
    },
    "entityId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "tags": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 40,
        "pattern": "^[a-z0-9](?:[a-z0-9 -]*[a-z0-9])?$"
      }
    },
    "workspace": {
      "description": "Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.",
      "type": "string"
    },
    "approvalId": {
      "description": "Approval id from a prior needs_confirmation response. Omit on the first call.",
      "type": "string"
    }
  },
  "required": [
    "entityKind",
    "entityId",
    "tags"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 40 件