Skip to main content
Get metadata for a discovered project task

Tool details

FieldValue
Nameget_task
GroupJobs

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "task_id": {
      "type": "string",
      "description": "Task ID from list_tasks, for example sync-data"
    },
    "runtime_target_kind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "production",
            "environment",
            "preview_branch"
          ],
          "description": "Provide the runtime target kind."
        },
        {
          "type": "null",
          "description": "Provide the runtime target kind."
        }
      ],
      "description": "Provide the runtime target kind."
    },
    "target_environment_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "Provide the target environment id."
        },
        {
          "type": "null",
          "description": "Provide the target environment id."
        }
      ],
      "description": "Provide the target environment id."
    },
    "target_branch_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "Provide the target branch id."
        },
        {
          "type": "null",
          "description": "Provide the target branch id."
        }
      ],
      "description": "Provide the target branch id."
    },
    "source_target_kind": {
      "type": "string",
      "enum": [
        "project",
        "production",
        "environment",
        "preview_branch"
      ],
      "description": "Provide the source target kind."
    }
  },
  "required": [
    "project_reference",
    "task_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Input schema for the get_task tool."
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Task identifier."
    },
    "name": {
      "type": "string",
      "description": "Human-readable task name."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Short description of what the task does."
    },
    "target": {
      "type": "string",
      "description": "Execution target that implements the task."
    },
    "source_path": {
      "type": "string",
      "description": "Source file path where the task definition lives."
    },
    "input_schema": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {
            "description": "Additional structured values associated with this result."
          },
          "description": "Structured input schema details associated with this record."
        },
        {
          "type": "null",
          "description": "The input schema returned by the tool."
        }
      ],
      "description": "Structured input schema for task execution, when defined."
    },
    "output_schema": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {
            "description": "Additional structured values associated with this result."
          },
          "description": "Structured output schema details associated with this record."
        },
        {
          "type": "null",
          "description": "The output schema returned by the tool."
        }
      ],
      "description": "Structured output schema for task execution, when defined."
    },
    "schedulable": {
      "type": "boolean",
      "description": "Whether the task can be used from cron schedules or workflow schedulers."
    }
  },
  "required": [
    "id",
    "name",
    "description",
    "target",
    "source_path",
    "input_schema",
    "output_schema",
    "schedulable"
  ],
  "additionalProperties": false,
  "description": "Task definition returned by MCP task tools.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}