Tool Details: grid_invoke

Basic Information

Tool Name:grid_invoke
Asset Name:Grid Invoke
Description:grid_invoke: Start a new operation on this venue or the selected execution venue and return its Job snapshot without waiting for completion. The returned id belongs to that execution venue, not to a local wrapper. Retain the id, execution venue and authentication mode for the advertised Job tools. A successful submission does not imply successful execution: inspect status. Calling again starts new work. Requires local invoke permission on the selected operation reference. Local execution also checks your resource permissions; remote execution is authorized by the destination using the explicitly selected identity and grants. Local scope does not narrow a supplied remote credential.
Adapter:grid
Asset Hash:0xbedb208b851deba39795e9bcaafda156d6afc4caff9c96c40d204ede213f9951
Input
PropertyTypeDescription
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.
inputanyArguments matching the target operation's input schema; any JSON value. Inspect unfamiliar operations' metadata before invoking them. Passed unchanged, including strings that look like JSON.
venuestringExecution venue HTTP(S) URL or routable DID. Omit to use this operation's default venue, normally the current venue. This input overrides any definition-level venue. Null is invalid. Retain the selected venue when following the returned Job.
operation*stringExact operation reference from catalog metadata, configuration or the task: v/ops/<group>/<op>, o/<pin>, a/<hash>, a hex asset hash, or a DID URL. Resolve it on the execution venue. A DID URL selects where to fetch a definition, not where to execute it. Never derive a catalog path from a tool name.
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": "grid_invoke",
    "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": "grid_invoke",
      "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": "grid_invoke",
        "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: 'grid_invoke',
        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": "Grid Invoke",
	"description": "grid_invoke: Start a new operation on this venue or the selected execution venue and return its Job snapshot without waiting for completion. The returned id belongs to that execution venue, not to a local wrapper. Retain the id, execution venue and authentication mode for the advertised Job tools. A successful submission does not imply successful execution: inspect status. Calling again starts new work. Requires local invoke permission on the selected operation reference. Local execution also checks your resource permissions; remote execution is authorized by the destination using the explicitly selected identity and grants. Local scope does not narrow a supplied remote credential.",
	"operation": {
		"adapter": "grid:invoke",
		"readOnly": false,
		"input": {
			"type": "object",
			"properties": {
				"operation": {
					"type": "string",
					"description": "Exact operation reference from catalog metadata, configuration or the task: v/ops/<group>/<op>, o/<pin>, a/<hash>, a hex asset hash, or a DID URL. Resolve it on the execution venue. A DID URL selects where to fetch a definition, not where to execute it. Never derive a catalog path from a tool name."
				},
				"input": {
					"description": "Arguments matching the target operation's input schema; any JSON value. Inspect unfamiliar operations' metadata before invoking them. Passed unchanged, including strings that look like JSON."
				},
				"venue": {
					"type": "string",
					"description": "Execution venue HTTP(S) URL or routable DID. Omit to use this operation's default venue, normally the current venue. This input overrides any definition-level venue. Null is invalid. Retain the selected venue when following the returned Job."
				},
				"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."
				}
			},
			"required": [
				"operation"
			]
		},
		"output": {
			"type": "object",
			"description": "Snapshot of the invoked Job on the execution venue, possibly already terminal. Follow its id on that same venue using the same authentication mode. This is not the record of a local grid wrapper.",
			"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"
			]
		},
		"toolName": "grid_invoke"
	}
}

Navigation

Back to adapter details

Back to all adapters

Back to index