Skip to main content
Glama

check_environment

Checks this machine for required and optional dependencies Context Broker needs, reports missing Python versions, packages, model cache, and external tools, and can install missing Python packages after confirmation.

Instructions

Check this machine for everything context-broker needs to run.

Reports missing required/optional dependencies (Python version, packages, embedding model cache, external tools). Nothing is installed by default. To install missing required Python packages, call again with install_missing=True; the tool then asks for explicit confirmation and only proceeds when confirm="yes".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
install_missingNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a solid job: it discloses that nothing is installed by default, that installs are gated behind install_missing=True plus explicit confirm="yes", and that only required packages are installed. It could add whether the check step performs any network or filesystem writes, but the mutation safety model is clearly disclosed.

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-loads the purpose in the opening clause, then layers the dependency list and the install flow in a logical order. Sentences are tight; the parenthetical list is informative rather than padding.

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?

For a two-parameter diagnostics tool with an output schema (so return values needn't be described), the description covers purpose, side effects, and the confirmation gate. Minor gap: it doesn't state that checking alone is read-only or that a re-check confirms successful installation.

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

Parameters4/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. It covers both parameters meaningfully: install_missing as the install switch and the exact confirm="yes" literal needed to proceed — information the bare schema does not convey. It does not cover the empty default behavior of confirm, but the essential semantics are present.

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?

States a specific verb and scope: checking the local machine for every dependency context-broker needs (Python version, packages, model cache, external tools). This is clearly distinguishable from the sibling tools, which are documentation, search, routing and session tools.

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

Usage Guidelines4/5

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

Gives a clear usage path: run it to check, then re-run with install_missing=True to install required packages. It omits explicit exclusions or named alternatives, but the two-phase check-then-install flow is spelled out well enough that an agent knows which call to make.

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