trustmodel-mcp
v0.3.0Score any AI for trust across 10 dimensions; evaluate, monitor & govern LLMs and agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
trustmodel_score
Get the current trust score / detail for a previous LLM evaluation created via trustmodel_evaluate. Takes an integer evaluation_id and returns the evaluation detail including scores.
| Parameter | Type | Description |
|---|---|---|
evaluation_id * | Integer evaluation ID returned from a previous trustmodel_evaluate call. |
trustmodel_trace_start
Open a new agent-trace capture session. Returns a trace_id that must be passed to every trustmodel_trace_step and the final trustmodel_trace_finalize. Capture steps (thoughts, tool calls, tool results, responses) as your agent executes; finalize when done to upload + auto-create an evaluation run.
| Parameter | Type | Description |
|---|---|---|
agent_framework * | string | Framework the agent is built with (e.g. 'langchain', 'crewai', 'claude-code', 'custom'). |
goal * | string | What the agent is trying to achieve. Required; feeds the evaluation run. |
name * | string | Display name for the evaluation run (shown in TrustModel UI). |
agent_model | string | Underlying LLM the agent is using (e.g. 'gpt-4o', 'claude-sonnet-4-5'). |
expected_outcome | string | Optional description of the expected outcome. |
metadata | object | Free-form passthrough metadata stored inside the trace file. |
user_query | string | Original user prompt that triggered the run, if different from `goal`. |
trustmodel_trace_step
Record a single step in an active trace session. Call once per reasoning step, tool call, tool result, or user-facing response. Step numbers are auto-assigned (1-based). Requires a trace_id from trustmodel_trace_start.
| Parameter | Type | Description |
|---|---|---|
content * | string | Human-readable text for this step. Empty string allowed. |
step_type * | string | Kind of step: 'thought'/'think' (reasoning), 'tool_call', 'tool_result', 'observation', 'decision', 'error', 'human_input', 'response'/'final_answer' (user-facing output). |
trace_id * | string | Trace handle returned by trustmodel_trace_start. |
duration_ms | integer | How long this step took, in milliseconds. |
input_tokens | integer | Input token count for this step. |
model_used | string | Model used for this step's reasoning. |
output_tokens | integer | Output token count for this step. |
timestamp | string | ISO 8601 timestamp. Defaults to the current time if omitted. |
tool_args | object | Arguments passed to the tool (use with step_type='tool_call'). |
tool_call_success | boolean | Whether the tool call succeeded (use with step_type='tool_result'). |
tool_name | string | Name of the tool invoked (use with step_type='tool_call' or 'tool_result'). |
tool_result | Result returned by the tool (use with step_type='tool_result'). |
trustmodel_trace_finalize
Close an active trace session, serialize the captured steps, upload to TrustModel cloud storage, and auto-create an agentic evaluation run. Returns both a file_path (for record-keeping / retry) and an evaluation_run_id that can be polled with trustmodel_score_agent.
| Parameter | Type | Description |
|---|---|---|
trace_id * | string | Trace handle returned by trustmodel_trace_start. |
actual_outcome | string | Optional description of what actually happened. |
agent_framework | string | Override `agent_framework` provided at trace_start. |
agent_model | string | Override `agent_model` provided at trace_start. |
expected_outcome | string | Override `expected_outcome` provided at trace_start. |
final_response | string | The final user-facing answer from the agent. |
goal | string | Override `goal` if the agent learned more at runtime. |
goal_achieved | boolean | Whether the agent achieved its goal. |
name | string | Override `name` provided at trace_start. |
success | boolean | Whether the run is considered successful overall. |
total_duration_ms | integer | Total execution time in ms. If omitted, computed from step durations. |
trustmodel_evaluate_local
Score AI output locally across the 10 TrustModel dimensions (safety, fairness, accuracy, privacy, transparency, robustness, accountability, explainability, compliance, reliability) and roll it into a 0-100 TrustScore. NO API key required — runs on this machine with a transparent heuristic judge. Returns trust_score, grade, per-dimension scores, and violations. Local scores are uncalibrated; use trustmodel_evaluate (cloud, needs a free TRUSTMODEL_API_KEY) for a calibrated, audit-ready score.
| Parameter | Type | Description |
|---|---|---|
output * | string | The AI output text to score. |
context | string | Optional context the output was produced in (improves judging). |
trustmodel_govern
Check text against a governance policy pack and decide allow/block, locally. NO API key required. `policy` is a built-in pack id — eu-ai-act (default), nist-ai-rmf, nyc-ll144, or owasp-llm. Returns allowed/blocked, the policy id, and the list of rule violations (pattern and dimension rules). Use before letting AI output reach a user or another tool.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text/output to check against the policy. |
context | string | Optional context the output was produced in. |
policy | string | Policy pack id: eu-ai-act (default), nist-ai-rmf, nyc-ll144, owasp-llm. |
trustmodel_guardrails_check
Check a proposed agent action against the organization's TrustModel policy before execution. Only the literal decision `allow` may proceed; deny, redact, unknown decisions, configuration errors, and transport failures block when fail-closed.
| Parameter | Type | Description |
|---|---|---|
action_type * | string | Action kind, for example 'tool_call', 'send_email', or 'decision'. |
agent_id * | string | Identifier of the agent proposing the action. |
action_payload | object | Parameters or data the policy must evaluate. |
policy_name | string | Policy name; defaults to the organization's default policy. |
subject_id | string | Optional identifier for the person or resource affected. |