Skip to main content
Glama

List secrets

secrets_list
Read-onlyIdempotent

Lists and filters organization, project, and user secrets by name, kind, owner, or metadata, with sorting and pagination for finding credentials to manage.

Instructions

Items are ordered by created_at descending, then id descending. Without an owner filter, returns the deduplicated union of organization secrets the caller may list, project secrets the caller may list, and the caller's own user secrets.

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": {
      "orgID": "<orgID>"
    },
    "name": "secrets_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoReturn only secrets that hold this type of credential.
nameNoCase-insensitive glob over the list's logical name. `*` matches zero or more characters, `?` matches one character, and `\` escapes a wildcard.
sortNoField to sort by; prefix with - for descending order. Defaults to -created_at (newest first).
limitNoMaximum number of items to return in one page.
orgIDYesOrganization ID (org_...).
cursorNoOpaque pagination cursor from a previous response's next_cursor. Omit for the first page.
metadataNoReturn only secrets whose metadata includes these key-value pairs.
owner_kindNoFilter by the immutable owner kind.
owner_project_idNoOwning project to filter by. Required when owner_kind is project.
mcp_oauth_flow_idNoFilter to secrets that have a version created by this MCP OAuth flow.

Output Schema

NameRequiredDescriptionDefault
dataYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.10
    • changedInput schema / properties / kind / description
      Previous value: -"Filter secrets by material kind."New value: +"Return only secrets that hold this type of credential."
    • removedInput schema / properties / kind / x-enum-varnames
      Removed value: -[
      -  "SecretKindGeneric",
      -  "SecretKindOAuthTokenSet",
      -  "SecretKindSlackAppCredentials",
      -  "SecretKindAWSCredentials",
      -  "SecretKindGitHubAppCredentials"
      -]
    • changedInput schema / properties / metadata / description
      Previous value: -"Metadata key/value filters, encoded as metadata[key]=value."New value: +"Return only secrets whose metadata includes these key-value pairs."
    • changedInput schema / properties / owner_project_id / description
      Previous value: -"Required with owner_kind=project and invalid with other owner kinds."New value: +"Owning project to filter by. Required when owner_kind is project."
    • changedInput schema / properties / sort / description
      Previous value: -"Sort order for named resources that expose created and modified timestamps."New value: +"Field to sort by; prefix with - for descending order. Defaults to -created_at (newest first)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ManagementKind": {
      +      "description": "Lifecycle owner. Tenant-managed resources can be changed through tenant APIs. Cluster-managed resources are installed and lifecycle-managed by the control plane; individual APIs may explicitly expose tenant-editable settings.",
      +      "enum": [
      +        "tenant",
      +        "cluster"
      +      ],
      +      "type": "string"
      +    },
      +    "Metadata": {
      +      "additionalProperties": {
      +        "maxLength": 512,
      +        "type": "string"
      +      },
      +      "description": "Arbitrary key-value labels stored with the resource.",
      +      "maxProperties": 16,
      +      "propertyNames": {
      +        "maxLength": 64,
      +        "minLength": 1
      +      },
      +      "type": "object"
      +    },
      +    "OrgSecretOwner": {
      +      "properties": {
      +        "kind": {
      +          "description": "org: the organization owns the secret.",
      +          "enum": [
      +            "org"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectSecretOwner": {
      +      "properties": {
      +        "kind": {
      +          "description": "project: a single project owns the secret.",
      +          "enum": [
      +            "project"
      +          ],
      +          "type": "string"
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID",
      +          "description": "Project that owns the secret."
      +        }
      +      },
      +      "required": [
      +        "kind",
      +        "project_id"
      +      ],
      +      "type": "object"
      +    },
      +    "ResourceName": {
      +      "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "Secret": {
      +      "properties": {
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the secret was created."
      +        },
      +        "current_version_number": {
      +          "description": "Version of the value currently in use; each rotation increments it.",
      +          "format": "int32",
      +          "type": "integer"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/SecretID",
      +          "description": "Identifies the secret; other resources reference it by this ID instead of storing the value."
      +        },
      +        "kind": {
      +          "$ref": "#/$defs/SecretKind",
      +          "description": "What type of credential the secret holds, which determines its payload fields."
      +        },
      +        "management_kind": {
      +          "$ref": "#/$defs/ManagementKind",
      +          "description": "Whether the organization manages this secret or the Omnara installation provisions and manages it."
      +        },
      +        "metadata": {
      +          "$ref": "#/$defs/Metadata",
      +          "description": "Caller-supplied key-value labels on the secret."
      +        },
      +        "name": {
      +          "$ref": "#/$defs/ResourceName",
      +          "description": "Display name of the secret."
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID",
      +          "description": "Organization the secret belongs to."
      +        },
      +        "owner": {
      +          "$ref": "#/$defs/SecretOwner",
      +          "description": "Who owns the secret; a project can use it without a grant only if the project owns it."
      +        },
      +        "payload_keys": {
      +          "description": "Names of the fields stored in the current value, such as value or access_token; values are never returned.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the secret's name, metadata, or current version last changed."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "management_kind",
      +        "owner",
      +        "name",
      +        "kind",
      +        "metadata",
      +        "current_version_number",
      +        "payload_keys",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "type": "object"
      +    },
      +    "SecretID": {
      +      "description": "Secret ID (sec_...).",
      +      "pattern": "^sec_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "SecretKind": {
      +      "enum": [
      +        "generic",
      +        "oauth_token_set",
      +        "slack_app_credentials",
      +        "aws_credentials",
      +        "github_app_credentials"
      +      ],
      +      "type": "string"
      +    },
      +    "SecretOwner": {
      +      "discriminator": {
      +        "mapping": {
      +          "org": "#/$defs/OrgSecretOwner",
      +          "project": "#/$defs/ProjectSecretOwner",
      +          "user": "#/$defs/UserSecretOwner"
      +        },
      +        "propertyName": "kind"
      +      },
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/OrgSecretOwner"
      +        },
      +        {
      +          "$ref": "#/$defs/ProjectSecretOwner"
      +        },
      +        {
      +          "$ref": "#/$defs/UserSecretOwner"
      +        }
      +      ]
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "UserID": {
      +      "pattern": "^usr_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "UserSecretOwner": {
      +      "properties": {
      +        "kind": {
      +          "description": "user: a user owns the secret.",
      +          "enum": [
      +            "user"
      +          ],
      +          "type": "string"
      +        },
      +        "user_id": {
      +          "$ref": "#/$defs/UserID",
      +          "description": "User who owns the secret."
      +        }
      +      },
      +      "required": [
      +        "kind",
      +        "user_id"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "properties": {
      +    "data": {
      +      "items": {
      +        "$ref": "#/$defs/Secret"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that: default ordering (created_at desc, then id desc) and the deduplicated union semantics when no owner filter is applied, which the agent could not know from annotations alone.

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?

Two sentences with no filler, but the ordering detail is front-loaded ahead of the more decision-relevant scope/union behavior. Slightly better ordering would put the union semantics first, but nothing is wasted.

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?

An output schema exists, so return values need not be explained, and the description covers the two non-obvious behaviors: default sort and default scope. Pagination and filtering are fully documented in the schema, leaving little an agent needs that is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description goes beyond the schema by explaining the consequence of omitting the owner filter (union across org, project, and user scopes with deduplication), which is behavioral meaning the parameter docs do not state.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states a verb+resource like "list secrets"; it opens with ordering semantics and only implies the listing behavior through "returns the deduplicated union of organization secrets... project secrets... user secrets." The title carries the actual purpose, so the description is vague on what the tool does even though the return scope is described.

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?

"Without an owner filter" implicitly signals that owner_kind/owner_project_id narrow the result set, which is useful usage context. However, there is no explicit when-to-use guidance and no differentiation from siblings such as secrets_get or grant_secrets_list, so the agent must infer selection.

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