Tool Details: job_status

Basic Information

Tool Name:job_status
Asset Name:Job Status
Description:job_status: Read an existing Job's current record without waiting or starting work. PENDING is queued and STARTED is running; COMPLETE has output; FAILED, REJECTED and CANCELLED are terminal. PAUSED may be resumed; INPUT_REQUIRED or AUTH_REQUIRED needs the requested input. Inspect progress, output/error, and any delegation or cancellation evidence. For a result waiter, delegation.remoteStatus describes the target; send requested input to that target, not to the waiter. For local Jobs, requires job/read; raw CRUD permissions and creator attribution do not grant it. Remote actions use the selected remote identity and grants, authorized at the hosting venue.
Adapter:job
Asset Hash:0xabd63cca661bd73ee66183b8a02ef489d29798909b6d12b917907ff8c3ac227c
Input
PropertyTypeDescription
id*stringExact Job ID on the selected hosting venue. A local wrapper and its destination are separate Jobs: use the ID of the one you intend to inspect or control. Agent, session and tool-call IDs are not Job IDs.
authenticateAsstringRemote identity: anonymous (default) sends no identity or grants; caller requires your identity credential addressed to the target venue, with no capabilities, plus any separate grants; venue is only for the venue itself. Use the same mode and credentials when following the Job. Local calls retain your caller context.
venuestringHosting venue HTTP(S) URL or routable DID. Omit for a local Job, including a local proxy. For a destination Job use its own ID and hosting venue. A definition may set a default venue; this input overrides it. Null is invalid.
ownerstringJob owner DID. Supply it for another owner, including retained Jobs. This selects a lookup namespace and grants no authority. With a remote venue, omission selects the authenticated principal, or the remote public principal in anonymous mode.
Output
PropertyTypeDescription
progressanyLatest progress, usually {message, data?}; may also be a string or operation-specific detail. Progress is not the final output.
errorCodeanyOptional operation-defined error code, a string or null; status alone does not identify the cause.
id*stringJob ID on this record's hosting venue.
outputanyThe operation's output when COMPLETE; any JSON value, including null. The output can itself be a handle returned by that operation.
status*stringPENDING is queued; STARTED is running. PAUSED may be resumed. INPUT_REQUIRED or AUTH_REQUIRED needs the requested input or credentials sent to this Job. COMPLETE has output; FAILED, CANCELLED and REJECTED are terminal. Inspect error and errorCode when present; do not automatically resubmit.
createdintegerCreation time in milliseconds since the Unix epoch.
updatedintegerLast record update in milliseconds since the Unix epoch.
cancellationobjectEvidence from an attempted backend cancellation; may arrive after local cancellation. Missing evidence does not prove remote work stopped.
delegationobjectObservations of remote work, when this Job delegates or waits on another Job.
erroranyReported reason for failure, rejection or cancellation: a string when available, otherwise absent or null.

MCP Tool Usage Examples

This tool can be called via the MCP (Model Context Protocol) endpoint. Here are examples of how to use it:

JSON-RPC Call Example:

POST to https://venue-2.covia.ai/mcp

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "job_status",
    "arguments": {
      "input": "your input here"
    }
  }
}
cURL Example:
curl -X POST https://venue-2.covia.ai/mcp \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "job_status",
      "arguments": {
        "input": "your input here"
      }
    }
  }'
Python Example:
import requests
import json

url = "https://venue-2.covia.ai/mcp"
payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "job_status",
        "arguments": {
            "input": "your input here"
        }
    }
}

response = requests.post(url, json=payload)
result = response.json()
print(result)
JavaScript/Node.js Example:
const fetch = require('node-fetch');

const url = 'https://venue-2.covia.ai/mcp';
const payload = {
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: {
        name: 'job_status',
        arguments: {
            input: 'your input here'
        }
    }
};

fetch(url, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data));

Asset Metadata

