Skip to main content
Glama

host_setup

Destructive

Establish managed instruction configurations for supported agent hosts. Plan changes or apply rules to ensure consistent behavioral policies across all your AI workflows.

Instructions

Plan or apply managed instruction configuration for a supported agent host. Use after project initialization; use host_check to validate an existing configuration and sync_instructions to refresh active rules. force=false returns a plan; force=true applies managed changes through the snapshot/audit pipeline. It does not mean unrestricted overwrite of unmanaged files. Returns planned changes, validation, manual steps, warnings, and write references.

Input Schema

NameRequiredDescriptionDefault
forceNoApply managed host configuration when true. Defaults to false for planning; does not bypass unmanaged-content protections.
host_idYesSupported host registry ID, for example codex or claude_code; use the ID rather than a display name.
max_charsNoMaximum managed instruction block length in characters. Defaults to 4000; both line and character limits apply.
max_linesNoMaximum managed instruction block length in lines. Defaults to 100; used together with max_chars and host policy limits.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.6.4
    • addedInput schema / properties / force / description
      Added value: +"Apply managed host configuration when true. Defaults to false for planning; does not bypass unmanaged-content protections."
    • addedInput schema / properties / host_id / description
      Added value: +"Supported host registry ID, for example codex or claude_code; use the ID rather than a display name."
    • addedInput schema / properties / max_chars / description
      Added value: +"Maximum managed instruction block length in characters. Defaults to 4000; both line and character limits apply."
    • addedInput schema / properties / max_lines / description
      Added value: +"Maximum managed instruction block length in lines. Defaults to 100; used together with max_chars and host policy limits."
  2. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and the description does real work to qualify that: application goes 'through the snapshot/audit pipeline' and 'does not mean unrestricted overwrite of unmanaged files.' That is valuable context an agent would otherwise have to guess from a destructive hint. The only soft spot is that it doesn't spell out recoverability (e.g., rollback via snapshots) or that repeated application is not idempotent, both of which matter given 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?

It is dense and front-loaded: purpose first, then routing, then mode semantics. The closing sentence enumerating return values ('planned changes, validation, manual steps, warnings, and write references') is largely redundant with the existing output schema and could be dropped.

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?

For a four-parameter tool with full schema coverage and an output schema, the description covers the remaining unknowns: when to reach for it, what the mode flag changes, and how its write path is governed. Nothing an agent needs to invoke it correctly is missing.

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 coverage is 100%, so host_id, force, max_chars, and max_lines are all already documented in the schema itself. The description restates the force semantics but adds no new meaning on format, host registry values, or how the two limit parameters interact beyond what the property descriptions say. Baseline 3 applies when the schema carries the load.

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 names a specific verb pair and resource: 'Plan or apply managed instruction configuration for a supported agent host.' It immediately scopes the tool by naming two siblings it is not ('use host_check to validate... and sync_instructions to refresh'), so an agent can pick correctly without opening any schema.

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?

It gives an explicit precondition ('use after project initialization'), two named alternatives with their distinct purposes, and a decision rule for the main parameter ('force=false returns a plan; force=true applies'). That is when-to-use, when-to-use-something-else, and how to choose mode in one place.

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