Skip to main content
Glama

Check inventory availability

check_inventory_availability
Read-onlyIdempotent

Check whether inventory is free over a range of civil days (YYYY-MM-DD). Per item it returns the capacity, the peak number booked in the range, what is available, any shortage and the bookings that overlap. Pass event_id to use that gig's organization and civil dates (from/to optional overrides). Omit item_ids to check every item. An empty item_ids array is rejected; pass at least one id or omit the field.

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

Input Schema

NameRequiredDescriptionDefault
toNolast day, YYYY-MM-DD, inclusive; defaults to from
fromNofirst day, YYYY-MM-DD; required unless event_id is given
event_idNogig whose dates to use and whose own bookings to report
item_idsNoinventory item ids to check; omit for every item; an empty array is rejected
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNotool payload (API/composite/confirmation object); object, array, or primitive JSON
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the description only needs to add context. It does so by explaining the date-derivation behavior for event_id and the empty-array rejection, but it does not mention pagination or result-size limits.

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?

Three dense sentences with the core purpose front-loaded and no filler. The return-value enumeration is slightly packed but every clause carries operational information.

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

Completeness5/5

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

For a read-only availability query with five optional parameters, full schema coverage, and an output schema, the description covers scope, defaults, event-driven date inheritance, and the key validation edge case. Nothing essential for correct invocation is missing.

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 100%, so the baseline is 3, and the description adds genuine meaning: event_id supplies both the organization and the civil dates, from/to act as optional overrides, and omitting item_ids means all items. That goes beyond the field descriptions rather than restating them.

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 ('Check whether inventory is free') over a defined scope ('range of civil days, YYYY-MM-DD') and enumerates the per-item output (capacity, peak booked, available, shortage, overlapping bookings). This is precise enough to separate it from mutation siblings like assign_inventory or save_inventory.

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 clear operating guidance: pass event_id to inherit the gig's organization and civil dates, treat from/to as optional overrides, and omit item_ids to check every item. It also states an explicit rejection rule for empty item_ids, though it names no alternative tool or when-not-to-use condition.

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.