Skip to main content
Glama

Store a secret for an app

dropyour_secret_set
DestructiveIdempotent

Store a SECRET for a graduated app (tier 4), bound to a host pattern. The value is encrypted at rest and NEVER readable back — by anyone, ever. The platform's egress membrane attaches it on outbound requests to the declared host, so your server code calls the API WITH NO KEY and never sees it. The host must be EXACTLY the one the code calls (api.example.com is not example.com; *.example.com covers subdomains, not example.com): with no matching secret the request leaves WITHOUT a key (the API usually answers 401); when the vault holds other secrets, the app's log (dropyour_logs) says so. The membrane sits ABOVE the socket: it does not terminate your TLS and injects no certificate authority into your sandbox — we attach a header, we never open your connection. form says HOW it is attached: bearer (default, Authorization: Bearer), header (X-Api-Key and friends), basic (key as username), or query (?api_key=). The form belongs to the secret, not to your code — changing how an API authenticates never means editing your app. Writing an existing name rotates it: omit form and the secret KEEPS the form it already has (give form only to change it; a new name defaults to bearer). dropyour_secrets_list shows each secret's form (type and field name, never the value). The value cannot contain control characters (line break, tab, NUL). Name: UPPERCASE_WITH_DIGITS (≤32). Host: lowercase domain, leading *. wildcard allowed. Value ≤ 4096 bytes, 16 secrets per app. Requires ownership (account token or managementToken). THIS TOOL TAKES THE VALUE AS A PARAMETER, SO IT PASSES THROUGH THIS CONVERSATION. When the value must not be seen here, do NOT ask the user to paste it: point them to a way that keeps it out. Either the app's page on dropyour.io (Settings, Secrets: a masked field), or one command they run themselves, the value read from their keychain or a file and sent as the request BODY: curl -sS -X PUT --data-binary @- --config <account token header, read from the keychain> "https://dropyour.io/api/drops/<dropId>/secrets/<NAME>?host=<host>" (optional &form=basic, &form=header:X-Api-Key, &form=query:api_key; without form, a replaced secret keeps its form). The exact command is at https://dropyour.io/en/docs/operate#secrets. Same vault, same rules; the response returns the name, host, date and form only. The account token is a secret too: it is read from the keychain in that same command, never pasted here, and passed through --config, never as a command-line argument.

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": {
      "dropId": "<dropId>",
      "name": "<name>",
      "host": "<host>",
      "value": "<value>"
    },
    "name": "dropyour_secret_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
formNoHow the key is attached at the network boundary. Omitted: a new secret gets bearer (Authorization: Bearer), a rotated one keeps its current form. Use header for X-Api-Key style APIs, basic for key-as-username, query for ?api_key=. Your code never sends the key in ANY of these forms.
hostYesHost pattern the secret is bound to, e.g. api.stripe.com or *.example.com
nameYes
valueYes
dropIdYes
managementTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / form / description
      Previous value: -"How the key is attached at the network boundary. Default: bearer (Authorization: Bearer). Use header for X-Api-Key style APIs, basic for key-as-username, query for ?api_key=. Your code never sends the key in ANY of these forms."New value: +"How the key is attached at the network boundary. Omitted: a new secret gets bearer (Authorization: Bearer), a rotated one keeps its current form. Use header for X-Api-Key style APIs, basic for key-as-username, query for ?api_key=. Your code never sends the key in ANY of these forms."
  2. Changed1 schema field changed
    • addedInput schema / properties / form
      Added value: +{
      +  "description": "How the key is attached at the network boundary. Default: bearer (Authorization: Bearer). Use header for X-Api-Key style APIs, basic for key-as-username, query for ?api_key=. Your code never sends the key in ANY of these forms.",
      +  "oneOf": [
      +    {
      +      "properties": {
      +        "type": {
      +          "const": "bearer",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "nom": {
      +          "description": "Header name, e.g. X-Api-Key",
      +          "maxLength": 64,
      +          "type": "string"
      +        },
      +        "type": {
      +          "const": "header",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "nom"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "type": {
      +          "const": "basic",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "nom": {
      +          "description": "Query parameter name, e.g. api_key",
      +          "maxLength": 64,
      +          "type": "string"
      +        },
      +        "type": {
      +          "const": "query",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "nom"
      +      ],
      +      "type": "object"
      +    }
      +  ]
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the idempotentHint/destructiveHint annotations: discloses that the value is encrypted at rest, never readable back, that writing an existing name rotates and destroys the prior value, that omitting `form` preserves the existing form, the 16-secrets-per-app and 4096-byte limits, the control-character restriction, the ownership requirement, and the fact that the value transits this conversation. Nothing here contradicts the annotations — the rotation semantics align with both hints.

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?

Front-loads the core purpose and the critical 'value passes through this conversation' warning, and every paragraph carries real information. It is nonetheless a very dense ~400-word block with heavy capitalization and an embedded multi-flag curl command that an agent must parse but usually will not execute; some of that detail could live behind the docs link.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter mutation tool with no output schema, the description covers auth, failure modes (missing host match produces a keyless request and a likely 401), response contents, storage limits, and the secure-alternative workflow. An agent has everything needed to call it correctly or to hand off safely.

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?

With schema description coverage at 33%, the description carries the load: it explains `form` (bearer/header/basic/query, header name vs query param name, and the rotation-keeps-form rule), `host` (lowercase, leading `*.` wildcard, exact-match caveat), `name` (UPPERCASE_WITH_DIGITS, ≤32), and `value` (≤4096 bytes, no control characters). `dropId` is left unexplained and `managementToken` is only alluded to as 'account token or managementToken', which keeps it short of a 5.

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

Purpose5/5

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

States a specific verb and resource ('Store a SECRET for a graduated app (tier 4), bound to a host pattern') and immediately distinguishes the operation from the sibling list tool ('dropyour_secrets_list shows each secret's form'). An agent knows exactly what this does and what it is not.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use guidance plus a strong when-NOT-to-use path: if the value must not be seen in this conversation, do not have the user paste it — use the web settings page or a self-run curl with --data-binary @-. It also routes debugging to dropyour_logs and introspection to dropyour_secrets_list, so alternatives are named rather than inferred.

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.