Strategic Agent Reasoning MCP

v0.4.1
io.github.putervision/agent-reasoning-mcp Checked 3 days ago Published 2 months ago

Strategic BDI reasoning engine for autonomous AI agents with spatial utility and replanning.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

set_goal

Register, update, decompose, inspect, or abandon hierarchical goals and task DAGs (actions: create, update, decompose, get, list, abandon). Use set_goal instead of manage_intentions when formulating multi-step objectives and sub-goal DAGs rather than queueing concrete execution directives. Returns goal record, sub-goal hierarchy, completion progress, or goal lists.

ParameterTypeDescription
action *stringThe goal management operation to perform: create, update, decompose, get, list, abandon
client_request_idstringIdempotency key to prevent duplicate creation
deadline_atstringISO-8601 deadline timestamp
descriptionstringDetailed goal description
idstringGoal ID (required for update, get, abandon)
limitnumberMax items to return for list action
parent_idstringParent goal ID for hierarchical sub-goals
prioritynumberGoal priority (0.0 to 1.0)
progressnumberCompletion progress (0.0 to 1.0)
projectstringTarget project slug
statusstringGoal status
subgoalsarrayArray of sub-goals for decompose action
success_criteriaarrayList of verifiable conditions
titlestringGoal title or objective summary
utility_weightsobjectGoal-specific utility weight overrides

evaluate_situation

Ingest multi-modal situation snapshot, compute expected utilities against active weights, and output prioritized action recommendations (actions: snapshot, quick). Use evaluate_situation instead of assess_risk when ranking candidate actions across multi-attribute utility dimensions rather than calculating isolated threat probabilities. Returns ranked candidate actions, expected utility scores, and top recommendation.

ParameterTypeDescription
action *stringSnapshot evaluation mode or quick text context: snapshot, quick
candidate_actionsarrayCandidate actions to score and rank
lookahead_depthnumberBounded heuristic lookahead plies (e.g. 2-3 plies, discount gamma=0.85)
projectstringTarget project slug
quick_contextstringText summary of current situation for quick evaluation
session_idstringLinked state-memory session ID
snapshotobjectNormalized SituationSnapshot with world, vision, state, and vitals
trace_idstringDistributed trace ID
utility_profilestringNamed utility profile to score against (defaults to active)

replan

Regenerate sub-task DAG and adjust intentions upon unexpected obstacles or state changes (actions: blocker, event, full). Use replan instead of set_goal when recovering from execution blockers or environment shifts rather than creating new goals. Returns replanned goal DAG, invalidated intentions, and newly synthesized subgoals.

ParameterTypeDescription
action *stringReplanning trigger type: blocker, event, full
goal_id *stringID of goal to replan
blocker_descriptionstringDescription of the obstacle or blocker encountered
preserve_completedbooleanWhether to preserve already completed subgoals
projectstringTarget project slug
trigger_eventstringEvent description triggering replanning

assess_risk

Compute quantitative risk and threat assessment for candidate actions, plans, or 3D spatial rollouts against active utility weights (actions: action, plan, compare, spatial_rollout). Use assess_risk instead of evaluate_situation when estimating failure probability and threat exposure rather than ranking overall utility. Returns risk score (0.0-1.0), threat breakdown, and comparative risk ratings.

ParameterTypeDescription
action *stringRisk assessment mode: action, plan, compare, spatial_rollout
candidate_actionstringAction name to evaluate
candidate_actionsarrayMultiple actions to compare risk scores
clearance_thresholdnumberMinimum clearance threshold in meters (default: 1.0)
obstaclesarrayObstacles with position/bounding_box and affordance_mask
parametersobjectAction parameters
projectstringTarget project slug
situation_contextobjectCurrent environment telemetry & vitals
trajectoryarrayArray of [x, y, z] waypoints for spatial rollout risk assessment

query_knowledge

Search learned heuristic patterns, tactics, and past decision traces by context similarity (actions: search, patterns, similar_situations). Use query_knowledge instead of get_decision_trace when retrieving generalized patterns across sessions rather than inspecting a single execution trace. Returns matching heuristics, anti-patterns, tactics, and similarity scores.

ParameterTypeDescription
action *stringKnowledge query mode: search, patterns, similar_situations
context_tagsarrayFilter by context tags
limitnumberMax patterns to return
pattern_typestringFilter by pattern category
projectstringTarget project slug
querystringSemantic search query string

set_utility_weights

Configure, inspect, activate, or incrementally nudge multi-attribute utility weight profiles (actions: configure, get, list, activate, nudge). Use set_utility_weights instead of evaluate_situation when defining decision preferences (aggression, caution, greed, exploration) rather than evaluating actions. Returns configured utility profile, active weight map, or profile directory.

ParameterTypeDescription
action *stringProfile operation: configure, get, list, activate, nudge
deltaobjectKey-value map of weight deltas for nudge action
descriptionstringProfile description
is_activebooleanWhether to set as currently active profile
namestringProfile name (e.g. "aggressive", "cautious", "explorer")
projectstringTarget project slug
weightsobjectKey-value map of weight values (0.0 to 1.0)

get_decision_trace

Retrieve explainable step-by-step chain-of-thought rationale, candidate utilities, and risk assessment for past decisions (actions: latest, get, list, explain). Use get_decision_trace instead of query_knowledge when performing deep forensic analysis of a specific historical decision. Returns step-by-step reasoning trace, utility breakdown, candidate rankings, and explanation text.

