Skip to main content
Glama

check_environment

Verifies Python, PDF library and reader, fonts, and output directory writability before a long generation, helping you catch missing prerequisites early.

Instructions

Report whether this machine can produce material: Python version, PDF library, PDF reader, fonts and whether the output directory is writable. Call this before a long generation on an unfamiliar machine.

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
output_dirNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.2/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 it discharges most of it: "Report" frames the tool as a diagnostic check with no implied mutation, and the listed checks describe exactly what is inspected. It stops short of explicitly stating that nothing is written or installed, and it does not say how the result is reported, though an output schema exists to cover the response shape.

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?

Two sentences, both earning their place: the first front-loads the verb and enumerates every check performed, and the second supplies the usage condition. There is no filler or restatement of the tool name.

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 the response format need not be explained, and the description covers purpose, scope, and timing for a simple diagnostic tool with one optional parameter. The only real gap is the null/default behavior of output_dir and an explicit statement that the check is side-effect free.

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?

The single parameter output_dir has no schema description (0% coverage), but the description ties it to the writability check by naming "whether the output directory is writable." It does not explain what happens when output_dir is null (the declared default), so an agent cannot tell whether the check falls back to the current working directory.

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?

The description uses a specific verb ("Report") against a defined resource (this machine's ability to produce material) and enumerates the exact checks: Python version, PDF library, PDF reader, fonts, and output-directory writability. That enumeration cleanly separates it from siblings like estimate_material and generate_materials, which act on project content rather than runtime capability.

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?

It gives an explicit trigger condition: "Call this before a long generation on an unfamiliar machine." That tells the agent both when to use it and the situation it is designed for. It does not explicitly name generate_materials as the alternative it precedes, but the sequencing guidance is clear enough to route correctly.

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