Skip to main content
Glama

Generate Threat Model

generate_threat_model

Create a threat model from a normalized architecture (ReactFlow nodes + edges). Aribot stores the components and generates the threats. Returns the diagram id.

Input Schema

NameRequiredDescriptionDefault
nameNoThreat model name
edgesNoReactFlow edges
nodesYesReactFlow nodes (each: id, position, data.label)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish that this is a non-read-only, non-idempotent mutation with no destructive or open-world risk. The description goes beyond that by disclosing the concrete side effects (Aribot stores the components, generates the threats) and the return value (diagram id), which is valuable since no output schema exists. It still omits that repeated calls create new diagrams rather than updating, which is the practical consequence of idempotentHint=false.

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?

Three tight sentences with no filler; the action and input format are front-loaded and the return value is stated last. Slightly terse given no alternatives are mentioned, but nothing is wasted.

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

Completeness4/5

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

For a 3-param mutation tool with full schema coverage and no output schema, the description covers the input contract and the return value plus the side effect. The main gap is the absence of any guidance about re-generation/idempotency behavior.

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

Parameters3/5

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

Schema description coverage is 100%, so name, edges, and nodes are already documented by the schema, including the node shape (id, position, data.label). The description's 'ReactFlow nodes + edges' phrasing reinforces but does not extend that, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb (Create) and resource (threat model) plus the exact input shape (normalized architecture of ReactFlow nodes + edges). An agent can tell this is the threat-generation step, but the description never explicitly distinguishes it from siblings like generate_architecture, leaving that contrast implicit.

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

Usage Guidelines2/5

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

The description implies a precondition (input must be a normalized architecture) but gives no explicit when-to-use guidance, no when-not conditions, and never names an alternative tool such as generate_architecture or verify_threats_in_code.

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.