Skip to content

get_procedure

Inspect one exact saved Procedure: ordered stages, parallel grouping, disabled entries, safe execution kinds/reference IDs and explicit truncation. Arguments and webhook secrets are omitted. Read effects and copy effects.acknowledgement before run_procedure. Core executes saved children as its built-in administrator user, not a caller-permission or Server-only Build sandbox. Schedule tools are separate.

Availability

Available under the default capability policy

The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.

Effect annotations

  • readOnlyHint — true
  • destructiveHint — false
  • idempotentHint — true

Inputs

The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.

id
Exact stable resource ID returned by a list tool. type "string" · pattern "^[0-9a-fA-F]{24}$"
name
Exact, case-sensitive name within this family; never interpreted as an ID. type "string" · minLength 1 · pattern "\\S"
Show input JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "required": [
        "id"
      ]
    },
    {
      "required": [
        "name"
      ]
    }
  ],
  "properties": {
    "id": {
      "description": "Exact stable resource ID returned by a list tool.",
      "pattern": "^[0-9a-fA-F]{24}$",
      "type": "string"
    },
    "name": {
      "description": "Exact, case-sensitive name within this family; never interpreted as an ID.",
      "minLength": 1,
      "pattern": "\\S",
      "type": "string"
    }
  },
  "type": "object"
}

Output

The registered output schema covers structured results and tool errors.

Detail
definition, effects, summary
AppError
candidates, correction, field, kind, message, operation, status
Show output JSON Schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "$ref": "#/$defs/Detail"
    },
    {
      "$ref": "#/$defs/AppError"
    }
  ],
  "$defs": {
    "Acknowledgement": {
      "additionalProperties": false,
      "properties": {
        "broader_effects_possible": {
          "type": "boolean"
        },
        "core_admin_authority": {
          "type": "boolean"
        }
      },
      "required": [
        "core_admin_authority",
        "broader_effects_possible"
      ],
      "type": "object"
    },
    "AppError": {
      "additionalProperties": false,
      "description": "Only application-owned messages and selected, nonsensitive metadata survive.",
      "properties": {
        "candidates": {
          "items": {
            "$ref": "#/$defs/Candidate"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "correction": {
          "type": [
            "string",
            "null"
          ]
        },
        "field": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "$ref": "#/$defs/ErrorKind"
        },
        "message": {
          "type": "string"
        },
        "operation": {
          "type": "string"
        },
        "status": {
          "format": "uint16",
          "maximum": 65535,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "kind",
        "message",
        "operation"
      ],
      "type": "object"
    },
    "Candidate": {
      "additionalProperties": false,
      "description": "A bounded ambiguity hint, never a raw upstream resource.",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "type": "object"
    },
    "DefinitionSummary": {
      "properties": {
        "authority": {
          "type": "string"
        },
        "enabled_execution_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "evidence_limit": {
          "type": "string"
        },
        "execution_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "failure_alert": {
          "type": "boolean"
        },
        "nonempty_schedule_configured": {
          "type": "boolean"
        },
        "schedule_enabled": {
          "type": "boolean"
        },
        "stage_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "stages": {
          "items": {
            "$ref": "#/$defs/StageSummary"
          },
          "type": "array"
        },
        "stages_complete": {
          "type": "boolean"
        },
        "webhook_enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "stages",
        "stage_count",
        "execution_count",
        "enabled_execution_count",
        "stages_complete",
        "webhook_enabled",
        "nonempty_schedule_configured",
        "schedule_enabled",
        "failure_alert",
        "authority",
        "evidence_limit"
      ],
      "type": "object"
    },
    "Detail": {
      "properties": {
        "definition": {
          "$ref": "#/$defs/DefinitionSummary"
        },
        "effects": {
          "$ref": "#/$defs/ProcedureEffects"
        },
        "summary": {
          "$ref": "#/$defs/ProcedureSummary"
        }
      },
      "required": [
        "summary",
        "definition",
        "effects"
      ],
      "type": "object"
    },
    "ErrorKind": {
      "description": "Stable public categories. No variant contains a raw upstream error.",
      "enum": [
        "invalid_arguments",
        "not_found",
        "ambiguous_target",
        "incomplete_resolution",
        "configuration",
        "authentication",
        "permission_denied",
        "timeout",
        "unreachable",
        "upstream",
        "invalid_response",
        "response_too_large",
        "capability_disabled",
        "unsupported_target",
        "stale_preview",
        "invalid_preview"
      ],
      "type": "string"
    },
    "ProcedureEffects": {
      "properties": {
        "acknowledgement": {
          "$ref": "#/$defs/Acknowledgement"
        },
        "cancellation_limit": {
          "type": "string"
        },
        "configuration_race": {
          "type": "string"
        },
        "definition": {
          "$ref": "#/$defs/DefinitionSummary"
        }
      },
      "required": [
        "definition",
        "acknowledgement",
        "cancellation_limit",
        "configuration_race"
      ],
      "type": "object"
    },
    "ProcedureSummary": {
      "properties": {
        "id": {
          "type": "string"
        },
        "last_run_at": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "stage_count": {
          "format": "int64",
          "type": "integer"
        },
        "state": {
          "type": "string"
        },
        "template": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "name",
        "template",
        "stage_count",
        "state",
        "last_run_at"
      ],
      "type": "object"
    },
    "Reference": {
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "required_editor_permission": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id",
        "required_editor_permission"
      ],
      "type": "object"
    },
    "StageSummary": {
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "execution_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "executions": {
          "items": {
            "$ref": "#/$defs/StepSummary"
          },
          "type": "array"
        },
        "executions_complete": {
          "type": "boolean"
        },
        "index": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "index",
        "name",
        "enabled",
        "executions",
        "execution_count",
        "executions_complete"
      ],
      "type": "object"
    },
    "StepSummary": {
      "properties": {
        "admin_only_to_configure": {
          "type": "boolean"
        },
        "arguments_configured": {
          "type": "boolean"
        },
        "dynamic_targets": {
          "type": "boolean"
        },
        "enabled": {
          "type": "boolean"
        },
        "index": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "operation": {
          "type": "string"
        },
        "reference": {
          "anyOf": [
            {
              "$ref": "#/$defs/Reference"
            },
            {
              "type": "null"
            }
          ]
        },
        "writable": {
          "type": "boolean"
        }
      },
      "required": [
        "index",
        "enabled",
        "operation",
        "reference",
        "arguments_configured",
        "admin_only_to_configure",
        "dynamic_targets",
        "writable"
      ],
      "type": "object"
    }
  }
}

Operator guides

All built-in tools