Skip to main content
Glama

Publicar en redes

wyro_publicar
Destructive

Publica o programa un post en Instagram, TikTok, Facebook, LinkedIn, X, Threads, YouTube o Pinterest. Úsala cuando el usuario pida publicar o programar contenido. No la uses para leer métricas (para eso, wyro_metricas). En cuentas reales, pide confirmación antes de publicar (confirmar=true). Devuelve un link de vista previa: muéstraselo al usuario. Instagram y Pinterest necesitan imagen o video; TikTok y YouTube, video.

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": {
      "texto": "<texto>",
      "redes": "<redes>"
    },
    "name": "wyro_publicar"
  }
}

Input Schema

NameRequiredDescriptionDefault
redesYesRedes donde publicar, por ejemplo ["instagram", "linkedin"].
textoYesTexto del post.
mediosNoURLs públicas de imágenes o videos (https).
formatoNostory para una historia de Instagram (una sola imagen o video). Por defecto, post.
a_la_colaNotrue para programarlo en el próximo horario libre de la cola del usuario (en vez de programar_para). La respuesta trae la hora elegida: cuéntasela al usuario.
confirmarNotrue solo después de que el usuario confirmó publicar en cuentas reales.
programar_paraNoFecha ISO 8601 con zona horaria para programar, por ejemplo 2026-11-02T10:00:00-03:00. Sin esto se publica ya.
textos_por_redNoTexto distinto por red, por ejemplo {"x": "versión corta", "linkedin": "versión larga"}. Claves: nombres de las redes (o ids de cuenta acc_…). Las demás usan texto.
primer_comentarioNoPrimer comentario, publicado justo después del post en las redes que lo admiten (Instagram, Facebook, LinkedIn, Threads, YouTube). Sirve para links y hashtags.
permitir_duplicadoNotrue solo si el usuario de verdad quiere publicar otra vez el mismo texto en la misma cuenta dentro de 24 h (si no, se rechaza como duplicate_post, que suele ser un reintento que ya salió).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / a_la_cola
      Added value: +{
      +  "description": "true para programarlo en el próximo horario libre de la cola del usuario (en vez de programar_para). La respuesta trae la hora elegida: cuéntasela al usuario.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / primer_comentario
      Added value: +{
      +  "description": "Primer comentario, publicado justo después del post en las redes que lo admiten (Instagram, Facebook, LinkedIn, Threads, YouTube). Sirve para links y hashtags.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / textos_por_red
      Added value: +{
      +  "additionalProperties": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "description": "Texto distinto por red, por ejemplo {\"x\": \"versión corta\", \"linkedin\": \"versión larga\"}. Claves: nombres de las redes (o ids de cuenta acc_…). Las demás usan texto.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / permitir_duplicado
      Added value: +{
      +  "description": "true solo si el usuario de verdad quiere publicar otra vez el mismo texto en la misma cuenta dentro de 24 h (si no, se rechaza como duplicate_post, que suele ser un reintento que ya salió).",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / formato
      Added value: +{
      +  "description": "story para una historia de Instagram (una sola imagen o video). Por defecto, post.",
      +  "enum": [
      +    "post",
      +    "story"
      +  ],
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, openWorldHint=true and idempotentHint=false, so the description is not the sole source of risk information; on top of that it discloses the confirmation gate before real publishing, that a preview link is returned and should be shown to the user, and per-network media prerequisites. What it does not spell out is irreversibility of a live post or how the platforms' auth requirements affect failure, which keeps it short of full disclosure.

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?

Five short sentences, each with a distinct job: capability, trigger, exclusion plus alternative, confirmation rule with its parameter, return value, platform media constraints. Nothing is repeated and the routing information is front-loaded.

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 ten-parameter, three-required-field mutation tool with no output schema, the definition covers the essential gaps: what is returned (a preview link, which the agent must relay), when confirmation is mandatory, and which networks reject text-only posts. Remaining details such as queue semantics live in the schema descriptions.

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 every one of the ten parameters is already documented in the schema, including confirmar, permitir_duplicado and texto_por_red. The description only restates confirmar and the media requirement for Instagram/Pinterest/TikTok/YouTube, adding no syntax or format detail beyond the schema, so baseline 3 applies.

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+resource ("Publica o programa un post") and enumerates all eight target networks, so the agent knows exactly what the tool does without opening the schema. It is also clearly distinguished from the sibling it names.

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 ("cuando el usuario pida publicar o programar contenido"), explicit when-not ("No la uses para leer métricas") and names the replacement ("wyro_metricas"). The rule for confirmar=true on real accounts adds a decision condition rather than leaving it to inference.

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.