Skip to main content
Glama

list_project_items

Discover all media items, bins, and assets in your current Premiere Pro project to identify available content before editing operations.

Instructions

Lists all media items, bins, and assets in the current Premiere Pro project. Use this to discover available media before performing operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
includeBinsNoWhether to include bin information in the results
includeMetadataNoWhether to include detailed metadata for each item

Implementation Reference

  • The primary handler function for the 'list_project_items' tool. It constructs an ExtendScript that enumerates items in the project root, categorizes them into media items and bins, optionally includes metadata, and returns structured JSON via the Premiere Pro bridge.
    private async listProjectItems(includeBins = true, includeMetadata = false): Promise<any> {
      const script = `
        try {
          var items = [];
          var bins = [];
          
          // List all project items
          for (var i = 0; i < app.project.rootItem.children.numItems; i++) {
            var item = app.project.rootItem.children[i];
            var itemInfo = {
              id: item.nodeId,
              name: item.name,
              type: item.type.toString(),
              path: item.getMediaPath(),
              duration: item.duration ? item.duration.seconds : null
            };
            
            if (${includeMetadata}) {
              itemInfo.metadata = {
                width: item.getMediaWidth ? item.getMediaWidth() : null,
                height: item.getMediaHeight ? item.getMediaHeight() : null,
                frameRate: item.getMediaFrameRate ? item.getMediaFrameRate() : null,
                hasVideo: item.hasVideo ? item.hasVideo() : false,
                hasAudio: item.hasAudio ? item.hasAudio() : false
              };
            }
            
            if (item.type === ProjectItemType.BIN) {
              bins.push(itemInfo);
            } else {
              items.push(itemInfo);
            }
          }
          
          JSON.stringify({
            success: true,
            items: items,
            bins: ${includeBins} ? bins : [],
            totalItems: items.length,
            totalBins: bins.length
          });
        } catch (e) {
          JSON.stringify({
            success: false,
            error: e.toString()
          });
        }
      `;
      
      return await this.bridge.executeScript(script);
    }
  • Zod input schema definition for the list_project_items tool, specifying optional boolean parameters for including bins and metadata.
    {
      name: 'list_project_items',
      description: 'Lists all media items, bins, and assets in the current Premiere Pro project. Use this to discover available media before performing operations.',
      inputSchema: z.object({
        includeBins: z.boolean().optional().describe('Whether to include bin information in the results'),
        includeMetadata: z.boolean().optional().describe('Whether to include detailed metadata for each item')
      })
    },
  • Tool dispatch registration in the executeTool method's switch statement, mapping the tool name to its handler function.
    case 'list_project_items':
      return await this.listProjectItems(args.includeBins, args.includeMetadata);
    case 'list_sequences':
  • src/index.ts:74-81 (registration)
    MCP server registration for listing tools, which exposes the list_project_items tool via PremiereProTools.getAvailableTools().
    this.server.setRequestHandler(ListToolsRequestSchema, async () => {
      const tools = this.tools.getAvailableTools().map((tool) => ({
        name: tool.name,
        description: tool.description,
        inputSchema: zodToJsonSchema(tool.inputSchema, { $refStrategy: 'none' })
      }));
      return { tools };
    });
  • src/index.ts:84-106 (registration)
    MCP server handler for tool execution calls, delegating to PremiereProTools.executeTool which handles list_project_items.
    this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
      const { name, arguments: args } = request.params;
      
      try {
        const result = await this.tools.executeTool(name, args || {});
        return {
          content: [
            {
              type: 'text' as const,
              text: JSON.stringify(result, null, 2)
            }
          ]
        };
      } catch (error) {
        const errorMessage = error instanceof Error ? error.message : 'Unknown error';
        this.logger.error(`Tool execution failed: ${errorMessage}`);
        
        throw new McpError(
          ErrorCode.InternalError,
          `Failed to execute tool '${name}': ${errorMessage}`
        );
      }
    });
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 mentions the tool lists items but doesn't describe key behaviors such as whether it returns a paginated list, what the output format looks like, if it requires a project to be open, or any performance considerations. For a read operation with zero annotation coverage, this leaves significant gaps in understanding how the tool behaves.

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 two sentences that are front-loaded with the core purpose and followed by usage guidance. Every word earns its place, with no redundancy or unnecessary details, making it highly efficient 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's moderate complexity (a read operation with two optional parameters), no annotations, and no output schema, the description is minimally adequate. It covers the purpose and basic usage but lacks details on output format, prerequisites (e.g., needing an open project), or behavioral traits, leaving room for improvement in completeness.

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?

The schema description coverage is 100%, meaning the input schema fully documents the two parameters ('includeBins' and 'includeMetadata') with clear descriptions. The description adds no additional parameter semantics beyond what's in the schema, so it meets the baseline of 3 for adequate but not enhanced parameter information.

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 ('Lists') and resources ('all media items, bins, and assets in the current Premiere Pro project'), making the purpose specific and understandable. However, it doesn't explicitly distinguish this tool from sibling tools like 'list_sequences' or 'list_sequence_tracks', which also list project components but focus on different subsets.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool ('to discover available media before performing operations'), which helps guide the agent toward using it as an exploratory step. It doesn't explicitly state when not to use it or name alternatives (e.g., 'list_sequences' for sequence-specific listings), but the guidance is practical and sufficient for basic decision-making.

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/hetpatel-11/Adobe_Premiere_Pro_MCP'

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