Incidents

Count incidents by status

Returns how many incidents there are in each status, with optional filters by project, space, vehicle, item, physical unit or order.

Tool
filmo_incidents_status_counts
Access: Read

Result

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

generated from the schema

The six keys always come out, with 0 if there are none. It is the only way to discover the volume: this resource does not publish a listing.

Arguments

projectIdstring

Filter by project.

Limits: min length 1, max length 100

spaceIdstring

Filter by space.

Limits: min length 1, max length 100

vehicleIdstring

Filter by vehicle.

Limits: min length 1, max length 100

itemIdstring

Filter by catalog item.

Limits: min length 1, max length 100

serializedItemIdstring

Filter by physical unit.

Limits: min length 1, max length 100

orderIdstring

Filter by order.

Limits: min length 1, max length 100

Result

On success the result carries structuredContent with data and meta. These are the attributes of data.

Show the attributes of data
draftinteger

Incidents in draft.

openinteger

Open incidents.

waitinginteger

Waiting incidents.

repairinginteger

Incidents under repair.

completeinteger

Resolved incidents.

lostinteger

Material declared lost.

An error is a result with isError: true and the problem in content[0].text; there is no structuredContent. See Errors.

The same operation by REST

This tool runs GET /api/v1/incidents/status-counts.

  • Incidents

    Count incidents by status

    Returns how many incidents there are in each status, with optional filters by project, space, vehicle, item, physical unit or order.

  • Guides

    Safe writes

    An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.

  • Guides

    Errors

    A tool error is a result with isError: true and the problem in the first text block. Branch on its code.