Skip to main content
Glama

List projects a secret is shared with

grant_secrets_list
Read-onlyIdempotent

Lists the projects a secret is shared with, returning one grant per project and sorting by most recently shared first by default. Use it to review or audit where a secret has been granted access.

Instructions

Lists the projects a secret is shared with, one grant per project, most recently shared first by default.

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>",
      "secretID": "<secretID>"
    },
    "name": "grant_secrets_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
secretIDYesSecret ID (sec_...).

Output Schema

NameRequiredDescriptionDefault
dataYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.10
    • changedInput schema / properties / sort / description
      Previous value: -"Sort order for named resources that expose a created timestamp."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": {
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "Project": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/ProjectFields"
      +        }
      +      ]
      +    },
      +    "ProjectFields": {
      +      "description": "Shared project fields composed into project response schemas. Composing schemas close their final shape with unevaluatedProperties.",
      +      "properties": {
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the project was created."
      +        },
      +        "id": {
      +          "$ref": "#/$defs/ProjectID",
      +          "description": "Identifies the project."
      +        },
      +        "name": {
      +          "$ref": "#/$defs/ResourceName",
      +          "description": "Display name of the project."
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID",
      +          "description": "Organization that owns the project."
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the project last changed."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "name",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "type": "object"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "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"
      +    },
      +    "SecretGrant": {
      +      "properties": {
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the secret was granted to the project."
      +        },
      +        "id": {
      +          "$ref": "#/$defs/SecretGrantID",
      +          "description": "Identifies this grant; use it to revoke the project's access."
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID",
      +          "description": "Organization the grant and its secret belong to."
      +        },
      +        "secret_id": {
      +          "$ref": "#/$defs/SecretID",
      +          "description": "Secret shared by this grant."
      +        },
      +        "target_project_id": {
      +          "$ref": "#/$defs/ProjectID",
      +          "description": "Project that can use the secret through this grant."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "secret_id",
      +        "target_project_id",
      +        "created_at"
      +      ],
      +      "type": "object"
      +    },
      +    "SecretGrantID": {
      +      "pattern": "^sgr_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "SecretGrantListItem": {
      +      "properties": {
      +        "grant": {
      +          "$ref": "#/$defs/SecretGrant"
      +        },
      +        "target_project": {
      +          "$ref": "#/$defs/Project"
      +        }
      +      },
      +      "required": [
      +        "grant",
      +        "target_project"
      +      ],
      +      "type": "object"
      +    },
      +    "SecretID": {
      +      "description": "Secret ID (sec_...).",
      +      "pattern": "^sec_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "data": {
      +      "items": {
      +        "$ref": "#/$defs/SecretGrantListItem"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / secretID / description
      Added value: +"Secret ID (sec_...)."
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds cardinality ('one grant per project') but the default ordering it states is already documented on the sort parameter, and it says nothing about pagination behavior despite cursor/limit support.

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: verb, resource, result cardinality, and default ordering. Nothing is redundant or buried.

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 described, and annotations plus full schema coverage carry most remaining burden. Slightly incomplete only in that nothing is said about authorization for viewing grants or about page-size behavior.

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%, with glob syntax, sort enum semantics, cursor usage and ID patterns all documented in the schema. The description adds no parameter-level meaning beyond that, so 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?

Clear verb+resource: 'Lists the projects a secret is shared with', plus a scope detail ('one grant per project'). It reads distinctly against the mutation siblings grant_secrets_add/grant_secrets_delete, though the description never explicitly differentiates itself from them or from secrets_get.

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 purpose sentence; the agent can infer this is the read-side of a secret's sharing grants, but there is no explicit when-to-use, no prerequisites (e.g. permission needed to view grants), and no named alternative such as secrets_get or projects_list.

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