Skip to main content
Glama

Install secrets on a Mac

install_secrets
DestructiveIdempotent

Installs the account's secrets and signing identities on a running Mac now: every-Mac secrets, the on-request ones named in names, and removes deleted ones. Changes reach running Macs on their own within a minute: call this for on-request secrets, or after a failed install. Without names it also rebuilds files and the keychain: not during an archive.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "install_secrets"
  }
}

Input Schema

NameRequiredDescriptionDefault
namesNoSecrets set to only when asked to install too, by name; every-Mac secrets are always installed
session_idNoMac session ID (ses_…). Optional: without it, the account's running Mac.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / session_id / description
      Previous value: -"Mac session ID (ses_…) returned by start_mac or list_mac_sessions."New value: +"Mac session ID (ses_…). Optional: without it, the account's running Mac."
    • removedInput schema / required
      Removed value: -[
      -  "session_id"
      -]
  2. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": {},
      -  "description": "The JSON response of the NoMac API for this operation",
      -  "properties": {
      -    "error": {
      -      "additionalProperties": {},
      -      "description": "Present only when the call failed",
      -      "properties": {
      -        "code": {
      -          "description": "Stable machine-readable error code, for example insufficient_credit",
      -          "type": "string"
      -        },
      -        "message": {
      -          "description": "What went wrong and what to do next",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "code",
      -        "message"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true and readOnly=false; the description earns credit by going beyond them, disclosing that deleted secrets get removed, that ordinary changes propagate within a minute, and that omitting 'names' triggers an extra files/keychain rebuild that must be avoided during an archive. It does not discuss permissions or failure modes beyond the 'failed install' retry case.

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?

Three tightly packed sentences with the core action front-loaded and the caveats trailing it; nothing is filler. The telegraphic phrasing ("not during an archive") and dense colon-separated clauses cost a bit of readability.

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?

For a two-parameter, zero-required mutation tool with no output schema, the description covers scope, side effects, timing, and the critical archive caveat, which is enough for an agent to invoke it correctly. Only return/verification behavior and permissions are left implicit.

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 coverage is 100%, so a 3 is the baseline, but the description genuinely adds semantics: it clarifies that 'names' targets only on-request secrets while every-Mac secrets are always installed, and that omitting the parameter triggers a broader rebuild. That consequence-of-omission is not derivable from the schema alone.

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 names a specific verb and resource ("Installs the account's secrets and signing identities on a running Mac") and enumerates exactly which classes of secret are affected: every-Mac secrets, on-request ones named in 'names', and deleted ones removed. It is immediately distinguishable from siblings like request_secret or read_mac_file, though it does not explicitly name a sibling to route away from.

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 states explicitly when to call it ("call this for on-request secrets, or after a failed install") and when not to ("not during an archive"), and notes that changes otherwise propagate within a minute, which implicitly tells the agent not to call in the normal case. It stops short of naming a concrete alternative tool for the auto-propagation path.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources