Skip to main content
Glama
Mipiti
by Mipiti

Get Controls

get_controls

Retrieve implementation controls for a threat model: list controls with filters, pagination, and status, or fetch one control's full detail including evidence and verification status.

Instructions

Get implementation controls for a threat model — list or single-control detail. Read-only (with one list-mode side effect, below).

Two modes, selected by whether control_id is set:

  • List mode (control_id omitted) — returns the controls that should be implemented to satisfy the model's control objectives, as {"controls": [...], "total": N, "returned": M}. One side effect: if controls have never been generated for this model, the first call triggers generation. Generation may finish inline or continue in the background — if results look incomplete, poll get_control_generation_status and re-read once it reports complete. The filters (status, co_id, component_id), pagination (offset/limit), and the include_deleted / include_orphaned / summary_only toggles apply only in this mode. By default list mode excludes ORPHANED controls (controls whose every mapped CO is tombstoned because its asset/attacker pair was removed in a later version); pass include_orphaned=True to include them — each returned control carries a boolean orphaned field so callers can render the distinction.

  • Detail mode (control_id set) — returns a single control directly (NOT wrapped in an array) with verified-status enrichment and an orphaned flag derived from the live CO set. 404 if the control doesn't exist on the requested version. Pass version to read the control as of a specific model version. The list-mode filters, pagination, and toggles are ignored in this mode.

Objective mapping is not coverage credit. The control-objective ids a control carries record which objectives it is ATTACHED to, not which ones it is required to satisfy. Within an objective, a control is either a member of a required mitigation group or it is defense-in-depth, which is tracked but earns no mitigation credit. A control that is defense-in-depth on every objective it touches can be fully implemented and fully verified without moving a single objective out of at-risk. Read get_mitigation_groups for the per-objective role before deciding a control is worth evidence work — the id list alone will not tell you whether proving it changes anything.

Two different status fields — do not conflate them. status is the operator-set implementation state (not_implemented / implemented / verified). verification_status and is_verified are the EVIDENCE state, derived from the control's assertions:

  • "verified" — every assertion passes both tiers AND they collectively cover the whole control description.

  • "partially_verified" — deliberately covers three distinct situations, so it does not by itself tell you what to fix: some assertion FAILED a tier, or all passed but leave clauses of the description UNPROVEN, or the control leaned on an operator attestation that has since EXPIRED. Call get_sufficiency on the control to find out which.

  • "pending" — assertions exist, some still awaiting evaluation.

  • "unverified" — no assertions submitted at all.

A control with assertion_count well above zero and every tier passing can still read partially_verified; that is the normal state for evidence narrower than the description promises, and the fix is more assertions (or a narrower description), never a verdict recompute.

A for-all clause — one that ranges over every entry of a surface — is credited only by a sound type bound to it with covers; an attestation never substitutes. What each clause still needs is served per clause by get_control_work_order in required_evidence.

