Skip to main content
Glama

Get secret

secrets_get
Read-onlyIdempotent

Retrieve a secret's owner, kind, name, and current version by organization and secret ID without exposing the secret value.

Instructions

Returns a secret's owner, kind, name, and current version; the secret value is never returned.

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": "secrets_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgIDYesOrganization ID (org_...).
secretIDYesSecret ID (sec_...).

Output Schema

NameRequiredDescriptionDefault
idYesIdentifies the secret; other resources reference it by this ID instead of storing the value.
kindYesWhat type of credential the secret holds, which determines its payload fields.
nameYesDisplay name of the secret.
ownerYesWho owns the secret; a project can use it without a grant only if the project owns it.
org_idYesOrganization the secret belongs to.
metadataYesCaller-supplied key-value labels on the secret.
created_atYesWhen the secret was created.
updated_atYesWhen the secret's name, metadata, or current version last changed.
payload_keysYesNames of the fields stored in the current value, such as value or access_token; values are never returned.
management_kindYesWhether the organization manages this secret or the Omnara installation provisions and manages it.
current_version_numberYesVersion of the value currently in use; each rotation increments it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.10
    • 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"
      +    },
      +    "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": {
      +    "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"
      +}
  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=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered structurally. The description's one genuine addition is the security guarantee that the secret value is never returned, which is valuable context, but it says nothing about authorization requirements or error behavior for missing/inaccessible secrets.

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 clause-packed sentence with the positive behavior stated first and the critical caveat ('the secret value is never returned') placed prominently. No filler or 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?

With a rich annotation set, full schema coverage, and an output schema, the description only needs to frame the tool, which it does. The return-field listing is partly redundant with the output schema, but the security caveat justifies its presence; only auth/permission expectations are missing.

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% and both parameters carry patterns and inline descriptions, so the schema does the work. The description adds nothing about orgID or secretID semantics, only about return fields, making the baseline 3 correct.

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 gives a specific verb ('Returns') and resource ('a secret'), and enumerates the fields surfaced (owner, kind, name, current version), which lets an agent distinguish it from secrets_list/update/delete by name and behavior. It stops short of explicitly naming a sibling it is not, so it lands at 4 rather than 5.

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: the agent must infer that this is the single-secret lookup keyed by secretID, to be used instead of secrets_list when an exact ID is known. There is no stated when-not condition and no named alternative.

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