{
	"name": "Job Status",
	"description": "job_status: Read an existing Job's current record without waiting or starting work. PENDING is queued and STARTED is running; COMPLETE has output; FAILED, REJECTED and CANCELLED are terminal. PAUSED may be resumed; INPUT_REQUIRED or AUTH_REQUIRED needs the requested input. Inspect progress, output/error, and any delegation or cancellation evidence. For a result waiter, delegation.remoteStatus describes the target; send requested input to that target, not to the waiter. For local Jobs, requires job/read; raw CRUD permissions and creator attribution do not grant it. Remote actions use the selected remote identity and grants, authorized at the hosting venue.",
	"operation": {
		"adapter": "job:status",
		"toolName": "job_status",
		"readOnly": true,
		"input": {
			"type": "object",
			"properties": {
				"id": {
					"type": "string",
					"description": "Exact Job ID on the selected hosting venue. A local wrapper and its destination are separate Jobs: use the ID of the one you intend to inspect or control. Agent, session and tool-call IDs are not Job IDs."
				},
				"venue": {
					"type": "string",
					"description": "Hosting venue HTTP(S) URL or routable DID. Omit for a local Job, including a local proxy. For a destination Job use its own ID and hosting venue. A definition may set a default venue; this input overrides it. Null is invalid."
				},
				"authenticateAs": {
					"type": "string",
					"enum": [
						"anonymous",
						"caller",
						"venue"
					],
					"default": "anonymous",
					"description": "Remote identity: anonymous (default) sends no identity or grants; caller requires your identity credential addressed to the target venue, with no capabilities, plus any separate grants; venue is only for the venue itself. Use the same mode and credentials when following the Job. Local calls retain your caller context."
				},
				"owner": {
					"type": "string",
					"description": "Job owner DID. Supply it for another owner, including retained Jobs. This selects a lookup namespace and grants no authority. With a remote venue, omission selects the authenticated principal, or the remote public principal in anonymous mode."
				}
			},
			"required": [
				"id"
			]
		},
		"output": {
			"type": "object",
			"description": "Current Job record on the selected hosting venue. Optional fields are present only when reported; absence of remote evidence does not prove completion or cancellation.",
			"properties": {
				"id": {
					"type": "string",
					"description": "Job ID on this record's hosting venue."
				},
				"status": {
					"type": "string",
					"enum": [
						"PENDING",
						"STARTED",
						"PAUSED",
						"INPUT_REQUIRED",
						"AUTH_REQUIRED",
						"COMPLETE",
						"FAILED",
						"CANCELLED",
						"REJECTED"
					],
					"description": "PENDING is queued; STARTED is running. PAUSED may be resumed. INPUT_REQUIRED or AUTH_REQUIRED needs the requested input or credentials sent to this Job. COMPLETE has output; FAILED, CANCELLED and REJECTED are terminal. Inspect error and errorCode when present; do not automatically resubmit."
				},
				"output": {
					"description": "The operation's output when COMPLETE; any JSON value, including null. The output can itself be a handle returned by that operation."
				},
				"error": {
					"description": "Reported reason for failure, rejection or cancellation: a string when available, otherwise absent or null."
				},
				"errorCode": {
					"description": "Optional operation-defined error code, a string or null; status alone does not identify the cause."
				},
				"created": {
					"type": "integer",
					"description": "Creation time in milliseconds since the Unix epoch."
				},
				"updated": {
					"type": "integer",
					"description": "Last record update in milliseconds since the Unix epoch."
				},
				"progress": {
					"description": "Latest progress, usually {message, data?}; may also be a string or operation-specific detail. Progress is not the final output."
				},
				"delegation": {
					"type": "object",
					"description": "Observations of remote work, when this Job delegates or waits on another Job.",
					"properties": {
						"remoteId": {
							"type": "string",
							"description": "Destination Job ID, not a local Job ID. Use only with its known hosting venue."
						},
						"remoteStatus": {
							"type": "string",
							"description": "Last observed destination state; may differ from this Job's status."
						},
						"notFollowed": {
							"type": "string",
							"description": "Why observation stopped and what the caller can do. Does not establish failure of the destination work."
						}
					}
				},
				"cancellation": {
					"type": "object",
					"description": "Evidence from an attempted backend cancellation; may arrive after local cancellation. Missing evidence does not prove remote work stopped.",
					"properties": {
						"remoteId": {
							"type": "string"
						},
						"outcome": {
							"type": "string",
							"enum": [
								"requested",
								"acknowledged",
								"finished",
								"rejected",
								"unknown"
							],
							"description": "requested: sent, no confirmation; acknowledged: peer reported cancellation; finished: peer reported another terminal outcome; rejected: peer refused; unknown: no conclusive answer. None undoes prior side effects."
						},
						"remoteStatus": {
							"type": "string"
						},
						"httpStatus": {
							"type": "integer"
						},
						"errorCode": {
							"description": "Protocol error code, when supplied."
						}
					}
				}
			},
			"required": [
				"id",
				"status"
			]
		}
	}
}

Navigation

Back to adapter details

Back to all adapters

Back to index