Skip to main content
Glama

gateway.set_startup_policy

Preview or apply autoStart add, remove, or set changes for selected servers in a project, user, or custom config source; dry-run is default before writing.

Instructions

Preview or explicitly apply an autoStart add/remove/set operation against one selected config source or path.

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": {
      "operation": "<operation>"
    },
    "name": "gateway.set_startup_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoExplicit config file path (overrides source)
applyNoWrite the change (requires dry_run=false)
namesNoServer names the operation applies to
sourceNoConfig source to edit (project, user, or custom)
dry_runNoPreview without writing
operationYesMutation to apply to the autoStart list

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv3.0.1
    • addedInput schema / properties / apply / description
      Added value: +"Write the change (requires dry_run=false)"
    • addedInput schema / properties / dry_run / description
      Added value: +"Preview without writing"
    • addedInput schema / properties / names / description
      Added value: +"Server names the operation applies to"
    • addedInput schema / properties / operation / description
      Added value: +"Mutation to apply to the autoStart list"
    • addedInput schema / properties / path / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / path / description
      Added value: +"Explicit config file path (overrides source)"
    • removedInput schema / properties / path / type
      Removed value: -"string"
    • addedInput schema / properties / source / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "project",
      +      "user",
      +      "custom"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / source / description
      Added value: +"Config source to edit (project, user, or custom)"
    • removedInput schema / properties / source / enum
      Removed value: -[
      -  "project",
      -  "user",
      -  "custom"
      -]
    • removedInput schema / properties / source / type
      Removed value: -"string"
  2. First observedv1.18.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the important two-mode behavior (dry preview vs explicit write) and that the change is scoped to a single source or path, but it omits permissions needed, whether a missing file is created, whether running servers are restarted, and whether the write is reversible.

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?

A single front-loaded sentence with no filler, but it packs preview, apply, three operations, and target selection into one dense clause, making it harder to parse at a glance than a short structured split would be.

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

Completeness3/5

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

With six parameters, zero annotations, and no output schema, the description covers the operation modes and target selection adequately. It stops short on what preview returns and what a successful apply confirms, which an agent would want before calling a mutating config tool.

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 100%, so every parameter already carries its own documentation including the dry_run/apply interaction. The description's phrase 'one selected config source or path' echoes the path-overrides-source rule rather than adding new meaning, so baseline 3 applies.

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?

The description names a specific verb pair (preview/apply), a specific resource (the autoStart list), and the mutation set (add/remove/set) against one config source or path. An agent can distinguish it from gateway.get_startup_policy by the mutation framing, though it never names that sibling explicitly.

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

Usage Guidelines3/5

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

The preview-vs-apply distinction is implied by 'Preview or explicitly apply', which hints at the safe path, but there is no explicit when-to-use guidance, no statement of when to prefer gateway.get_startup_policy first, and no mention of prerequisites for the write path.

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