Skip to main content
Glama

pio_project_envs

List every PlatformIO environment with board, platform, framework, monitor/upload settings, lib_deps, and build flags, and identify default envs before building or flashing.

Instructions

Read platformio.ini and list every environment with its board, platform, framework, monitor/upload settings, lib_deps, and build_flags, plus which envs are default. Cheap; call before building or flashing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_dirNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It indicates a read operation via 'Read' and mentions 'Cheap' regarding performance, but it does not explicitly state that the tool has no side effects or what happens if project_dir is null. This is a moderate gap.

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?

The description is two sentences, front-loading the main action and details, and ends with a usage tip. No wasted words; it is well-structured and concise.

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?

The description covers the tool's function and usage, but it fails to explain the project_dir parameter, which is essential for correct invocation. Since there is an output schema, return values are covered elsewhere, but the missing parameter explanation leaves the definition incomplete.

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

Parameters1/5

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

The schema has one optional parameter, project_dir, with 0% description coverage, and the description does not mention it at all. An agent cannot infer the parameter's purpose or how it affects the tool's behavior. This is a significant omission.

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 states a specific action ('Read platformio.ini and list every environment') and enumerates the exact fields included (board, platform, framework, monitor/upload settings, lib_deps, build_flags, default status). This is precise and differentiates from sibling tools like pio_build or pio_upload, which are action-oriented.

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?

The description explicitly says 'Cheap; call before building or flashing,' which tells the agent when to invoke it. However, it does not name alternative tools or state when not to use it, so it lacks exclusions but provides a clear context.

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