Skip to main content
Glama

check_environment

Read-only

Verify BPP command-line tools are installed and meet minimum versions, and confirm a project directory is set before running any other bpp-mcp tools.

Instructions

Check that the BPP command-line tools are installed and new enough.

Call this FIRST in every session, before any other tool. It runs <tool> --version for bpp-seqs, bpp-tree, bpp-lint, bpp-docs and bpp.

Output:

  • ready: true only when every tool is found and new enough AND a project directory is set. If false, read problems and help the user fix them before doing anything else; tell them the exact install_hint command.

  • tools.<name>: found, path, version, minimum_version, ok, and problem / install_hint when something is wrong. Most tools are installed by the user running bpp-mcp install-tools in a terminal (no root needed); you cannot run it for them.

  • project_root: the only directory the tools can read or write. Every path you pass to other tools is relative to it. If it is null, no project is set: ask the user which project folder to use and call set_project (if available), or explain that the host configuration must set BPP_MCP_ROOT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations by disclosing the full output contract (`ready`, `tools.<name>` fields, `project_root`), the constraint that the agent cannot run the install command itself, and that project_root is the only readable/writable directory with all other paths relative to it. This is unusually rich operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the imperative ('Check that ...') and the ordering rule ('Call this FIRST'), then organizes the rest into a scannable Output: list. Because no output schema exists, the return-value detail is load-bearing rather than padding.

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?

With no input parameters and no output schema, the description carries the full burden and meets it: it documents the readiness flag, per-tool fields, failure remediation, and the project_root scoping rule. An agent has everything needed to invoke it and act on its result.

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?

The tool takes zero parameters, so the baseline is 4. The description does add useful contextual semantics about the environment it inspects (project_root as the write scope, tool version minimums), but there are no parameters whose meaning could be clarified.

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 resource: verifying that the BPP command-line tools are installed and sufficiently recent, and names the exact tools checked (bpp-seqs, bpp-tree, bpp-lint, bpp-docs, bpp). This clearly distinguishes it from sibling tools that operate on data, trees, or control files.

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?

Explicitly instructs 'Call this FIRST in every session, before any other tool', and explains what to do when the check fails (read `problems`, tell the user the exact `install_hint` command). It also names the alternative path for setting a project (set_project or BPP_MCP_ROOT) when project_root is null.

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