Skip to main content
Glama
johsem

Semaphore UI MCP server

by johsem

attach_template_inventory

Destructive

Attach a specified inventory to a Semaphore UI project template by ID, enabling automation tasks to use the correct hosts and variables.

Instructions

Attach Inventory. POST /project/{project_id}/templates/{template_id}/inventory/{inventory_id}/attach.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
template_idYes
inventory_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, readOnlyHint=false and openWorldHint=true, so the risk profile is covered structurally. The description adds no behavioral context beyond the raw endpoint: nothing about whether the attach replaces existing inventory associations, whether it is reversible, or what authorization is needed.

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?

Two compact sentences with the action front-loaded and no filler. The second sentence is essentially a URL restatement, which is terse but of marginal value to an agent that already has the parameter list.

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

Completeness2/5

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

For a destructive, non-idempotent mutation with three undocumented parameters and no output schema, the description should say what changes as a result of the attach and what an agent should verify before calling it. Neither is present, leaving the definition thin for the operation's risk level.

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 0%, so the description must compensate, and it partially does: the path template maps each of the three integers to a role (a project, a template within it, an inventory to attach). It still gives no constraints, such as whether the inventory must be related to that project or what errors occur on mismatch.

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

Purpose3/5

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

The description restates the tool name ('Attach Inventory') and then gives the REST endpoint, which reveals that the operation links an inventory to a template within a project. That is more informative than the title alone, but it never states in plain language what 'attach' means for the objects involved. The existence of detach_template_inventory and set_template_default_inventory makes the distinction inferable but not explicit.

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?

There is no statement of when this should be used versus detach_template_inventory or set_template_default_inventory, and no prerequisites (e.g. that the inventory must already exist and belong to the project). The agent is left to infer usage entirely from the name and URL.

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