trustmodel-mcp

v0.3.0
io.github.pdxlab/trustmodel-mcp Checked 4 days ago Published 5 days ago

Score 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.

ParameterTypeDescription
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.

ParameterTypeDescription
agent_framework *stringFramework the agent is built with (e.g. 'langchain', 'crewai', 'claude-code', 'custom').
goal *stringWhat the agent is trying to achieve. Required; feeds the evaluation run.
name *stringDisplay name for the evaluation run (shown in TrustModel UI).
agent_modelstringUnderlying LLM the agent is using (e.g. 'gpt-4o', 'claude-sonnet-4-5').
expected_outcomestringOptional description of the expected outcome.
metadataobjectFree-form passthrough metadata stored inside the trace file.
user_querystringOriginal 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.

ParameterTypeDescription
content *stringHuman-readable text for this step. Empty string allowed.
step_type *stringKind of step: 'thought'/'think' (reasoning), 'tool_call', 'tool_result', 'observation', 'decision', 'error', 'human_input', 'response'/'final_answer' (user-facing output).
trace_id *stringTrace handle returned by trustmodel_trace_start.
duration_msintegerHow long this step took, in milliseconds.
input_tokensintegerInput token count for this step.
model_usedstringModel used for this step's reasoning.
output_tokensintegerOutput token count for this step.
timestampstringISO 8601 timestamp. Defaults to the current time if omitted.
tool_argsobjectArguments passed to the tool (use with step_type='tool_call').
tool_call_successbooleanWhether the tool call succeeded (use with step_type='tool_result').
tool_namestringName of the tool invoked (use with step_type='tool_call' or 'tool_result').
tool_resultResult 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.

ParameterTypeDescription
trace_id *stringTrace handle returned by trustmodel_trace_start.
actual_outcomestringOptional description of what actually happened.
agent_frameworkstringOverride `agent_framework` provided at trace_start.
agent_modelstringOverride `agent_model` provided at trace_start.
expected_outcomestringOverride `expected_outcome` provided at trace_start.
final_responsestringThe final user-facing answer from the agent.
goalstringOverride `goal` if the agent learned more at runtime.
goal_achievedbooleanWhether the agent achieved its goal.
namestringOverride `name` provided at trace_start.
successbooleanWhether the run is considered successful overall.
total_duration_msintegerTotal 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.

ParameterTypeDescription
output *stringThe AI output text to score.
contextstringOptional 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.

ParameterTypeDescription
text *stringThe text/output to check against the policy.
contextstringOptional context the output was produced in.
policystringPolicy 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.

ParameterTypeDescription
action_type *stringAction kind, for example 'tool_call', 'send_email', or 'decision'.
agent_id *stringIdentifier of the agent proposing the action.
action_payloadobjectParameters or data the policy must evaluate.
policy_namestringPolicy name; defaults to the organization's default policy.
subject_idstringOptional identifier for the person or resource affected.