switch-trust-mcp
v0.3.0Switch Trust platform MCP server: read-only AI-SPM issues, inventory, remediation guidance, guardrails and cost optimization for coding agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_context
Show the resolved backend scope (instance, tenant, workspace). Useful to confirm the API key maps to the workspace you expect before querying issues.
list_issues
List AI-SPM issues for the workspace. Filters: severity (CRITICAL/HIGH/MEDIUM/LOW/INFORMATIONAL), rule_id, category (vulnerability_category), and search (substring match on rule name). Results are paginated: pass the returned cursor to fetch the next page. page_size is capped at 100. Use get_issue for full detail and remediation guidance on a specific issue.
| Parameter | Type | Description |
|---|---|---|
category | ||
cursor | ||
page_size | integer | |
rule_id | ||
search | ||
severity |
get_issue
Get full detail for one issue plus rule-level remediation guidance. Returns the issue record, the assembled remediation guidance markdown for the issue's rule (when available), and a page of affected objects (assets). The objects list is paginated the same way as list_issues: page_size is capped at 100, and objects.cursor carries forward to fetch the next page. Use get_finding_detail for the code location of a specific occurrence.
| Parameter | Type | Description |
|---|---|---|
issue_id * | string | |
cursor | ||
page_size | integer |
get_finding_detail
Get per-finding detail: file path, code snippet, evidence, and remediation. Provide the issue_id and object_id (from get_issue's objects). Omit detail_id to list all findings for that object, or pass one to fetch a single finding.
| Parameter | Type | Description |
|---|---|---|
issue_id * | string | |
object_id * | string | |
detail_id |
find_issues_for_file
Find issues whose findings reference a given working-tree file. Convenience for the edit loop: scans up to max_issues issues and returns the findings whose file path matches `path` (matched by shared path suffix, so an absolute or repo-relative path both work), each with its rule, severity, path, and inline remediation text. The backend cannot filter by file, so this is a client-side scan and may be slow for large workspaces. The scan is bounded: max_issues is capped at 500 and the whole call at 300 backend requests. Check the returned `scan.complete` — when it…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
max_issues | integer |
get_remediation_guidance
Get the rule-level remediation guidance markdown for a rule name. The rule_name matches the value shown on issues (see get_issue). Returns None guidance for rules without docs — use the per-finding remediation from get_finding_detail in that case. The guidance is wrapped in the procedure for choosing and applying a remediation; get_issue returns the same docs unwrapped, for browsing.
| Parameter | Type | Description |
|---|---|---|
rule_name * | string |
list_models
List inventoried AI models. Filters: name, severity, supplier, library. page_size is capped at 100; page with the returned cursor for more.
| Parameter | Type | Description |
|---|---|---|
cursor | ||
library | ||
name | ||
page_size | integer | |
severity | ||
supplier |
list_agents
List inventoried AI agents. Filters: name, severity, supplier, library. page_size is capped at 100; page with the returned cursor for more.
| Parameter | Type | Description |
|---|---|---|
cursor | ||
library | ||
name | ||
page_size | integer | |
severity | ||
supplier |
list_tools
List inventoried agent tools. Filters: name, severity. page_size is capped at 100; page with the returned cursor for more.
| Parameter | Type | Description |
|---|---|---|
cursor | ||
name | ||
page_size | integer | |
severity |
list_mcp_servers
List inventoried MCP servers. Filters: name, severity, library. page_size is capped at 100; page with the returned cursor for more.
| Parameter | Type | Description |
|---|---|---|
cursor | ||
library | ||
name | ||
page_size | integer | |
severity |
get_model
Get a model's detail plus its attached issues and code locations.
| Parameter | Type | Description |
|---|---|---|
asset_id * | string |
get_agent
Get an agent's detail plus its issues, MCP servers, and code locations.
| Parameter | Type | Description |
|---|---|---|
asset_id * | string |
get_tool
Get a tool's detail plus its agents, issues, and code locations.
| Parameter | Type | Description |
|---|---|---|
asset_id * | string |
get_mcp_server
Get an MCP server's detail plus its issues and code locations. Agents using this server are embedded in ``asset`` directly (the backend has no standalone "agents" edge for the MCP-server scope).
| Parameter | Type | Description |
|---|---|---|
asset_id * | string |
list_guardrail_policies
List guardrail policies (input/output detector configurations). Filters: search (substring match on policy name). Page-numbered, not cursor-based — pass the next page number to page through results. page_size is capped at 100. Use get_guardrail_policy for full detail.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
page_size | integer | |
search |
get_guardrail_policy
Get one guardrail policy's detail: name, description, and the user/assistant detector configuration.
| Parameter | Type | Description |
|---|---|---|
policy_id * | string |
get_guardrail_interaction_counts
Guardrail-decision counts (ok/blocked/redacted/alerted/errored) across LLM interactions, optionally scoped to one agent.
| Parameter | Type | Description |
|---|---|---|
agent_id |
get_guardrail_outcomes
Guardrail outcome totals across LLM interactions, optionally scoped to one agent. Same underlying data as get_guardrail_interaction_counts, without the per-category breakdown.
| Parameter | Type | Description |
|---|---|---|
agent_id |
get_guardrail_categories
Guardrail-detector-category counts across LLM interactions, optionally scoped to one agent.
| Parameter | Type | Description |
|---|---|---|
agent_id |
list_llm_interactions
List LLM interactions (prompt/response pairs) with guardrail outcomes. Filters: search (substring match on prompt text), agent_id. Cursor-paginated: pass the returned cursor to fetch the next page. Rows are trimmed (long prompt/response text truncated, per-turn events omitted) to protect context budget — use get_interaction for full detail on a specific interaction. page_size is capped at 100.
| Parameter | Type | Description |
|---|---|---|
agent_id | ||
cursor | ||
page_size | integer | |
search |
get_interaction
Get one LLM interaction's full detail (prompt, response, guardrail events).
| Parameter | Type | Description |
|---|---|---|
interaction_id * | string |
list_llm_sessions
List LLM sessions (grouped conversation turns) for one agent (required). Cursor-paginated; page_size is capped at 100. Use get_llm_session for a session's aggregate cost/tokens/turns plus the full per-turn list.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
cursor | ||
page_size | integer | |
sort | ||
sort_dir |
get_llm_session
Get one LLM session's detail: aggregate cost/tokens/turns and the full per-turn list.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
list_roi_agents
List agents' LLM activity summaries (latest_interaction_time, interaction_count) for the workspace. Drives ROI/cost-optimization analysis: an agent with no recent activity has nothing new to analyze. page_size is capped at 100.
| Parameter | Type | Description |
|---|---|---|
page | ||
page_size | integer |
list_roi_interactions
List one agent's raw LLM interaction rows (with computed cost_usd) — the source data the ROI cost-optimization analyses read. agent_id is required. since/until are optional RFC3339 timestamps bounding interaction_time. page_size is capped at 100.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
order | ||
page | ||
page_size | integer | |
since | ||
until |
list_roi_analyses
List ROI/cost-optimization analysis results (findings + estimated $ savings), latest first. Filters: agent_id, analysis_type (tool_bloat, model_optimizer, verbosity, context_cache_waste, retry_loop_waste). page_size is capped at 100. Use get_latest_roi_analyses for just the current recommendation per type, or get_roi_analysis for one result's full detail.
| Parameter | Type | Description |
|---|---|---|
agent_id | ||
analysis_type | ||
order | ||
page | ||
page_size | integer |
get_latest_roi_analyses
Get the latest *finished* ROI analysis result per type for one agent — the agent's current cost-optimization recommendations. Both agent_id and analysis_types are required. Returns a dict keyed by analysis_type; a type with no finished run yet is simply absent from the result rather than erroring.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
analysis_types * | array |
get_roi_analysis
Get one ROI analysis result by ID (findings, estimated $ savings, status, timestamps).
| Parameter | Type | Description |
|---|---|---|
analysis_id * | string |
list_evaluations
List evaluation definitions (probes/metrics), including red-teaming adversarial probes. Filters: search (substring match on name), approach ('probe' or 'metric'). Attack-technique/goal detail for adversarial_probe evaluations lives in each item's config. Page-numbered; page_size is capped at 100. Use get_evaluation for full config detail.
| Parameter | Type | Description |
|---|---|---|
approach | ||
order | ||
page | integer | |
page_size | integer | |
search |
get_evaluation
Get one evaluation definition's full detail, including its config (attack_techniques/adversarial_goals/num_prompts/max_turns for adversarial_probe evaluations).
| Parameter | Type | Description |
|---|---|---|
evaluation_id * | string |
list_agent_evaluations
List agent<->evaluation assignments with their latest-run status. Filters: agent_id, evaluation_id, search (substring match on name). Each row includes evaluation_name, latest_run_status/progress/summary, and a score_trend (last 5 scores). Page-numbered; page_size is capped at 100. Use get_agent_evaluation for full detail, get_agent_evaluation_summary for the OWASP-coverage/health rollup across all of one agent's evaluations.
| Parameter | Type | Description |
|---|---|---|
agent_id | ||
evaluation_id | ||
order | ||
page | integer | |
page_size | integer | |
search |
get_agent_evaluation
Get one agent<->evaluation assignment's full detail.
| Parameter | Type | Description |
|---|---|---|
agent_evaluation_id * | string |
get_agent_evaluation_summary
Get one agent's evaluation health rollup: health (score/previous_score), coverage (per-category pass/at-risk/not-run counts), and score trend over time. agent_id is required.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string |
list_evaluation_runs
List evaluation runs. Filters: evaluation_id, agent_evaluation_id. status is one of queued/running/finished/error. Page-numbered; page_size is capped at 100. Use get_evaluation_run for one run's full detail and list_evaluation_run_results for its per-prompt results.
| Parameter | Type | Description |
|---|---|---|
agent_evaluation_id | ||
evaluation_id | ||
order | ||
page | integer | |
page_size | integer |
get_evaluation_run
Get one evaluation run's detail: status, progress, summary, timestamps.
| Parameter | Type | Description |
|---|---|---|
evaluation_run_id * | string |
list_evaluation_run_results
List one run's per-prompt results (score, status, conversation transcript). status is one of passed/failed/error/scored. There is no separate detail endpoint for a single result, so conversation turns are trimmed here for context budget rather than dropped: every turn is kept (turn sequence matters for multi-turn attacks) but each turn's text is truncated to 300 chars. For full-fidelity transcript review, use the product UI. Page-numbered; page_size is capped at 100.
| Parameter | Type | Description |
|---|---|---|
evaluation_run_id * | string | |
order | ||
page | integer | |
page_size | integer |
get_agent_endpoint
Get one agent's target-endpoint config for red-teaming (endpoint_url, endpoint_auth_type, model_type, config). Secrets (endpoint_credential, endpoint_headers) are redacted server-side and always come back empty.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string |