Skip to main content
Glama

predict_bayesian

Read-onlyIdempotent

Update prior probabilities with weighted evidence using Bayesian inference. Ideal for incremental belief revision in fraud-risk scoring, A/B testing, and diagnostic stacking.

Instructions

Update a prior probability with weighted evidence using a Beta-Bayesian posterior. Use for incremental belief revision: starting from a baseline probability, fold in new signals (each with a value in [0,1] and a weight) and get an updated posterior plus calibration score. Suited to fraud-risk scoring, A/B test stopping decisions, diagnostic probability stacking. For combining N independent model predictions, use predict_ensemble. For full distribution sampling, use simulate_montecarlo. Free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priorYesPrior probability of the event (0..1). Used to seed Beta(prior*10, (1-prior)*10).
evidenceYesPieces of evidence to fold in.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
posteriorYesUpdated probability after folding in evidence.
priorProbabilityNo
factorsNo
posteriorMeanYes
posteriorVarianceYes
calibrationScoreNo1 - sqrt(variance); higher = sharper posterior.
Behavior4/5

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

Annotations already provide safety profile (readOnly, destructive, idempotent, openWorld). Description adds behavioral context: how prior is seeded (Beta(prior*10, (1-prior)*10)), that it produces a calibration score, and is free. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences: purpose, explanation, use cases, alternatives. No unnecessary words, front-loaded with action verb, 'Free.' appended. Every sentence earns its place.

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

Completeness5/5

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

Given the tool's moderate complexity, presence of output schema (not needing return value doc), and complete annotations, the description fully covers purpose, parameters, usage context, and alternatives. No gaps identified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% description coverage, so baseline 3. Description adds the Beta prior seeding formula and clarifies evidence format (value in [0,1], weight). This provides meaning beyond schema definitions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool updates a prior probability with weighted evidence using Beta-Bayesian posterior, specifies exact use cases (fraud-risk scoring, A/B test stopping, diagnostic probability stacking), and distinguishes from siblings predict_ensemble and simulate_montecarlo.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use (incremental belief revision) and when not to: for combining independent model predictions use predict_ensemble, for full distribution sampling use simulate_montecarlo.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

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

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Whatsonyourmind/oraclaw'

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