Skip to main content
Glama

get_process_definition

Read-onlyIdempotent

Retrieves a process definition and its version history; omit version for the latest published version and inspect it before publishing a new one.

Instructions

Get a complete process definition and its version history. Omit version for the latest published version; inspect it before publishing a new one.

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": {
      "key": "<key>"
    },
    "name": "get_process_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesProcess definition key, such as review-customer-record
versionNoSpecific version in any status; omit for the latest published version

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.2.4
    • changedInput schema / properties / key / description
      Previous value: -"Key da definição (ex.: \"analisar-cadastro-erp\")"New value: +"Process definition key, such as review-customer-record"
    • changedInput schema / properties / version / description
      Previous value: -"Versão específica (qualquer status); omitido = vigente"New value: +"Specific version in any status; omit for the latest published version"
  2. Addedv2.2.3

TDQS

A4/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 the non-obvious default behavior (omitting version yields the latest *published* version) and discloses the response scope (definition plus version history), which the annotations cannot convey.

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 short sentences, no waste, with the version default and the intended workflow front-loaded. Every clause carries information an agent needs.

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 simple two-parameter read tool with full schema coverage and complete annotations, this is nearly sufficient. Without an output schema, a brief note on what the version history looks like would close the remaining gap, but nothing essential to correct invocation is missing.

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 description coverage is 100% and the description's statement about omitting version for the latest published version essentially restates the schema's own wording for the version parameter. No additional format or constraint detail is added, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Get') and resource ('process definition') plus the scope ('complete ... and its version history'). It is clearly distinct from write-side siblings, though it does not explicitly contrast itself with list_process_definitions.

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 concrete guidance: omit version for the latest published version, and the purpose clause 'inspect it before publishing a new one' establishes the pre-publish inspection workflow. It stops short of naming publish_process_definition or validate_process_definition as alternatives.

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