Skip to main content
Glama

list_folders

List folders from Langflow with pagination to access organizational structure and folder IDs for flow management.

Instructions

List all folders with pagination for organizing flows hierarchically.

Purpose: Retrieve folders from your Langflow instance to discover organizational structure and obtain folder IDs for flow organization. Essential for understanding project hierarchy, finding folders for flow placement, and managing workspace organization.

Parameters:

  • page (optional, number, default: 1, min: 1): Page number for pagination

  • size (optional, number, default: 50, max: 100): Number of folders per page

Returns: Array of FolderRead objects containing:

  • id (UUID): Unique folder identifier (use as folder_id in create_flow or update_flow)

  • name (string): Folder display name

  • description (string): Folder purpose description

  • parent_id (UUID): Parent folder ID if nested, null for root-level folders

  • created_at, updated_at (ISO timestamps): Folder lifecycle timestamps

Usage Examples:

  1. List all folders (default): {}

  2. Paginate through folders: { page: 2, size: 25 }

  3. Get first 10 folders: { page: 1, size: 10 }

Best Practices:

  • Call this before create_flow to find appropriate folder_id for organization

  • Use pagination for large folder collections to improve performance

  • Cache folder IDs and names to reduce API calls

  • Check parent_id to understand folder hierarchy and nesting structure

  • Keep page size <= 50 for optimal response times

  • Map folder IDs to names for user-friendly displays in UIs

Common Errors:

  • "Page size cannot exceed 100": Reduce size parameter to 100 or less

  • "Invalid page number": page must be >= 1

  • Empty results: No folders exist (create folders with create_folder)

  • Connection timeout: Reduce page size or check Langflow instance availability

Related Tools:

  • create_folder: Create new folders after reviewing existing organization

  • get_folder: Retrieve detailed information about specific folder

  • create_flow: Use folder_id from this list to organize new flows

  • update_folder: Modify folder properties found in this list

  • list_flows: Filter flows by folder_id obtained from this list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination (default: 1)
sizeNoNumber of items per page (default: 50, max: 100)
Behavior4/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. It explains the tool retrieves folders (implicitly read-only), describes the return fields, pagination behavior, and error scenarios. It does not explicitly state that it is non-destructive or safe, but the context implies it. A 5 would require an explicit read-only declaration.

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 long but well-structured into sections (Purpose, Parameters, Returns, Usage Examples, Best Practices, Common Errors, Related Tools). It front-loads the main purpose and remains readable. The length is justified by the comprehensiveness, but could be slightly trimmed without losing value.

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 no output schema, the description provides detailed return fields (id, name, description, parent_id, timestamps) and their meanings. It covers error messages, best practices, and related tools comprehensively. All necessary information for correct invocation is present.

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 coverage is 100%, but the description adds significant value beyond the schema: it explains the default and max values for size, provides usage examples with different parameter combinations, and ties parameters to pagination behavior. This enriches the agent's understanding of how to use parameters effectively.

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 lists folders with pagination for organizing flows hierarchically. It distinguishes from sibling tools like create_folder, get_folder, update_folder, delete_folder, and list_flows by specifying its role in discovery and obtaining folder IDs.

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

Usage Guidelines5/5

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

Provides explicit when-to-use guidance (e.g., 'Call this before create_flow'), best practices (cache IDs, check parent_id), common errors with explanations, and a list of related tools with their purposes. This helps an agent decide when to invoke this tool over alternatives.

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/nobrainer-tech/langflow-mcp'

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