Skip to main content
Glama

Outbox: poner o sacar la contraseña de una página

outbox_set_page_password
Idempotent

Sets or removes a password on a published page, requiring visitors to enter it before viewing; pass null to remove protection.

Instructions

Pone una contraseña a una página (PUT /api/u/:user/:slug/password): quien la visite tiene que escribirla para verla. password: null la saca. Usá una contraseña que eligió el usuario; no inventes una en silencio ni la repitas en lugares públicos. Requiere publish. No es destructivo (el contenido no cambia).

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": {
      "slug": "<slug>",
      "password": "<password>"
    },
    "name": "outbox_set_page_password"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesSlug/path de la página (ej. 'clientes/acme/q3')
userNoNamespace dueño (default: el de tu key)
passwordYesContraseña nueva (mín. 4 caracteres) o null para sacarla

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations it adds the permission prerequisite (`publish`), the observable effect (visitors must enter the password to view the page), and the removal path via null. The line "No es destructivo (el contenido no cambia)" restates destructiveHint=false rather than adding new information, which caps it at 4.

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-loaded with verb, resource, and endpoint, then mode behavior, then the user-password constraint, then permission. Each sentence carries weight, with only mild redundancy in the destructive-behavior restatement.

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 three-parameter mutation with rich annotations and no output schema, the description covers the gate effect, the removal path, the permission requirement, and password-selection guidance. It leaves return-value expectations unstated, but the annotations and schema carry most of the remaining burden.

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%, so `slug`, `user`, and `password` (min 4 chars, null to clear) are already fully documented. The description repeats the null-removal semantics rather than adding format, default, or edge-case detail; baseline 3 is appropriate.

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?

States a specific verb and resource ("Pone una contraseña a una página") and even names the endpoint, and it immediately clarifies the dual mode (set vs. remove via `password: null`). It does not explicitly contrast with siblings such as outbox_set_visibility, so it falls short of a 5.

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?

Gives clear conditions for use: the page becomes gated for visitors, `password: null` removes protection, and it requires `publish` permission. It also warns to use a password the user chose rather than inventing one. No explicit when-not or named alternative tool, which keeps it below 5.

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