$echo '{
< "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."
<}' |
<apify call trovevault/mcp-tool-description-optimizer --silent --output-dataset