Hesperan

Calibrated decisions for agents: choice, yes/no and score questions answered with probabilities.

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
94%
命名品質
80%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,209Token(工具定義)
~3.2 KB典型回應大小
中等的注意力影響(128k 上下文的 0.94%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "hesperan-mcp"
      ]
    }
  }
}

可執行的套件

npmhesperan-mcp0.1.0stdio

遠端端點

https://api.hesperan.com/mcpstreamable-http

它能做什麼

工具清單

工具(3)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢decide(state, questions)

Ask Hesperan 1 one or more typed questions about a state and get a probability for every possible answer. Types: choice (pick one of named options), noul (probability that a statement is true), score (level on an ordinal scale). Use for decisions with known options: routing, triage, policy or risk checks, "should I proceed?". Not for writing text, summaries or knowledge questions. Ask all questions about the same state in one call: billing is by input tokens (the state once plus each question once), from the user's monthly allowance and then their prepaid balance; failed calls are free.

輸入結構描述

{
  "type": "object",
  "properties": {
    "state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      ],
      "description": "The situation to judge: free text, or a JSON object (keeps dates, amounts and fields unambiguous). Leave out data that does not matter for the question."
    },
    "questions": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "choice"
              },
              "instructions": {
                "type": "string",
                "description": "The question, e.g. \"Which team should handle this ticket?\""
              },
              "criteria": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Option key -> plain-language description of what the option means. Mutually exclusive; add an \"other\" option if the list is not complete. Up to about 26 options work best."
              }
            },
            "required": [
              "type",
              "instructions",
              "criteria"
            ],
            "description": "Pick one of named options. Answer: choice and a probability per option."
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "noul"
              },
              "instructions": {
                "type": "string",
                "description": "A statement (not a question), e.g. \"This email is a phishing attempt.\""
              },
              "criteria": {
                "description": "Optional: what counts as yes and as no.",
                "type": "object",
                "properties": {
                  "true": {
                    "type": "string"
                  },
                  "false": {
                    "type": "string"
                  }
                }
              }
            },
            "required": [
              "type",
              "instructions"
            ],
            "description": "Probability that a statement is true. Answer: noul = P(yes)."
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "score"
              },
              "instructions": {
                "type": "string",
                "description": "What to rate, e.g. \"How upset is the customer?\""
              },
              "criteria": {
                "minItems": 2,
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "One description per level, lowest first."
              }
            },
            "required": [
              "type",
              "instructions",
              "criteria"
            ],
            "description": "Rate on an ordinal scale you define. Answer: score = expected level, plus a probability per level (\"0\", \"1\", ...)."
          }
        ]
      },
      "description": "Named questions, answered together: { \"<name>\": { \"type\": \"choice\" | \"noul\" | \"score\", \"instructions\": \"...\", \"criteria\": ... } }."
    }
  },
  "required": [
    "state",
    "questions"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
⚪decide_with_profile(profile, state, idempotency_key)

Run one of the user's decision profiles on a state. A profile is one question calibrated on the user's own labelled cases with a target precision; the answer is a decision, its calibrated confidence and an action: "auto" (confidence reaches the profile's threshold — act on it) or "review" (hand it to a person). Profiles are created in the Hesperan console; ask the user for the profile slug. Keep the returned decision_id to report the correct answer later with report_outcome. Billed by input tokens like decide; pass an idempotency_key to make retries safe (a repeat with the same key returns the first decision without charging again).

輸入結構描述

{
  "type": "object",
  "properties": {
    "profile": {
      "type": "string",
      "minLength": 1,
      "description": "Slug of the decision profile, e.g. \"ticket-routing\"."
    },
    "state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      ],
      "description": "The situation to judge: free text, or a JSON object (keeps dates, amounts and fields unambiguous). Leave out data that does not matter for the question."
    },
    "idempotency_key": {
      "description": "Optional unique key for this decision (1-255 visible ASCII characters, e.g. the ticket id). Reusing it within 24 hours with the same state replays the stored decision.",
      "type": "string",
      "pattern": "^[\\x21-\\x7e]{1,255}$"
    }
  },
  "required": [
    "profile",
    "state"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
⚪report_outcome(decision_id, actual)

Record the correct answer for an earlier decide_with_profile decision, once it is known (e.g. the team that finally handled the ticket). This tracks the live precision of the profile in the console. actual must be one of the profile's option keys. Free of charge.

輸入結構描述

{
  "type": "object",
  "properties": {
    "decision_id": {
      "type": "string",
      "minLength": 1,
      "description": "decision_id returned by decide_with_profile."
    },
    "actual": {
      "type": "string",
      "minLength": 1,
      "description": "The correct option key."
    }
  },
  "required": [
    "decision_id",
    "actual"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本3 個工具