Skip to main content
Glama

Ventas para varias personas

group_sales
Read-only

Retrieves paid course purchases for multiple people in a classroom, reporting additional accounts sold, invitation status, and amount charged without contact details.

Instructions

Requiere permiso «comercio». Compras pagadas de un curso para varias personas en el aula: cuántas cuentas adicionales se vendieron, cuántas ya tienen correo asignado e invitación enviada, y cuánto se cobró por ellas. Sin correos ni datos de contacto.

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": "group_sales"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDías hacia atrás
limitNo
classroom_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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 / required
      Removed value: -[
      -  "classroom_id"
      -]
  2. Addedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

readOnlyHint=true already tells the agent this is a safe read, and the description adds value beyond that: an authorization prerequisite and a disclosure that the response contains no emails or contact data, which matters for an agent summarizing results to a user. It does not add rate limits or aggregation semantics, but the permission and privacy notes are substantive.

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?

Two sentences with the permission gate front-loaded before the scope, and the output dimensions enumerated compactly. No filler, though the enumeration of three return values sits in the description while the parameters that shape them are ignored.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only metrics tool with no output schema, the description adequately conveys what is returned (counts and charged amount) and the privacy boundary. However, with three parameters at low schema coverage and no mention of scoping, time window, or result limits, an agent still lacks enough to invoke it precisely.

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 only 33% (only 'days' is described; 'limit' and 'classroom_id' are bare), so the description needs to compensate and does not — no parameter is named or explained. The phrases 'de un curso' and 'en el aula' hint at classroom scoping but never tie it to classroom_id, and the default 30-day window and limit behavior go unmentioned.

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 resource and the exact reporting shape: paid multi-seat purchases of a course, how many extra accounts sold, how many already have an assigned email and sent invitation, and the amount charged. An agent can distinguish this from sibling sales tools (list_sales, sales_summary) because the scope is explicitly 'compras ... para varias personas en el aula'.

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?

Gives one concrete prerequisite ('Requiere permiso «comercio»'), which is genuinely useful for an agent deciding whether it can call it. It does not say when to prefer this over sales_summary or list_sales, nor when not to use it, so usage is only implied by the topic.

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