Skip to main content
Glama

list_process_instances

Read-onlyIdempotent

List tenant process instances newest first with status, current step, and owner, then filter by open/closed state or definition to review running or completed work.

Instructions

List tenant process instances, newest first, with status, current step and owner. Filter by open/closed state or definition; use get_process_instance for details.

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

Input Schema

NameRequiredDescriptionDefault
openNotrue returns running instances; false returns completed instances; omit for all
limitNoItems per page; defaults to 20, maximum 50
beforeNoOpaque pagination cursor: next_before from the previous page
definition_keyNoProcess definition key, such as review-customer-record

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.2.4
    • changedInput schema / properties / before / description
      Previous value: -"Paginação: o next_before da página anterior (cursor opaco)"New value: +"Opaque pagination cursor: next_before from the previous page"
    • changedInput schema / properties / definition_key / description
      Previous value: -"Key da definição (ex.: \"analisar-cadastro-erp\")"New value: +"Process definition key, such as review-customer-record"
    • addedInput schema / properties / limit / description
      Added value: +"Items per page; defaults to 20, maximum 50"
    • changedInput schema / properties / open / description
      Previous value: -"true = só em andamento; false = só encerradas; omitido = todas"New value: +"true returns running instances; false returns completed instances; omit for all"
  2. Addedv2.2.3

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral context: tenant-wide scope, newest-first ordering, and the shape of each returned row. It does not mention page-size limits, though the schema covers those.

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?

Two compact sentences with no filler. Ordering and returned fields come first, then filtering and the sibling hand-off, which is the right front-loading for a list tool.

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?

For a read-only list tool with annotations covering the safety profile and a fully documented schema, the definition supplies ordering, scope, and row contents. With no output schema, a brief note on pagination behavior (e.g. how before/next_before round-trips) would have made it complete.

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

Parameters3/5

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

Schema coverage is 100% and each parameter has a description, so the schema carries parameter semantics. The description only restates the filterable dimensions (open/closed state, definition) without adding format or interaction details beyond the schema; a baseline 3 is appropriate.

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 ('List tenant process instances') plus ordering ('newest first') and the fields returned ('status, current step and owner'). It also names the sibling get_process_instance as the detail-oriented alternative, so an agent can distinguish the two without opening a schema.

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 explicit filtering guidance ('filter by open/closed state or definition') and routes to get_process_instance for details. It does not state exclusions such as where list_process_definitions or get_process_trail would be preferred, but the primary use case and the main alternative are clear.

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