Filtering status="implemented" returns controls the operator marked implemented that have NOT been promoted to verified — the right filter for "what still needs evidence work". It reads this model's OWN stored controls; controls inherited through composition are counted by assess_model but are managed on their source model.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
co_idNoList-mode filter — control objective ID.
limitNoList mode — max controls to return (0 = all).
offsetNoList mode — skip the first N controls (pagination).
statusNoList-mode filter — "implemented", "not_implemented", or "verified".
versionNoDetail mode only — model version to read the control from. 0 (default) uses the latest. Ignored in list mode.
model_idYesID of the threat model.
control_idNoIf set, detail mode — return this one control's full record directly (e.g. ``CTL-12``). If omitted, list mode.
component_idNoList-mode filter — component ID (e.g., "CMP1").
summary_onlyNoList mode — if True, returns only id, description, status, assertion_count, and assumed_by per control (much smaller response).
server_versionYes
include_deletedNoList mode — include soft-deleted controls (default False).
include_orphanedNoList mode — include controls mapped only to tombstoned COs (default False).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.71.1
    • changedInput schema / properties / control_id / description
      Previous value: -"If set, detail mode �� return this one control's full\nrecord directly (e.g. ``CTL-12``). If omitted, list mode."New value: +"If set, detail mode — return this one control's full\nrecord directly (e.g. ``CTL-12``). If omitted, list mode."
  2. Changed1 schema field changedv0.71.0
    • changedInput schema / properties / control_id / description
      Previous value: -"If set, detail mode — return this one control's full\nrecord directly (e.g. ``CTL-12``). If omitted, list mode."New value: +"If set, detail mode �� return this one control's full\nrecord directly (e.g. ``CTL-12``). If omitted, list mode."
  3. Changed10 schema fields changedv0.68.2
    • changedInput schema / properties / co_id / description
      Previous value: -"Filter by control objective ID."New value: +"List-mode filter — control objective ID."
    • changedInput schema / properties / component_id / description
      Previous value: -"Filter by component ID (e.g., \"CMP1\")."New value: +"List-mode filter — component ID (e.g., \"CMP1\")."
    • changedInput schema / properties / control_id / description
      Previous value: -"Optional specific control id for detail mode."New value: +"If set, detail mode — return this one control's full\nrecord directly (e.g. ``CTL-12``). If omitted, list mode."
    • changedInput schema / properties / include_deleted / description
      Previous value: -"Include soft-deleted controls (default False)."New value: +"List mode — include soft-deleted controls\n(default False)."
    • changedInput schema / properties / include_orphaned / description
      Previous value: -"Include controls mapped only to tombstoned COs\n(default False)."New value: +"List mode — include controls mapped only to\ntombstoned COs (default False)."
    • changedInput schema / properties / limit / description
      Previous value: -"Max controls to return (0 = all)."New value: +"List mode — max controls to return (0 = all)."
    • changedInput schema / properties / offset / description
      Previous value: -"Skip the first N controls (pagination)."New value: +"List mode — skip the first N controls (pagination)."
    • changedInput schema / properties / status / description
      Previous value: -"Filter by \"implemented\", \"not_implemented\", or \"verified\"."New value: +"List-mode filter — \"implemented\", \"not_implemented\", or\n\"verified\"."
    • changedInput schema / properties / summary_only / description
      Previous value: -"If True, returns only id, description, status,\nassertion_count, and assumed_by per control (much smaller\nresponse)."New value: +"List mode — if True, returns only id, description,\nstatus, assertion_count, and assumed_by per control (much\nsmaller response)."
    • addedInput schema / properties / version
      Added value: +{
      +  "default": 0,
      +  "description": "Detail mode only — model version to read the control\nfrom. 0 (default) uses the latest. Ignored in list mode.",
      +  "type": "integer"
      +}
  4. Changed7 schema fields changedv0.66.0
    • changedInput schema / properties / control_id / description
      Previous value: -"Optional specific control for detail mode."New value: +"Optional specific control id for detail mode."
    • changedInput schema / properties / include_deleted / description
      Previous value: -"Include soft-deleted controls."New value: +"Include soft-deleted controls (default False)."
    • changedInput schema / properties / include_orphaned / description
      Previous value: -"Include controls mapped only to tombstoned\nCOs (default False)."New value: +"Include controls mapped only to tombstoned COs\n(default False)."
    • changedInput schema / properties / limit / description
      Previous value: -"Max to return (0=all)."New value: +"Max controls to return (0 = all)."
    • changedInput schema / properties / offset / description
      Previous value: -"Skip first N (for pagination)."New value: +"Skip the first N controls (pagination)."
    • changedInput schema / properties / status / description
      Previous value: -"Filter by \"implemented\", \"not_implemented\", \"verified\"."New value: +"Filter by \"implemented\", \"not_implemented\", or \"verified\"."
    • changedInput schema / properties / summary_only / description
      Previous value: -"If True, returns only id, description, status,\nassertion_count, and assumed_by per control (much smaller response)."New value: +"If True, returns only id, description, status,\nassertion_count, and assumed_by per control (much smaller\nresponse)."
  5. Addedv0.62.2
  6. Removedv0.62.1
  7. First observedv0.57.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It openly reveals the list-mode side effect (triggering generation), the possibility of background completion, the default exclusion of orphaned controls, the direct return in detail mode vs array in list mode, the 404 behavior, and the distinction between two status fields. It even explains the nuanced semantics of 'partially_verified' and the behavior of filtering by status. This is exemplary transparency.

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?

The description is long, but it is well-structured with bolded section headers and bullet-like formatting. Each sentence adds necessary nuance for a tool with this complexity. The opening sentence front-loads the core purpose and modes. While it could arguably be trimmed slightly, the structure makes it navigable and the length is justified by the operational details required.

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?

Given the 12 parameters, the presence of an output schema, and the many sibling tools, the description is remarkably complete. It covers modes, side effects, status semantics, filtering behavior, inherited controls, and references to related tools for deeper needs. Nothing an agent needs to correctly invoke this tool appears to be missing.

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

Parameters5/5

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

Schema coverage is 92%, but the description adds significant meaning beyond the schema. It explains how control_id selects the mode, that filters/pagination/toggles apply only in list mode, that version only applies in detail mode, and interprets the status field. It also clarifies the meaning of include_orphaned and the orphaned flag. The description enriches every parameter's semantic context, going well beyond the schema descriptions.

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?

The description opens with a specific verb and resource ('Get implementation controls for a threat model') and immediately distinguishes the two modes (list vs single-control detail). It also flags the side effect in list mode, which sets it apart from purely read-only siblings. This makes the tool's purpose unmistakable and differentiates it from related tools like get_control_work_order or get_control_generation_status.

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

Usage Guidelines5/5

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

The description gives explicit guidance on when to use each mode based on whether control_id is set, and details when to poll get_control_generation_status. It also warns that objective mapping is not coverage credit, directing users to get_mitigation_groups for role determination, and clarifies the correct filter for 'what still needs evidence work'. It clearly routes to alternatives like get_sufficiency and get_control_work_order where appropriate.

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