Skip to main content
Glama
jfrog

JFrog MCP Server

Official
by jfrog

jfrog_list_environments

Retrieve a detailed list of environment types in the JFrog Platform, such as dev and prod, using this API tool.

Instructions

Get a list of all environments types (e.g. dev, prod, etc.) in the JFrog platform with their details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function that fetches the list of JFrog environments via API and parses the response using the schema.
    export async function getAllEnvironments() {
      const response = await jfrogRequest("/access/api/v1/environments", {
        method: "GET",
      });
         
      return accessSchemas.JFrogEnvironmentNamesSchema.parse(response);
    }
  • Zod schema for parsing the API response of environment names.
    export const JFrogEnvironmentNamesSchema = z.array(
      z.object({
        name: z.string().describe("Environment name")
      })
    );
  • tools/access.ts:41-49 (registration)
    Local tool definition including name, description, input schema, and handler reference.
    const getAllEnvironmentsTool = {
      name: "jfrog_list_environments",
      description: "Get a list of all environments types (e.g. dev, prod, etc.) in the JFrog platform with their details",
      inputSchema: zodToJsonSchema(z.object({})),
      //outputSchema: zodToJsonSchema(z.object({})),
      handler: async (args: any) => {
        return await getAllEnvironments();
      }
    };
  • tools/access.ts:85-90 (registration)
    Groups access-related tools into AccessTools array.
    export const AccessTools = [
      getAllEnvironmentsTool,
      listAllProjectsTool,
      createProjectTool,
      getSpecificProjectTool
    ];
  • tools/index.ts:13-23 (registration)
    Main tools registry that includes AccessTools, exposing jfrog_list_environments globally.
    export const tools =[
      ...RepositoryTools,
      ...BuildsTools,
      ...RuntimeTools,
      ...AccessTools,
      ...AQLTools,
      ...CatalogTools,
      ...CurationTools,
      ...PermissionsTools,
      ...ArtifactSecurityTools,
    ];
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states it's a read operation ('Get a list'), implying non-destructive behavior, but lacks details on permissions required, rate limits, pagination, or error handling. For a tool with no annotations, this is a significant gap in transparency, as it doesn't cover key behavioral traits beyond the basic read intent.

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 a single, efficient sentence that front-loads the core purpose without unnecessary details. It uses clear language ('Get a list of all environments types... with their details') and includes an example ('e.g. dev, prod, etc.') that adds value without verbosity. Every word earns its place, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 0 parameters, no annotations, and no output schema, the description is minimally adequate. It explains what the tool does but lacks context on behavioral aspects like permissions or output format. For a simple list tool, this might suffice, but without annotations or output schema, it leaves gaps in understanding how to interpret results or handle errors, making it only partially complete.

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 input schema has 0 parameters with 100% coverage, so no parameters need documentation. The description does not add parameter information, which is appropriate here. Baseline is 4 for 0 parameters, as the schema fully covers the absence of inputs, and the description doesn't need to compensate for any gaps.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get a list of all environments types (e.g. dev, prod, etc.) in the JFrog platform with their details.' It specifies the verb ('Get'), resource ('environments types'), and scope ('in the JFrog platform'), distinguishing it from siblings like jfrog_list_repositories or jfrog_list_projects. However, it doesn't explicitly differentiate from all list tools, such as jfrog_list_builds, though the resource type is distinct.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, exclusions, or specific contexts for usage, such as when environment details are needed versus other list tools. Without such guidance, an agent might struggle to choose between this and other list tools like jfrog_list_repositories or jfrog_list_projects.

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

Related 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/jfrog/mcp-jfrog'

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