$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "toolsJson": "{\n \"tools\": [\n {\n \"name\": \"search_documents\",\n \"description\": \"Search docs\",\n \"inputSchema\": {\n \"type\": \"object\",\n \"properties\": {\n \"query\": { \"type\": \"string\", \"description\": \"query\" },\n \"limit\": { \"type\": \"integer\" }\n },\n \"required\": [\"query\"]\n }\n },\n {\n \"name\": \"find_document\",\n \"description\": \"Find a document\",\n \"inputSchema\": {\n \"type\": \"object\",\n \"properties\": {\n \"query\": { \"type\": \"string\" },\n \"limit\": { \"type\": \"integer\" }\n },\n \"required\": [\"query\"]\n }\n },\n {\n \"name\": \"delete_document\",\n \"description\": \"Delete a document by id\",\n \"inputSchema\": {\n \"type\": \"object\",\n \"properties\": {\n \"documentId\": { \"type\": \"string\" },\n \"confirm\": { \"type\": \"boolean\", \"description\": \"confirm deletion\" }\n },\n \"required\": [\"documentId\", \"confirm\"]\n }\n }\n ]\n}",
< "agentContext": "Knowledge-base agent with document search, retrieval, update, and deletion tools."
<}
<EOF
$curl "https://api.apify.com/v2/acts/trovevault~mcp-tool-description-optimizer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'