Skip to main content
Glama
Infisical MCP Server

Infisical MCP Server

Official
by Infisical

list-folders

Read-onlyIdempotent

Lists folders in an Infisical project environment and returns each folder's full path for use with secretPath. Set path and recursive options to target nested folders.

Instructions

List the folders in a project environment, each with the full path that secretPath takes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>",
      "environmentSlug": "<environmentSlug>"
    },
    "name": "list-folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe folder to list the folders of. Defaults to "/", the root
projectIdYesThe ID of the project, from list-projects. A project slug or exact project name also works.
recursiveNoAlso list every folder nested below path (Defaults to false)
environmentSlugYesThe slug of the environment, such as dev, staging or prod. list-projects shows each project's environments. An environment name such as Production also works.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is fully covered without the description. The description adds one genuine behavioral fact — returned folders include the full path in secretPath form — but says nothing about ordering, pagination, or whether a recursive call returns a flat list or a nested tree.

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?

A single front-loaded sentence with no filler; the scope and the output detail are both packed into one clause without redundancy.

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

Completeness4/5

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

For a simple read-only listing tool with complete parameter documentation and full safety annotations, this is close to sufficient. The only notable gap is return shape when recursive=true, which matters because no output schema exists to clarify it.

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 path, projectId, recursive and environmentSlug are all documented in the schema (including accepted aliases like project slug and environment name). The description adds no parameter meaning beyond that, so the baseline 3 applies.

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 states a specific verb and resource ('List the folders') plus the scope ('in a project environment'), which cleanly separates it from list-projects and list-secrets. It also adds a useful output detail — each folder carries the full path used by secretPath — but never names a sibling to route against.

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

Usage Guidelines3/5

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

Usage is only implied by the resource name; there is no explicit statement of when to prefer this over list-secrets or list-projects, nor when recursive traversal is appropriate. An agent can infer the use case, but nothing in the text guides the choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.