Skip to main content
Glama
Mipiti
by Mipiti

assign_to_components

Replace an asset's or control's component scope to link security controls to the repos that implement them or bind assets to code ownership.

Instructions

Replace an asset's or a control's component scope. Mutating.

Components are the canonical bridge between security architecture (trust boundaries) and code organization (repos). target_type selects what is being scoped:

  • "control" — replace a control's component scope. A control scoped to one or more components is visible to coding agents working in those repos (matched via Component.repo_url + Component.path); an unscoped control is visible everywhere. Use when wiring a previously unscoped control to the component(s) that implement it, adding a second component to a cross-cutting control (e.g. "all microservices enforce JWT validation"), or correcting a wrong assignment. target_id is the control ID (e.g. "CTRL-03").

  • "asset" — replace an asset's component scope. Linking assets to components flows boundary context into reachability derivation without giving Asset its own trust_boundary_ids. Multi-component is the right shape for a multi-instance asset (e.g., a session token on client + cache + DB — each component handles a distinct instance). target_id is the asset ID (e.g. "A1").

Both variants are mechanical / non-AI-gated and validate only that every referenced component exists on the model.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYesID of the threat model.
target_idYesID of the asset or control to scope (must match ``target_type``).
target_typeYesEither "asset" or "control" — which entity to scope.
change_reasonYesWhy this scope is appropriate (min 10 chars). Captured in the version history.
component_idsYesComma-separated component IDs (e.g., "CMP1,CMP2"). Empty string = unscoped (a control becomes visible to every coding agent; an asset loses its explicit code-ownership binding). Every supplied ID must exist on the model.
server_versionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the prose carries the full burden. The description openly states 'Mutating', 'mechanical / non-AI-gated', and 'validate only that every referenced component exists', and it explains the side effect of scoping controls/visible to coding agents. It could have also disclosed irreversibility or permissions, but the behavioral boundaries are reasonably clear and go beyond minimal.

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

Conciseness5/5

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

Although the description is longer than a simple phrase, it is tightly structured with a single high-level opening, two alternating bullets for target_type, and a short shared tag about the behavior. Each sentence contributes operational knowledge: what happens to scalars, how repo visibility works, when to use multi-assignment, and what validation applies. There is no repetition of heavy struct/schema content.

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 multiple parameters and two semantically different modes with no annotations, the description is almost complete: it covers both target types, the meaning of component scoping, the side effects of empty `component_ids`, the validation guarantee, and important domain specifics. The only notable gap is `server_version` is not described and there is no explicit statement about the required `change_reason` semantic format, but the output schema and rich parameter schema fill in many remainder.

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?

The schema already covers 83% of the parameters, and the description adds real semantic value on top: it explains what `target_type` chooses, what each `target_id` form should look like (with examples like 'CTRL-03' and 'A1'), and what `component_ids` means semantically. The `server_version` parameter is not described, but the schema burden is otherwise largely filled, so some additional value over the schema is present.

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 opening sentence states exactly what the tool does: 'Replace an asset's or a control's component scope.' The description then separates the two variants (`target_type = control` vs `target_type = asset`) with concrete use cases and examples, which clearly distinguishes this tool from sibling tools like `remap_control`, `edit_asset`, or `add_component`.

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?

The description gives practical 'when to use' guidance: for controls it explicitly says 'Use when wiring a previously unscoped control... adding a second component... or correcting a wrong assignment'; for assets it explains the value of linking assets to components and gives the multi-instance asset example. It does not explicitly say 'do not use this if you need to modify component definitions or other entity attributes', so it stops just short of full exclusionary guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mipiti/mipiti-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server