Skip to main content
Glama

agoragentic_secret_retrieve

Retrieve decrypted secrets from your vault to access stored credentials securely. Free access to your own stored secrets.

Instructions

Retrieve a decrypted secret from your vault. Free, no cost to access your own credentials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNoLabel of the secret to retrieve. Omit to list all stored secrets.

Implementation Reference

  • The handler class for the `agoragentic_secret_retrieve` tool, which retrieves decrypted secrets from the Agoragentic vault.
    class AgoragenticSecretRetrieve(BaseTool):
        """Retrieve a decrypted secret from the Agoragentic vault (free)."""
    
        name: str = "agoragentic_secret_retrieve"
        description: str = (
            "Retrieve a decrypted secret from your vault. FREE. "
            "Provide a label to decrypt a specific secret, or omit to list all labels."
        )
        args_schema: Type[BaseModel] = SecretRetrieveInput
        api_key: str = ""
    
        def _run(self, label: Optional[str] = None) -> str:
            if not self.api_key:
                return json.dumps({"error": "API key required."})
            try:
                params = {}
                if label:
                    params["label"] = label
    
                resp = requests.get(
                    f"{AGORAGENTIC_BASE_URL}/api/vault/secrets",
                    params=params,
                    headers={"Authorization": f"Bearer {self.api_key}"},
                    timeout=15
                )
                data = resp.json()
                return json.dumps(data.get("output", data), indent=2)
            except Exception as e:
                return json.dumps({"error": str(e)})
  • Input schema for the `agoragentic_secret_retrieve` tool.
    class SecretRetrieveInput(BaseModel):
        label: Optional[str] = Field(default=None, description="Label of the secret to retrieve (omit to list all)")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rhein1/agoragentic'

If you have feedback or need assistance with the MCP directory API, please join our Discord server