Skip to main content
Glama

Configurar descuento por grupo

set_group_pricing

Configure group discount percentages for a course by attendee count, choose custom tiers, restore defaults, or disable group sales; confirm pricing changes before applying.

Instructions

Define el porcentaje de descuento por cantidad de personas de un curso. «personalizado» exige discounts (para 2, 3, 4 y 5 personas, sin bajar de uno al siguiente); «defecto» vuelve a 30/35/40/45 %; «desactivado» deja de vender el curso para grupos. Cambia lo que paga el público: confirma el resultado con la persona antes de aplicarlo. El aula debe tener precios habilitados.

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": {
      "course_id": "<course_id>",
      "mode": "<mode>"
    },
    "name": "set_group_pricing"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
course_idYes
discountsNo% de descuento para 2, 3, 4 y 5 personas, en ese orden (por ejemplo [20, 25, 30, 35]). Hasta 4 valores, sin bajar de uno al siguiente.
classroom_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.7.0
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / classroom_id / description
      Removed value: -"Aula"
    • removedInput schema / properties / classroom_id / format
      Removed value: -"uuid"
    • removedInput schema / properties / classroom_id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / course_id / description
      Removed value: -"Curso"
    • removedInput schema / properties / course_id / format
      Removed value: -"uuid"
    • removedInput schema / properties / course_id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedInput schema / required
      Previous value: -[
      -  "classroom_id",
      -  "course_id",
      -  "mode"
      -]New value: +[
      +  "course_id",
      +  "mode"
      +]
  2. Addedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the single destructiveHint=false annotation by disclosing that this changes what the public pays, that confirmation is required before applying, and that «desactivado» stops the course from being sold to groups at all. It stops short of saying whether the change takes effect immediately, whether it is reversible, or what permissions are needed, which matters for a pricing mutation.

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 compact sentences, front-loaded with the action and followed by mode semantics, then the impact warning and the prerequisite. No filler or redundant restatement of the name.

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 mutation with four parameters and no output schema, the definition covers the risky mode semantics, public-facing impact, and the pricing-enabled prerequisite. The remaining gap is the role of classroom_id relative to course_id, which an agent must invoke without guidance.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 25% schema description coverage, the description carries real weight: it defines each enum value of mode behaviorally and reinforces the discounts ordering rule and monotonic constraint. However, classroom_id and course_id receive no semantic treatment — it is unclear whether classroom_id scopes the override to a single classroom or is optional — leaving the two identifiers undocumented in both schema and description.

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 — defining per-person-count discount percentages for a course — and enumerates the three operating modes with their concrete effects (custom tiers, default 30/35/40/45%, or disabling group sales). An agent knows exactly what changes in the product after reading one sentence.

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 a clear precondition ("El aula debe tener precios habilitados") and an operating instruction (confirm the resulting pricing with the person before applying). It does not name the read-side alternative (get_group_pricing) for inspecting current values, so the when-not/when-to-verify path is left implicit.

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

Deploy Server

Other Tools