Hesperan
Calibrated decisions for agents: choice, yes/no and score questions answered with probabilities.
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"hesperan-mcp"
]
}
}
}Ausführbare Pakete
0.1.0stdioRemote-Endpunkte
https://api.hesperan.com/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (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.
Eingabe-Schema
{
"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).
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"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"
}Community
Nachweis