Skip to main content
Glama

ai_threat_model

Read-only

STRIDE threat model — Generate a STRIDE threat model from a plain-English system description (text=, up to 12,000 chars: components, users, data, integrations, hosting). Returns components, data flows with trust-boundary crossings, 8-16 system-specific threats (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) each with likelihood, impact, a computed 3x3 risk rating, concrete mitigations and CWE ids, sorted by risk; STRIDE coverage counts and missing categories; offline gap hints (auth without spoofing threats, uploads, payments/webhooks, roles/tenants, LLM prompt injection, audit logging); assumptions, open questions and a Markdown table. Optional: assets= (what matters most), focus= (e.g. API, mobile app). Llama 3.3 70B on Workers AI. Price: $0.012 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "ai_threat_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesReact SPA calls a Node API with JWT login; Postgres database; file uploads to S3; Stripe webhooks for billing; admin dashboard with roles.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds substantial context beyond the annotations: the backing model (Llama 3.3 70B on Workers AI), the per-call price and payment rail ($0.012 USDC on Base via x402), and the 12,000-char input ceiling. The readOnly/openWorld annotations already cover the safety profile, so the remaining gap is minor, but nothing is said about latency/rate limits or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the artifact name and the action, then the input, then the return shape, then pricing. Density is high and the return-value list is a long semicolon run, but nearly every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description fully enumerates the return structure — components, trust-boundary crossings, threat list with likelihood/impact/risk/CWE/mitigations, coverage counts, gap hints, assumptions, and Markdown output. Nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema example is already rich, yet the description still contributes meaning: the 12,000-char budget and the checklist of what the description should contain. It also references assets= and focus= options that are absent from the supplied schema, which slightly muddies the parameter picture.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and artifact ('Generate a STRIDE threat model') plus the exact input form ('plain-English system description'), so an agent can distinguish this from lookup/scanning siblings like threat_ip or threat_blocklist without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context for use (plain-English system description with components, users, data, integrations, hosting) and names good fits for the optional assets= and focus= inputs. It stops short of any when-not-to-use statement or explicit routing to a sibling such as security_domain_threat_report.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources