Skip to main content
Glama
pretix-agent-mcp

pretix-agent-mcp

get_availability

Check ticket availability and sold-out status for a pretix event. Shows remaining counts per quota, where tickets went (paid, pending, carts, vouchers, waitlist), and sold-out quotas.

Instructions

How many tickets are still available — use this to answer "is it sold out".

Per quota: available_number left of total_size, and where the rest went (paid_orders, pending_orders, cart_positions = reserved in carts, blocking_vouchers, waiting_list). available_number is null for an unlimited quota. Without quota_id every quota of the event is returned plus a sold_out list of the quota names that have nothing left.

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": {
      "event": "<event>"
    },
    "name": "get_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventYes
limitNo
quota_idNo
subeventNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does solid work: it discloses the per-quota field breakdown, the meaning of available_number=null for unlimited quotas, and the switch from single-quota to all-quota mode. It does not cover auth needs, pagination via limit, or rate limits.

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?

Front-loaded with a one-line purpose and use case, then a compact return-structure explanation using backticked field names for readability. Every sentence conveys a distinct fact with no filler.

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 and no annotations, the description largely succeeds in explaining what comes back, including list mode and null semantics. Gaps remain around the limit parameter, subevent scoping, and event identifier format for a 4-parameter tool.

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?

Schema coverage is 0%, so the description must compensate; it does so well for quota_id (omitting it returns every quota plus a sold_out list) and implies the event scope. Two of four parameters, limit and subevent, get no mention, so the compensation is incomplete.

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 specific verb+resource (how many tickets remain for an event) and pins the scope precisely: sold-out determination. It distinguishes itself from siblings like list_quotas or sales_summary by framing the answer per quota and per event.

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?

It explicitly names the use case it serves ("use this to answer 'is it sold out'"), which routes the agent well. It does not name a specific alternative or an exclusion case, so it falls short of a full when/when-not treatment.

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