Skip to main content
Glama

Draw a threat model or security architecture

draw_security_slate

Draw threat-model data-flow diagrams, EU CRA Annex VII documentation, FDA security architecture views, repository component architecture, or STRIDE prompts as editable security slates.

Instructions

Draw a threat model (data-flow diagram with STRIDE prompts), an EU Cyber Resilience Act Annex VII technical documentation slate, the FDA premarket security architecture views, a component architecture from a repository's model, or STRIDE prompts beside an existing slate's parts.

Draw a security slate. Draw typed security notes and lines (real notes everyone edits). what: "threat-model" (a data-flow diagram with trust boundaries and a STRIDE sticky note for each part), "cra-annex-vii" (the EU Cyber Resilience Act's technical documentation: the system architecture for point 2(a) and a note for each point), "fda-views" (the FDA premarket security architecture views: global system, multi-patient harm, updateability/patchability and a security use case), "architecture" (the component view of a repository, from its architecture model or from its files: one boundary around what the code runs, a frame per tier, protocols from the code; data and encryption are left for people) or "stride" (STRIDE prompts as sticky notes beside a slate's typed parts; needs shareId). With shareId the drawing goes beside what that slate holds (edit access); without, it becomes a new private slate of yours named name. Each template cites the official text it follows. mode "preview" answers what would be drawn without saving.

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": {
      "what": "<what>"
    },
    "name": "draw_security_slate"
  }
}

Input Schema

NameRequiredDescriptionDefault
shaNoWith files: the commit they were read at.
modeNosave (the default) writes; preview returns what would change and saves nothing. The response says which happened.save
nameNoThe new slate's name (without shareId).
repoNoWith files: owner/name, for the title and links.
whatYes
filesNoInstead of architecture: the repository's files ({ path, text }), read by the architecture extractors (docker-compose, Kubernetes, Terraform, Helm, serverless). Only paths and names are kept, never the code.
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
shareIdNoDraw on this slate. Leave out to make a new private slate.
projectIdNoMake the new slate in this project or folder (without shareId).
architectureNoA repository's architecture model, as the architecture extractors build it (paths and names only, never code).
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A3.9/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: the confirmation gate (`confirm` + `idempotencyKey` after the person agreed), the non-persisting preview mode, the edit-access prerequisite for shared slates, and that repository files are reduced to paths and names with no code retained. It never states whether drawing onto an existing shared slate appends to or replaces its current parts — an important behavior given destructiveHint=false.

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

Conciseness3/5

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

Front-loaded reasonably, but the same five templates are enumerated twice — once in the opening sentence and again after 'Draw a security slate. Draw typed security notes and lines' — which is redundant filler. Roughly 200 words for what could be stated once, so every sentence does not earn its place.

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 an 11-parameter, nested-object tool with no output schema, the description covers template semantics, sharing/auth, preview safety, and the confirmation flow. It briefly hints at return behavior ('the response says which happened') but does not describe what a saved slate's response contains, leaving a minor gap.

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 description coverage is 91%, so the schema carries most parameter documentation; the description still adds real meaning by defining each `what` enum value, the shareId-vs-name/projectId split, the preview-vs-save mode, and when to send `files` instead of `architecture`. It adds nothing about the interplay of `sha`/`repo` between the top level and the `architecture` object, so not a 5.

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?

Specific verb (draw) plus a clear resource (a security slate) and an explicit enumeration of the five template types with what each produces (trust boundaries + STRIDE notes, CRA Annex VII points, FDA views, component view, STRIDE prompts). It does not name the related siblings (e.g. get_slate_security, create_slate, set_slate_security), so an agent must infer how this differs from them, which keeps it at 4 rather than 5.

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 concrete conditional guidance: shareId draws beside an existing slate and requires edit access, omitting it creates a new private slate named `name` in `projectId`, `mode: preview` answers without saving, and `stride` requires shareId. It also states `files` can be used instead of `architecture`. No explicit when-not-to-use or sibling routing is offered, which is the only gap.

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

Deploy Server

Other Tools