Skip to main content
Glama
npow

metaflow-mcp-server

by npow

get_environment

Retrieves conda or pypi environment details for a Metaflow task or run. Filter by package type, name, or max packages to inspect installed dependencies.

Instructions

Get the conda/pypi environment details for a Metaflow task or run.

Returns the full list of packages installed, user-requested dependencies, and metadata (who resolved it, when, architecture, environment type).

Works with both Netflix (nflx-metaflow) and OSS Metaflow installations.

Args: pathspec: Run ("FlowName/RunID"), step ("FlowName/RunID/StepName"), or task ("FlowName/RunID/StepName/TaskID") pathspec. For run pathspecs, scans steps to find the first with an environment. package_type: Filter packages by type: "conda" or "pypi". If omitted, returns all. package_name: Filter packages by name (case-insensitive substring match). Use this to check if a specific package is installed and what version. E.g. "numpy" returns only packages with "numpy" in the name. max_packages: Max number of packages to return. If the environment has more, the list is truncated and packages_truncated=true is set. Useful for large environments (100+ packages).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathspecYes
package_typeNo
package_nameNo
max_packagesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description adequately discloses behavioral traits: it returns a full list of packages, metadata, and truncation behavior when max_packages is set. It also explains how run pathspecs scan steps. However, it does not mention permissions or potential side effects, but as a read-only tool, this is acceptable.

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?

The description is well-structured with a clear purpose sentence, a summary of return data, and an 'Args:' section. It is slightly verbose but every sentence adds value. The front-loading of the purpose is effective.

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 presence of an output schema (context signal), the description provides sufficient context: it explains the return value and covers all parameters with edge cases (e.g., run pathspec scanning, truncation). It is complete for a tool with four parameters and no annotations.

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

Parameters5/5

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

Schema description coverage is 0%, so the description compensates fully. It explains all four parameters clearly: pathspec format, package_type filtering, package_name substring matching, and max_packages truncation. Each parameter gains significant meaning beyond the bare schema.

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 clearly states it retrieves conda/pypi environment details for a Metaflow task or run. The verb 'Get' and specific resource 'environment details' distinguish it from sibling tools like get_artifact or get_config.

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

Usage Guidelines3/5

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

The description does not explicitly provide usage guidelines or compare with sibling tools. It only mentions compatibility with Netflix and OSS Metaflow, which is not guidance on when to use this tool over alternatives. The purpose is narrow enough that usage might be implied, but explicit guidance is lacking.

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

Install Server

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/npow/metaflow-mcp-server'

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