Tool Details: agent_fail_task

Basic Information

Tool Name:agent_fail_task
Asset Name:Fail Agent Task
Description:Use only for an assigned task shown in the current task context. For ordinary chat, send a normal assistant reply instead of calling this tool. Reject or fail the in-scope task when the request cannot be fulfilled, for example because it is outside the agent's capabilities or its input is invalid. The agent and task are determined from the current request context — no id is passed. Without a task in scope the call fails. Side effects: fails the pending task Job with the supplied error and removes the task from the agent's task queue.
Adapter:agent
Asset Hash:0x38e81def5b95db8862b1a7427f82e341e378b90cbbf6747a759c0b9548580930
Input
PropertyTypeDescription
error*stringHuman-readable explanation of why the task cannot be completed.
Output
PropertyTypeDescription
agentIdstring-
taskIdstring-
statusstringAlways 'FAILED'.

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": "agent_fail_task",
    "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": "agent_fail_task",
      "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": "agent_fail_task",
        "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: 'agent_fail_task',
        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": "Fail Agent Task",
    "description": "Use only for an assigned task shown in the current task context. For ordinary chat, send a normal assistant reply instead of calling this tool. Reject or fail the in-scope task when the request cannot be fulfilled, for example because it is outside the agent's capabilities or its input is invalid. The agent and task are determined from the current request context — no id is passed. Without a task in scope the call fails. Side effects: fails the pending task Job with the supplied error and removes the task from the agent's task queue.",
    "dateCreated": "2026-04-16T00:00:00Z",
    "operation": {
        "adapter": "agent:failTask",
        "readOnly": false,
        "toolName": "agent_fail_task",
        "input": {
            "type": "object",
            "properties": {
                "error": {
                    "type": "string",
                    "description": "Human-readable explanation of why the task cannot be completed."
                }
            },
            "required": ["error"]
        },
        "output": {
            "type": "object",
            "properties": {
                "agentId": { "type": "string" },
                "taskId":  { "type": "string" },
                "status":  { "type": "string", "description": "Always 'FAILED'." }
            }
        }
    }
}

Navigation

Back to adapter details

Back to all adapters

Back to index