Skip to main content
Glama
Infisical MCP Server

Infisical MCP Server

Official
by Infisical

list-secrets

Read-onlyIdempotent

List secrets in a specified project environment folder, defaulting to root, with optional recursive mode for subfolders. Discover folder contents before managing secrets.

Instructions

List the secrets in one folder of a project environment, the root folder by default. Secrets in subfolders are left out unless recursive is true; list-folders shows which folders exist.

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-secrets"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesThe ID of the project, from list-projects. A project slug or exact project name also works.
recursiveNoAlso list the secrets in every folder below secretPath, each with its secretPath (Defaults to false)
secretPathNoThe folder path, such as "/" for the root or "/backend/api" for a nested folder. Defaults to "/".
includeImportsNoAlso return the secrets this folder imports from other environments or folders (Defaults to true)
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.
expandSecretReferencesNoReplace references to other secrets, such as ${DB_HOST}, with their values (Defaults to true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.0
    • changedInput schema / properties / environmentSlug / description
      Previous value: -"The slug of the environment to list the secrets from (required)"New value: +"The 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."
    • changedInput schema / properties / expandSecretReferences / description
      Previous value: -"Whether to expand secret references (Defaults to true)"New value: +"Replace references to other secrets, such as ${DB_HOST}, with their values (Defaults to true)"
    • changedInput schema / properties / includeImports / description
      Previous value: -"Whether to include secret imports (Defaults to true)"New value: +"Also return the secrets this folder imports from other environments or folders (Defaults to true)"
    • changedInput schema / properties / projectId / description
      Previous value: -"The ID of the project to list the secrets from (required)"New value: +"The ID of the project, from list-projects. A project slug or exact project name also works."
    • addedInput schema / properties / recursive
      Added value: +{
      +  "description": "Also list the secrets in every folder below secretPath, each with its secretPath (Defaults to false)",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / secretPath / description
      Previous value: -"The path of the secrets to list (Defaults to /)"New value: +"The folder path, such as \"/\" for the root or \"/backend/api\" for a nested folder. Defaults to \"/\"."
  2. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds useful scoping behavior about subfolder exclusion and recursion, but it does not disclose the default inclusion of imported secrets or default expansion of secret references, which materially affect results.

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 focused sentences with the primary scope front-loaded. Every sentence carries useful information and there is no redundant wording.

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?

Given the rich annotations and complete schema descriptions, the definition is complete enough to select and call the tool correctly. It could surface the default import and reference-expansion behavior more prominently, but those details are available in the schema.

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 all six parameters and their defaults. The description reinforces the default root path and recursive subfolder behavior, but adds no syntax or meaning beyond what the schema provides.

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 states a specific verb and resource: list secrets in one folder of a project environment. It also distinguishes the tool from list-folders, so an agent can tell what this tool does and what it does not do.

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?

It gives clear usage context: the root folder is the default, subfolders are omitted unless recursive is true, and list-folders is the place to discover folders. It does not explicitly contrast with get-secret or other secret-reading siblings, but the main usage conditions are stated.

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