Skip to main content
Glama

inspect_environment

Identify Python and Synthesizer environment details—version, installation status, paths, and env vars—to diagnose setup issues without importing Synthesizer.

Instructions

Report Python and Synthesizer environment facts.

Synthesizer is never imported here, so this is cheap and has no side effects. The price is being honest about what was checked: synthesizer_installed means only that a module spec with a real file origin was found. It is not proof that Synthesizer imports, and a broken C extension, the most common real failure mode for this package, is invisible to a spec lookup. import_error is therefore always None here; only :func:inspect_synthesizer_api, which does import, can populate it.

Returns: A mapping with python_version, platform, the executable and environment whose Synthesizer is being reported on, synthesizer_installed, synthesizer_version with the version_source that reported it, synthesizer_path, import_error (always None) and synthesizer_env_vars. Synthesizer resolves its directories as environment variable else platformdirs default, so only the SYNTHESIZER_* variables that are actually set are reported; resolving the defaults would mean importing the package.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description carries full burden and excels. It discloses no import side effects, explains the exact meaning and limitation of synthesizer_installed (spec lookup only, broken C extensions invisible), states import_error is always None, and explains that only set environment variables are reported to avoid importing. This is thorough and honest about tool behavior.

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?

Every sentence adds value: purpose, cost/safety, limitation of the installed check, and the exact return mapping with semantic notes. The structure front-loads the core purpose, then details nuances. No filler or redundancy.

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?

Given the tool's simplicity (no params, clear output), the description fully documents all return keys, their meanings, and the reasoning behind values like import_error=None. The output schema exists and is enriched by this description. Nothing an agent needs to invoke correctly is missing.

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 has zero parameters, so the baseline is 4 per rules. The description doesn't need to explain parameters, and it doesn't waste space on them. The mention of environment variables is about output, not parameters, so it's appropriate.

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 opens with 'Report Python and Synthesizer environment facts,' a clear verb-resource pair. It differentiates from the sibling inspect_synthesizer_api by explicitly stating it never imports Synthesizer, which tells the agent exactly what this tool does and doesn't do.

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 description explicitly contrasts itself with inspect_synthesizer_api: 'Synthesizer is never imported here, so this is cheap and has no side effects' and 'only inspect_synthesizer_api, which does import, can populate it.' This gives the agent a clear when-to-use vs. when-not-to-use decision, fulfilling the guideline requirement beyond mere context.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/synthesizer-project/synthia'

If you have feedback or need assistance with the MCP directory API, please join our Discord server