Skip to main content
Glama

Descuento por grupo

get_group_pricing
Read-only

Retrieves group pricing discounts for one or all classroom courses, showing how much each additional attendee pays as group size grows up to five people.

Instructions

Muestra el descuento por cantidad de personas de los cursos del aula (o de uno): quien compra paga el precio completo y cada persona adicional paga un porcentaje menos que crece con el tamaño del grupo (hasta 5 personas). Modos: «defecto» (30, 35, 40 y 45 %), «personalizado» o «desactivado».

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_group_pricing"
  }
}

Input Schema

NameRequiredDescriptionDefault
course_idNo
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)$"
    • removedInput schema / required
      Removed value: -[
      -  "classroom_id"
      -]
  2. Addedv0.4.0

TDQS

A3.5/5.0
Behavior4/5

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

The description is fully consistent with readOnlyHint=true ("Muestra"). Beyond the annotation it explains the actual pricing behavior being reported: the buyer pays full price, each additional person pays a decreasing percentage, the scale caps at 5 people, and the available modes come with their concrete percentages (30/35/40/45). It does not cover authorization needs or what happens when pricing is disabled, but it adds substantial meaning beyond the annotation.

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?

Content is front-loaded with the core purpose followed by the pricing explanation and then the mode list. One dense sentence plus a modes clause, with no filler, though the nested parentheses make it slightly harder to parse than it needs to be.

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?

This is a simple read-only getter on two optional parameters with no output schema, so the description carries most of the burden for explaining what the returned discount means — and it does that well with the pricing ladder and the named modes. The remaining gap is the parameter-to-scope mapping, which is left implicit.

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

Parameters2/5

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

Schema description coverage is 0% for both optional parameters. The phrase "de los cursos del aula (o de uno)" loosely maps to classroom_id vs. course_id, but neither parameter is named or described, and the behavior when neither is supplied (presumably returning all classroom courses) is only inferred. This is a thin compensation for a total schema coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ("Muestra") plus a concrete resource (the per-person quantity discount for classroom courses), and adds scope detail: all courses of the classroom, or just one. That is enough for an agent to distinguish it from the write-side sibling set_group_pricing, although the sibling is never named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase "de los cursos del aula (o de uno)" implies the two usage modes (all classroom courses vs. a single course), and the mode list hints at what configurations exist. However, there is no explicit when-to-use/when-not guidance, no mention of the alternative set_group_pricing for changes, and no stated prerequisites or permissions.

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