Skip to main content
Glama
karlmehta
by karlmehta

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TRUSTMODEL_API_KEYNoYour TrustModel API key (format: tm-{env}-{keyid}_{secret}). Not needed for local tools; required for calibrated cloud tools.
TRUSTMODEL_PROFILENoTool profile. 'default' exposes daily-driver tools; 'security'/'advanced'/'all' expose every tool.default
TRUSTMODEL_TRACE_DIRNoDirectory where streaming trace sessions are persisted as append-only JSONL. Default: ~/.trustmodel-mcp/traces/~/.trustmodel-mcp/traces/
TRUSTMODEL_ADVANCED_TOOLSNoSet 'true' to expose all tools regardless of TRUSTMODEL_PROFILE.false
TRUSTMODEL_AGT_DISCOVERY_ENABLEDNoEnables the filesystem-touching Shadow Discovery tools. When unset, those tools return a skip report.false

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
trustmodel_scoreA

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.

trustmodel_trace_startA

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.

trustmodel_trace_stepA

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.

trustmodel_trace_finalizeA

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.

trustmodel_evaluate_localA

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.

trustmodel_governA

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.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/karlmehta/trustmodel-mcp'

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