Skip to main content
Glama
jfrog

JFrog MCP Server

Official
by jfrog

jfrog_set_folder_property

Define custom properties for a folder in Artifactory, with optional recursive application to sub-folders. Use this tool to organize and manage folder metadata effectively.

Instructions

Set properties on a folder in Artifactory, with optional recursive application

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderPathYesPath to the folder where properties should be set
propertiesYesKey-value pairs of properties to set
recursiveNoWhether to apply properties recursively to sub-folders

Implementation Reference

  • Core handler function implementing the API logic to set properties on an Artifactory folder using PUT /api/storage/{path} with properties and recursive query parameters.
    export async function setFolderProperty(folderPath: string, properties: Record<string, string>, recursive = false) {
      // Convert properties object to query string format
      const propsQuery = Object.entries(properties)
        .map(([key, value]) => `${key}=${value}`)
        .join(";");
    
      const url = `/artifactory/api/storage/${folderPath}?properties=${propsQuery}&recursive=${recursive ? 1 : 0}`;
    
      const response = await jfrogRequest(url, {
        method: "PUT"
      });
    
      return response;
    }
  • Zod schema for tool input validation: folderPath (string), properties (record<string, string>), recursive (boolean, default false).
    export const SetFolderPropertySchema = z.object({
      folderPath: z.string().describe("Path to the folder where properties should be set"),
      properties: z.record(z.string()).describe("Key-value pairs of properties to set"),
      recursive: z.boolean().default(false).describe("Whether to apply properties recursively to sub-folders")
    });
  • Tool definition object registering 'jfrog_set_folder_property' with name, description, input schema, and handler that validates args and delegates to setFolderProperty.
    const setFolderPropertyTool = {
      name: "jfrog_set_folder_property",
      description: "Set properties on a folder in Artifactory, with optional recursive application",
      inputSchema: zodToJsonSchema(SetFolderPropertySchema),
      //outputSchema: zodToJsonSchema(z.object({})),
      handler: async (args: any) => {
        const parsedArgs = SetFolderPropertySchema.parse(args);
        return await setFolderProperty(parsedArgs.folderPath, parsedArgs.properties, parsedArgs.recursive);
      }
    };
  • Registers the jfrog_set_folder_property tool (as setFolderPropertyTool) within the RepositoryTools array.
    export const RepositoryTools =[ 
      checkJfrogAvailabilityTool,
      createLocalRepositoryTool,
      createRemoteRepositoryTool,
      createVirtualRepositoryTool,
      setFolderPropertyTool,
      listRepositoriesTool
    ];
  • tools/index.ts:13-23 (registration)
    Main tools registry includes RepositoryTools (spreading all repository tools including jfrog_set_folder_property).
    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 full burden. It states the tool sets properties with optional recursion, implying a write operation, but lacks details on permissions required, whether it overwrites existing properties, error conditions, or response format. For a mutation tool with zero annotation coverage, this is a significant gap in behavioral disclosure.

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 action ('Set properties on a folder in Artifactory') and appends the optional feature. There is no wasted verbiage, and it's appropriately sized for the tool's complexity.

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?

Given the tool's mutation nature, lack of annotations, and no output schema, the description is incomplete. It doesn't cover behavioral aspects like permissions, side effects, or response details. While the schema covers parameters well, the overall context for safe and effective use is insufficient.

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%, with clear descriptions for all parameters (folderPath, properties, recursive). The description adds minimal value beyond the schema by mentioning 'optional recursive application,' which aligns with the schema's recursive parameter. No additional syntax, format, or constraints are provided, so the baseline score of 3 is appropriate.

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 action ('Set properties') and target ('on a folder in Artifactory'), with the optional recursive feature mentioned. It distinguishes itself from sibling tools like 'jfrog_create_local_repository' or 'jfrog_get_package_info' by focusing on property management rather than creation or retrieval operations. However, it doesn't explicitly differentiate from potential property-related siblings that might exist in other contexts.

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 doesn't mention prerequisites (e.g., needing specific permissions), when not to use it (e.g., for files instead of folders), or suggest other tools for related tasks like getting properties. The optional recursive feature is noted but without context on its implications.

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