Skip to main content
Glama
Infrastructure MCP Server

Infrastructure MCP Server

by berkeleyo

detect_infrastructure_drift

Read-onlyIdempotent

Compares discovered cloud resources against an allowlisted desired state to identify configuration drift and report mismatches.

Instructions

Compare discovered resources with an allowlisted desired state.

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": {
      "profile": "<profile>",
      "desired_state": "<desired_state>"
    },
    "name": "detect_infrastructure_drift"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileYes
desired_stateYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds only the 'allowlisted' nuance, and says nothing about what a drift result means, whether comparison is scoped by profile, or how non-allowlisted resources are treated.

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 tight sentence with no filler, and the core comparison is front-loaded. Its brevity is a virtue structurally, even though the content is thin overall.

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?

An output schema exists, so return values need not be described, but a two-parameter tool with zero schema coverage and no usage context is under-specified. An agent cannot determine what a profile is or what format the desired state takes before calling.

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

Parameters2/5

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

Schema coverage is 0% for two required parameters. The description gestures at 'desired_state' but never says whether it is inline JSON, a file path, or an identifier, and 'profile' is not explained at all. This leaves the caller guessing on both required inputs.

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 and resource: compare discovered resources against a desired state, and adds the qualifier 'allowlisted', which tells the agent only allowlisted resources count. It is clearly a drift-detection operation, though it does not explicitly contrast itself with siblings like validate_infrastructure_config.

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 to reach for this tool versus validate_infrastructure_config or infrastructure_health, and no prerequisites or preconditions are given. The agent must infer the use case entirely from the name and the single sentence.

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