Skip to main content
Glama

Crear un negocio (sin cuenta)

crear_negocio

Arma la tarjeta de lealtad de un negocio que TODAVÍA NO TIENE cuenta en PatoCard, sin que nadie inicie sesión. Crea un negocio BORRADOR con su tarjeta (póster de iOS 27 por omisión) y regresa: una imagen de la tarjeta, un token para seguir ajustándola y la liga para que el dueño lo reclame. La liga vence en 72 horas: díselo a tu usuario con la fecha exacta que viene en la respuesta. Un borrador no tiene clientes, no emite pases y no manda nada hasta que el dueño lo reclama.

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": {
      "negocio": "<negocio>",
      "giro": "<giro>",
      "premio": "<premio>"
    },
    "name": "crear_negocio"
  }
}

Input Schema

NameRequiredDescriptionDefault
giroYesEl tipo de negocio
metaNoSellos para ganar el premio
emojiNoUn emoji para el sello, p. ej. «☕»
formaNoForma de cada sello
camposNoLos renglones de texto de la tarjeta (reemplaza la lista completa). zona «cara» (frente, máx. 4) o «reverso»; etiqueta (máx. 20) y valor (máx. 60) con marcadores {cliente} {sellos} {meta} {faltan} {premio} {vence}; en el reverso, `url` vuelve el valor una liga (dirección, reservas, redes). Ejemplo: {clave:'faltan', zona:'cara', etiqueta:'Te faltan', valor:'{faltan} para {premio}'}
ciudadNo
estiloNo«poster» (RECOMENDADO, y el de omisión al crear) = la tarjeta grande de iOS 27 con la foto a todo lo alto; los iPhone sin iOS 27 y Google usan la clásica solos. «clasico» = solo la tarjeta de siempre
premioYesUn texto corto, p. ej. «Un café gratis»
logoUrlNoLogo del negocio desde una URL https (hasta 12 MB; se reduce solo). null lo quita. Horizontal 3.2:1 (horizontal), 480×150 px o más, PNG sin fondo.
negocioYesEl nombre del negocio, p. ej. «Café Pato»
fondoUrlNoImagen de fondo desde una URL https (JPG, PNG o WebP, hasta 12 MB; se reduce sola). null la quita. Póster: vertical, ideal 1035×1515 px o más (1:1.46 (vertical, casi 2:3)); el sujeto entre el 43 % y el 59 % de la altura (arriba van los sellos).
terminosNoReverso: términos y condiciones
comoSelloNoReverso: cómo se gana un sello
fondoVeloNoQué tanto se oscurece la foto de fondo para que se lea el texto (0–90 %)
pendienteNoCómo se ve un sello por ganar: punteado, contorno, solido o icono (el ícono tenue). Sobre una foto se leen mejor «solido» o «contorno»
colorFondoNoFondo de la tarjeta
colorSelloNoSellos ganados
colorTextoNoTexto de la tarjeta
descPremioNoReverso: qué es el premio, con detalle
logoGrandeNoEn «poster»: dibujar el logo grande dentro de la foto
colorFranjaNoFondo de la franja de sellos
correoDuenoNoAltamente recomendado (no obligatorio): el correo del DUEÑO del negocio, SOLO si tu usuario te lo dio para esto; nunca lo adivines. Le mandamos su tarjeta y la liga para activarla, y un recordatorio un día antes de que venza; si reclama desde ese correo, se activa sin confirmar otra vez.
vocabularioNoCómo llama el negocio a sus sellos y premios, p. ej. {sello:'Clase', sellos:'clases', premio:'Clase gratis', premios:'clases gratis'}
logoImagenIdNoLogo que el negocio ya tiene (id de listar_imagenes). Horizontal 3.2:1 (horizontal), 480×150 px o más, PNG sin fondo.
maxSellosDiaNoTope de sellos por cliente al día
fondoImagenIdNoImagen de fondo que el negocio ya tiene (id de listar_imagenes). Póster: vertical, ideal 1035×1515 px o más (1:1.46 (vertical, casi 2:3)); el sujeto entre el 43 % y el 59 % de la altura (arriba van los sellos).
nombreTarjetaNoCómo se llama la tarjeta, p. ej. «Café de la casa»
selloImagenIdNoEl sello GANADO como imagen propia en vez de emoji (id de listar_imagenes). null vuelve al emoji/ícono. Cuadrado 512×512 px, PNG sin fondo, figura simple.
colorSelloVacioNoSellos por ganar
selloVacioImagenIdNoEl sello POR GANAR como imagen propia. Sin él, se usa la del sello ganado en gris

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say readOnly=false, idempotent=false, destructive=false. The description goes much further: it explains the entity is a DRAFT with no clients, no pass issuance and no outbound messages until claimed, and that the claim link expires in 72 hours. That lifecycle and side-effect disclosure is exactly what a mutation tool needs beyond its annotations.

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?

Four sentences, front-loaded with what gets created, then what is returned, then the expiry instruction, then the dormant-draft caveat. No filler and no repetition of schema fields.

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 30-parameter mutation with no output schema, the description covers the essentials the schema cannot: the return payload (card image, edit token, claim link), the expiry, and the inert state of the draft. It is slightly thin on how the returned token should be used afterward and on the claim/activation path, but the core is there.

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 97%, so the 30 parameters are already self-documenting; the description adds only one parameter-level fact (póster is the default style). It does not explain the required trio (negocio, giro, premio) or the relationship between the token returned and the borrador-editing tools. Baseline 3 is correct when the schema carries the parameter burden.

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?

The description states a concrete verb and resource — "Arma la tarjeta de lealtad" / "Crea un negocio BORRADOR" — and scopes it precisely with "un negocio que TODAVÍA NO TIENE cuenta ... sin que nadie inicie sesión", which distinguishes it from the account-bound siblings (mi_negocio, crear_programa) without needing their schemas.

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?

Usage context is clear: call it for a business that does not yet have an account and where nobody logs in, and it tells the agent to relay the 72-hour expiry with the exact date from the response. It stops short of stating when NOT to use it (e.g., what to use if the owner already has an account) or naming the follow-up sibling for later edits.

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