Skip to main content
Glama

Liga de pago para contratar un paquete

comprar_paquete

Genera una liga de pago de Stripe para que la PERSONA dueña de la cuenta contrate un paquete (producto, plan y si paga mes o año). Usted no paga ni maneja datos de tarjeta: entréguele la liga al usuario, dígale el monto (USD más IVA) y que el paquete se activa solo al pagar. Confirme con el usuario el paquete antes de llamarla. Si la cuenta ya tiene paquete de ese producto responde ya_suscrito: el cambio se hace en aduanalabs.com/app/plan. Con llave al_test_ regresa una liga de ejemplo.

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": {
      "producto": "<producto>",
      "plan": "<plan>"
    },
    "name": "comprar_paquete"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesVea los volúmenes y montos con la herramienta precios.
productoYes
intervaloNomes = cobro mensual; anio = un cobro anual con descuento.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, readOnlyHint=false, non-idempotent and non-destructive; beyond that, the description discloses the key behavioral facts an agent could not infer: Stripe handles card data so the agent must never touch it, the package activates only after payment, and the already-subscribed account returns ya_suscrito. No disclosure of link expiry or whether repeated calls create duplicate links, which keeps it short of a 5.

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?

Effectively front-loaded: the tool's action and output come first, then the agent's obligations, the edge case, and the test-key behavior. Every sentence carries a distinct instruction; only minor tightening would be possible.

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?

With no output schema, the description does state what comes back (a link, an example link under a test key, a ya_suscrito signal) and what the agent must tell the user. For an open-world payment-link generator it is nearly complete; missing only shape/naming of the returned payload and failure behavior beyond ya_suscrito.

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?

At 67% schema description coverage, the schema already documents intervalo's monthly vs annual-discount meaning and points to precios for plan volumes and amounts. The description restates the three inputs naturally ('producto, plan y si paga mes o año') and adds the USD + IVA pricing note, but does not clarify what each plan enum tier contains.

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: 'Genera una liga de pago de Stripe' for contracting a package with producto, plan and intervalo. This is clearly distinguishable from siblings like precios or saldo, which do not produce a payment link.

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 explicit usage context: confirm the package with the user before calling, hand the link to the user rather than paying yourself, and if the account already has that product's package the description redirects to aduanalabs.com/app/plan instead. The when-not path plus the test-key caveat is strong, but no sibling tool is named as an alternative for price lookup (only the schema points to precios).

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