Skip to main content
Glama
jfrog

JFrog MCP Server

Official
by jfrog

jfrog_get_specific_build

Retrieve detailed information for a specific build by name, with optional project scoping, using the JFrog MCP Server’s API capabilities.

Instructions

Get details for a specific build by name, optionally scoped to a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buildNameYesName of the build to retrieve
projectNoOptional project key to scope the build search

Implementation Reference

  • Core function implementing the tool logic: constructs the JFrog API URL for the specific build, makes a GET request using jfrogRequest, and parses the response with the output schema.
    export async function getSpecificBuild(buildName: string, project?: string) {
      const url = project 
        ? `/artifactory/api/build/${buildName}?project=${project}`
        : `/artifactory/api/build/${buildName}`;
    
      const response = await jfrogRequest(url, {
        method: "GET",
      });
         
      return buildsSchemas.JFrogBuildDetailsSchema.parse(response);
    }
  • Zod input schema for the tool, defining buildName (required) and project (optional).
    export const GetSpecificBuildSchema = z.object({
      buildName: z.string().describe("Name of the build to retrieve"),
      project: z.string().optional().describe("Optional project key to scope the build search")
    });
  • tools/builds.ts:32-41 (registration)
    Local registration of the tool: defines name, description, input schema, and handler wrapper that parses args and delegates to getSpecificBuild.
    const getSpecificBuildTool = {
      name: "jfrog_get_specific_build",
      description: "Get details for a specific build by name, optionally scoped to a project",
      inputSchema: zodToJsonSchema(buildsSchemas.GetSpecificBuildSchema),
      //outputSchema: zodToJsonSchema(buildsSchemas.JFrogBuildDetailsSchema),
      handler: async (args: any) => {
        const parsedArgs = buildsSchemas.GetSpecificBuildSchema.parse(args);
        return await getSpecificBuild(parsedArgs.buildName, parsedArgs.project);
      }
    };
  • tools/index.ts:13-23 (registration)
    Global registration: imports BuildsTools (containing jfrog_get_specific_build) and spreads it into the main tools array exported for use.
    export const tools =[
      ...RepositoryTools,
      ...BuildsTools,
      ...RuntimeTools,
      ...AccessTools,
      ...AQLTools,
      ...CatalogTools,
      ...CurationTools,
      ...PermissionsTools,
      ...ArtifactSecurityTools,
    ];
  • Output schema used to parse the JFrog API response for build details.
    export const JFrogBuildDetailsSchema = z.object({
      uri: z.string(),
      buildsNumbers: z.array(z.object({
        uri: z.string(),
        started: z.string().describe("Build start timestamp in ISO8601 format")
      }))
    });
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states it's a read operation ('Get details'), but doesn't cover aspects like authentication needs, rate limits, error conditions, or what 'details' includes. The description is too vague to fully inform agent 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?

The description is a single, efficient sentence that's front-loaded with the core purpose. Every word earns its place with no redundancy or unnecessary elaboration.

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?

For a read operation with no annotations and no output schema, the description is insufficient. It doesn't explain what 'details' includes, potential response formats, or error handling. The agent lacks complete context to use this tool effectively despite the good parameter documentation.

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?

Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description adds minimal value by mentioning 'optionally scoped to a project', which aligns with the schema but doesn't provide additional semantic context beyond what's in the parameter descriptions.

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 verb ('Get details') and resource ('specific build by name'), making the purpose evident. However, it doesn't explicitly differentiate from sibling tools like 'jfrog_list_builds' beyond the 'specific' vs 'list' distinction, which is somewhat implied but not explicitly stated.

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 minimal guidance with 'optionally scoped to a project', but lacks explicit when-to-use instructions, prerequisites, or comparisons to alternatives like 'jfrog_list_builds'. No exclusions or detailed context are provided.

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