Agentra LabsAgentra Labs DocsPublic Documentation

Get Started

MCP Tools

AgenticCognition exposes 14 MCP tools over JSON-RPC 2.0 stdio transport. Each tool follows the Agentra MCP quality standard: verb-first imperative descriptions, isError: true fo...

AgenticCognition exposes 14 MCP tools over JSON-RPC 2.0 stdio transport. Each tool follows the Agentra MCP quality standard: verb-first imperative descriptions, isError: true for execution errors, and JSON-RPC error codes for protocol violations.

cognition_model_create

Create a new living user model.

ParameterTypeRequiredDescription
namestringnoOptional human-readable name for the model
contextstringnoInitial context for model creation

Returns the model ID and initial lifecycle stage (Birth).

cognition_model_heartbeat

Record an interaction heartbeat to advance the living user model.

ParameterTypeRequiredDescription
model_idstringyesModel identifier
contextstringnoInteraction context or topic
observationsarraynoList of observation strings

The heartbeat advances the model lifecycle, updates activity metrics, and incorporates any observations into the belief graph.

cognition_model_vitals

Retrieve health metrics and activity summary for a living user model.

ParameterTypeRequiredDescription
model_idstringyesModel identifier

Returns lifecycle stage, belief count, last heartbeat timestamp, interaction count, and model health score.

cognition_model_portrait

Generate a natural-language portrait of the user based on the living model.

ParameterTypeRequiredDescription
model_idstringyesModel identifier
depthstringnoPortrait depth: brief, standard, deep (default: standard)

Returns a structured portrait containing identity summary, core values, behavioral patterns, and growth trajectory.

cognition_belief_add

Add a new belief to the living user model.

ParameterTypeRequiredDescription
model_idstringyesModel identifier
textstringyesBelief statement
domainstringnoBelief domain (e.g., values, work, relationships)
confidencenumbernoInitial confidence level (0.0 to 1.0, default: 0.5)
evidencestringnoSupporting evidence for the belief

Returns the belief ID and initial physical properties.

cognition_belief_query

Query beliefs in the model by text, domain, or property.

ParameterTypeRequiredDescription
model_idstringyesModel identifier
querystringnoText search query
domainstringnoFilter by domain
min_confidencenumbernoMinimum confidence threshold
max_resultsnumbernoMaximum results to return (default: 20)

Returns a list of matching beliefs with their full properties.

cognition_belief_graph

Retrieve the full belief graph showing entanglements and relationships.

ParameterTypeRequiredDescription
model_idstringyesModel identifier
depthnumbernoGraph traversal depth (default: 3)
centerstringnoCenter the graph on a specific belief ID

Returns nodes (beliefs) and edges (entanglements, tensions, supports) with relationship types and weights.

cognition_soul_reflect

Produce a deep soul reflection across all model dimensions.

ParameterTypeRequiredDescription
model_idstringyesModel identifier
focusstringnoFocus area for reflection (e.g., values, growth, shadows)

Returns a multi-dimensional reflection covering core identity, belief architecture, shadow patterns, growth trajectory, and inner tensions.

cognition_self_topology

Generate the self-concept topology map showing identity landscape.

ParameterTypeRequiredDescription
model_idstringyesModel identifier

Returns identity peaks (strongest self-beliefs), valleys (weakest), edges (boundaries), and defended territories (resistant to change).

cognition_pattern_fingerprint

Generate a decision-making fingerprint from behavioral patterns.

ParameterTypeRequiredDescription
model_idstringyesModel identifier
domainstringnoFocus on patterns within a specific domain

Returns the decision fingerprint including dominant patterns, recurring themes, risk profile, and consistency score.

cognition_shadow_map

Generate the shadow map showing unconscious patterns.

ParameterTypeRequiredDescription
model_idstringyesModel identifier

Returns shadow beliefs, projections (attributes ascribed to others that belong to self), blindspots (gaps between self-assessment and behavior), defended regions, bias fields, and emotional triggers.

cognition_drift_track

Track longitudinal drift in beliefs, values, and identity.

ParameterTypeRequiredDescription
model_idstringyesModel identifier
rangestringnoTime range to analyze (e.g., 30d, 90d, 1y)
domainstringnoTrack drift within a specific domain

Returns drift events, value tectonic movements, and growth ring snapshots over the specified time range.

cognition_predict

Predict user preferences, reactions, or choices.

ParameterTypeRequiredDescription
model_idstringyesModel identifier
querystringyesPrediction query (e.g., a preference question or scenario)

Returns the prediction with confidence, supporting beliefs, and reasoning chain.

cognition_simulate

Simulate a decision scenario with multiple options.

ParameterTypeRequiredDescription
model_idstringyesModel identifier
scenariostringyesDecision scenario description
optionsarraynoList of option strings to evaluate

Returns per-option analysis showing alignment with values, predicted satisfaction, risk assessment, and the recommended choice with reasoning.

Error Handling

Tool execution errors return results with isError: true in the MCP content:

{
  "content": [{"type": "text", "text": "Model not found: abc-123"}],
  "isError": true
}

Protocol errors use standard JSON-RPC error codes:

CodeConstantMeaning
-32700PARSE_ERRORInvalid JSON
-32600INVALID_REQUESTInvalid JSON-RPC request
-32601METHOD_NOT_FOUNDUnknown method
-32803TOOL_NOT_FOUNDUnknown tool name

Tool Surface Control

The exposed tool set can be restricted via ACOG_MCP_TOOL_SURFACE or --tool-surface. When set, only listed tools respond; unlisted tools return TOOL_NOT_FOUND.