Tool Details: job_cancel

Basic Information

Tool Name:job_cancel
Asset Name:Job Cancel
Description:job_cancel: Request cancellation of an existing Job and return an acceptance acknowledgement. Existing terminal outcomes stay unchanged; prior side effects are not undone. For delegated execution, local CANCELLED alone does not prove the destination stopped: inspect cancellation.outcome and delegation.remoteStatus when present. For local Jobs, requires job/manage; raw CRUD permissions and creator attribution do not grant it. Remote actions use the selected remote identity and grants, authorized at the hosting venue. Cancelling an owning local proxy asks its remote execution to stop using the bound credentials; cancelling a result waiter only stops waiting.
Adapter:job
Asset Hash:0x876f127cab1e2b45d056e91aa87ca5c8542ce13e6ee3e71e5b882d37e0490d02
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
accepted*booleanThe control was accepted. This does not prove remote cessation; read Job status separately with job/read.
id*string-

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-test.covia.ai/mcp

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

url = "https://venue-test.covia.ai/mcp"
payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "job_cancel",
        "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-test.covia.ai/mcp';
const payload = {
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: {
        name: 'job_cancel',
        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 Cancel",
	"description": "job_cancel: Request cancellation of an existing Job and return an acceptance acknowledgement. Existing terminal outcomes stay unchanged; prior side effects are not undone. For delegated execution, local CANCELLED alone does not prove the destination stopped: inspect cancellation.outcome and delegation.remoteStatus when present. For local Jobs, requires job/manage; raw CRUD permissions and creator attribution do not grant it. Remote actions use the selected remote identity and grants, authorized at the hosting venue. Cancelling an owning local proxy asks its remote execution to stop using the bound credentials; cancelling a result waiter only stops waiting.",
	"operation": {
		"adapter": "job:cancel",
		"toolName": "job_cancel",
		"readOnly": false,
		"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",
			"properties": {
				"id": {
					"type": "string"
				},
				"accepted": {
					"type": "boolean",
					"description": "The control was accepted. This does not prove remote cessation; read Job status separately with job/read."
				}
			},
			"required": [
				"id",
				"accepted"
			],
			"additionalProperties": false
		}
	}
}

Navigation

Back to adapter details

Back to all adapters

Back to index