Skip to main content
Glama

Check targets (deprecated)

guard_check
Read-onlyIdempotent

Checks a risky shell command’s targets (kube/AWS/git/Terraform/Ansible) against workspace-listed targets to flag unlisted ones. Read-only; reports unresolved target kinds.

Instructions

Deprecated: the client decides locally now; use warnings. Checks a risky shell command's targets (kube context, AWS profile, git remotes, Terraform root, Ansible inventory) against this workspace's listed targets. Read-only. unresolved lists target kinds that could not be determined (command when the line did not parse); an empty unlisted then does not mean all clear.

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": {
      "command": "<command>",
      "cwd": "<cwd>"
    },
    "name": "guard_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesWorking directory the command runs in.
commandYesThe full shell command line.
aws_profileNoCurrent AWS profile, if any.
git_remotesNoGit remotes of cwd, name to URL.
kube_contextNoCurrent kubectl context, if any.
ansible_inventoryNoInventory ansible-playbook uses without -i (comma-separated, as in ANSIBLE_INVENTORY).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the 'Read-only' sentence is largely redundant. The genuinely additive part is the output-interpretation caveat: `unresolved` lists target kinds that could not be determined, so an empty `unlisted` is not proof of safety. That is useful but narrow, and no cost, latency, or failure-mode context is given.

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?

Front-loaded with the deprecation notice, followed by purpose, safety profile, and the output caveat in four compact sentences. The only waste is the 'Read-only' clause, which restates readOnlyHint=true from the annotations.

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?

An output schema exists, so return values need not be explained, yet the description still supplies the one interpretive nuance an agent would get wrong (empty `unlisted` alongside a non-empty `unresolved`). Combined with the deprecation redirect and a fully described 6-parameter schema, an agent has what it needs to decide and call correctly.

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 each parameter is already documented in the schema, establishing a baseline of 3. The description does map the checked target kinds onto the aws_profile, kube_context, git_remotes, and ansible_inventory parameters, which clarifies why those inputs exist, but it adds no format or edge-case detail beyond that.

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?

States a concrete verb and resource: it checks a risky shell command's targets (kube context, AWS profile, git remotes, Terraform root, Ansible inventory) against this workspace's listed targets. That is far more specific than the title, and it names the sibling `warnings` as the replacement. It stops short of 5 only because the deprecation redirect, not the tool's own behavior, is what the reader is meant to act on.

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?

The first clause is an explicit when-not-to-use: 'Deprecated: the client decides locally now; use warnings.' It names the alternative tool and the condition that selects it, which is exactly the routing an agent needs.

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