Skip to main content
Glama

generate_article

Encola la generación con IA de un artículo nuevo (a partir de un tema propuesto, una palabra clave o un brief). Reserva créditos y devuelve generation_id; usa get_generation para seguir el estado. Si el máximo estimado supera 50 créditos, repite la llamada con confirm: true.

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": {
      "blogId": "<blogId>",
      "source": "<source>"
    },
    "name": "generate_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
faqNoAñadir preguntas frecuentes al final del artículo.
briefNoInstrucciones del artículo en texto libre (30-1500 caracteres) con source=brief.
blogIdYesId del blog (de list_blogs).
intentNoIntención de búsqueda: informational, commercial o transactional.
lengthNoLongitud: short, medium (por defecto) o long. Más largo cuesta más créditos.
sourceYesDe dónde sale el artículo: topic (una idea del blog), keyword o brief.
confirmNotrue para confirmar cuando el máximo estimado pasa de 50 créditos (estimate_article).
keywordNoPalabra clave del artículo (2-80 caracteres) con source=keyword.
webSearchNoInvestigar en la web antes de escribir (más créditos; no en Free).
textModelIdNoId del modelo de texto (de list_ai_models); null o sin él, el del blog.
topicIdeaIdNoId de la idea de tema (de get_blog) con source=topic.
imageModelIdNoId del modelo de portada (de list_ai_models), "none" sin portada; null o sin él, el del blog.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / blogId / description
      Added value: +"Id del blog (de list_blogs)."
    • addedInput schema / properties / brief / description
      Added value: +"Instrucciones del artículo en texto libre (30-1500 caracteres) con source=brief."
    • addedInput schema / properties / confirm / description
      Added value: +"true para confirmar cuando el máximo estimado pasa de 50 créditos (estimate_article)."
    • addedInput schema / properties / faq / description
      Added value: +"Añadir preguntas frecuentes al final del artículo."
    • addedInput schema / properties / imageModelId / description
      Added value: +"Id del modelo de portada (de list_ai_models), \"none\" sin portada; null o sin él, el del blog."
    • addedInput schema / properties / intent / description
      Added value: +"Intención de búsqueda: informational, commercial o transactional."
    • addedInput schema / properties / keyword / description
      Added value: +"Palabra clave del artículo (2-80 caracteres) con source=keyword."
    • addedInput schema / properties / length / description
      Added value: +"Longitud: short, medium (por defecto) o long. Más largo cuesta más créditos."
    • addedInput schema / properties / source / description
      Added value: +"De dónde sale el artículo: topic (una idea del blog), keyword o brief."
    • addedInput schema / properties / textModelId / description
      Added value: +"Id del modelo de texto (de list_ai_models); null o sin él, el del blog."
    • addedInput schema / properties / topicIdeaId / description
      Added value: +"Id de la idea de tema (de get_blog) con source=topic."
    • addedInput schema / properties / webSearch / description
      Added value: +"Investigar en la web antes de escribir (más créditos; no en Free)."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare that this is a non-read-only, non-destructive, non-idempotent, closed-world call. The description adds the key behaviors the annotations cannot express: it is asynchronous (returns a generation_id), it reserves credits as a side effect, and it has a 50-credit confirmation gate that will reject the call without confirm:true.

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?

Three short sentences, all front-loaded: purpose first, then follow-up routing, then the credit-gate exception. Nothing is repeated from the schema and no sentence is filler.

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 12-parameter, non-idempotent generation trigger with no output schema, the description supplies the two things absent from structured data: the returned generation_id and the credit-reservation side effect. It stops short of noting that generation consumes credits even on failure or what happens to reserved credits on rejection, but the essentials for correct invocation are present.

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 coverage is 100% and every parameter already carries a description, so the schema carries the parameter burden. The description restates the three source modes and the confirm rule but adds no syntax, default, or interaction detail beyond what the schema states.

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 ('Encola la generación con IA de un artículo nuevo') and names the three input sources (tema, palabra clave, brief). It is clearly distinguishable from the sibling get_generation, which it explicitly delegates status-tracking to.

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?

Explicitly routes follow-up polling to get_generation and specifies the retry-with-confirm:true condition when the estimate exceeds 50 credits. It does not name estimate_article as the tool that produces that estimate, so the agent must infer which sibling to call first.

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