ParameterTypeDescription
action *stringTrace retrieval operation: latest, get, list, explain
goal_idstringFilter traces by linked goal ID
limitnumberMax traces to list
projectstringTarget project slug
trace_idstringTrace ID for get/explain action

manage_beliefs

Maintain structured belief state with TTL expiration sweeps, exponential confidence decay, and category filtering (actions: update, query, expire, reconcile, reconcile_spatial). Use manage_beliefs instead of query_knowledge when managing dynamic agent epistemic state rather than static heuristic patterns. Returns belief record, query matches, expired belief count, or reconciliation report.

ParameterTypeDescription
action *stringBelief operation: update, query, expire, reconcile, reconcile_spatial
belief_idstringBelief ID for specific lookup
categorystringBelief category
client_request_idstringIdempotency key
confidencenumberConfidence score (0.0 to 1.0)
decay_ratenumberExponential decay rate lambda per hour
expires_atstringISO-8601 expiration timestamp
matched_entitiesarrayMatched entities for reconcile_spatial action
missing_entitiesarrayMissing entities for reconcile_spatial action
novel_entitiesarrayNovel entities for reconcile_spatial action
objectBelief value / state payload
predicatestringPredicate relationship (e.g. "is_locked", "status")
projectstringTarget project slug
sourcestringBelief provenance source
subjectstringBelief subject (e.g. "north_gate", "enemy_patrol")
unexpected_entitiesarrayUnexpected entities for reconcile_spatial action

manage_intentions

Queue, dispatch, track, cancel, or resolve behavior directives for behavior-mcp runtime execution (actions: create, dispatch, get, list, cancel, resolve). Use manage_intentions instead of set_goal when dispatching immediate execution instructions to runtime behaviors rather than managing abstract objectives. Returns intention record, dispatch status, wire contract payload, or intention list.

ParameterTypeDescription
action *stringIntention operation: create, dispatch, get, list, cancel, resolve
abort_conditionsarrayAuto-abort trigger conditions
behavior_namestringTarget behavior tree name (e.g. "combat_kite", "gather_loop")
client_request_idstringIdempotency key
deadline_atstringISO-8601 completion deadline
goal_idstringLinked goal ID
intention_idstringIntention ID for dispatch/get/cancel/resolve
parametersobjectRuntime behavior parameters
prioritynumberExecution priority (0.0 to 1.0)
projectstringTarget project slug
resultobjectOutcome payload for resolve action
statusstringStatus filter or update
trace_idstringLinked decision trace ID

manage_reasoning_db

Database maintenance, diagnostics, SHA-256 Merkle audit verification, and snapshot management (actions: stats, audit, doctor, snapshot, diff, restore). Use manage_reasoning_db instead of manage_beliefs when performing SQLite storage integrity verification or database snapshot restore. Returns database diagnostics, Merkle audit tree, snapshot metadata, or diff reports.

ParameterTypeDescription
action *stringDatabase maintenance operation: stats, audit, doctor, snapshot, diff, restore
descriptionstringDescription for snapshot
namestringSnapshot name
projectstringTarget project slug

classify

Assign semantic categorical labels to an entity, visual state, task, or state snapshot using deterministic System One calculus. Use classify instead of ask_choice when assigning predefined taxonomy labels rather than selecting among runtime decision alternatives. Returns top class label, probability distribution, and classification margin.

ParameterTypeDescription
classes *arrayCandidate classes (capped at 16)
project *stringTarget project slug
target_type *stringType of target to classify
state_packobjectOptional explicit StatePack
target_idstringIdentifier of the target

ask_noul

Evaluate whether a specific proposition is true given the current state pack with calibrated probability and abstain safeguards. Use ask_noul instead of ask_score when evaluating binary truth/falsehood rather than scoring an entity on a continuous scale. Returns boolean answer, confidence probability, and abstain flag.

ParameterTypeDescription
project *stringTarget project slug
statement *stringProposition to test
priornumberOptional Bayesian prior [0.0 - 1.0]
state_packobjectOptional explicit StatePack

ask_choice

Select 1 option from a discrete set of alternatives (N <= 16) with probability distribution and utility margin. Use ask_choice instead of classify when choosing the best action or alternative under active utility profiles rather than categorizing an entity. Returns selected option ID, probability distribution, and utility margin.

ParameterTypeDescription
options *arrayMutually exclusive options (strictly capped at 16)
project *stringTarget project slug
question *stringDecision prompt
state_packobjectOptional explicit StatePack
utility_profilestringNamed utility profile override

ask_score

Evaluate an entity, plan, or action on a bounded continuous scale against weighted criteria. Use ask_score instead of ask_noul when evaluating continuous numeric quality or fitness rather than binary truth. Returns normalized score within scale bounds, criterion breakdown, and evaluation confidence.

ParameterTypeDescription
metric *stringMetric name
project *stringTarget project slug
target *stringSubject to evaluate
criteriaarrayEvaluation criteria
scalearray[min, max] range (defaults to [0.0, 1.0])
state_packobjectOptional explicit StatePack

gate_intention

Evaluate an intention before dispatching to behavior-mcp and issue a cryptographic HMAC dispatch token if approved. Use gate_intention instead of manage_intentions when verifying precondition safety and issuing execution authorization rather than tracking intention state. Returns gate verdict (approved/rejected), risk evaluation, and HMAC dispatch token.

ParameterTypeDescription
project *stringTarget project slug
proposed_action *objectProposed behavior action to execute
context_goal_idstringActive goal being pursued
intention_idstringTarget intention ID
state_packobjectOptional explicit StatePack