ExplainTool
Retrieve detailed reasons why a document matches or fails a query, enabling precise search relevance debugging.
Instructions
Returns information about why a specific document matches (or doesn't match) a query.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"index": "<index>",
"body": "<body>",
"opensearch_url": "<opensearch_url>"
},
"name": "ExplainTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| body | Yes | Request body containing the query to explain. | |
| index | Yes | ||
| aws_region | No | AWS region for IAM/Serverless authentication. | |
| aws_iam_arn | No | IAM role ARN for role-based authentication. | |
| aws_profile | No | AWS profile name for authentication. | |
| opensearch_url | Yes | OpenSearch endpoint URL. | |
| opensearch_no_auth | No | If true, connect without authentication. | |
| opensearch_timeout | No | Connection timeout in seconds. | |
| opensearch_password | No | Password for basic authentication. | |
| opensearch_username | No | Username for basic authentication. | |
| opensearch_ssl_verify | No | Set true to require SSL certificate verification. A false value is ignored, since only the operator may disable verification. | |
| aws_opensearch_serverless | No | If true, use OpenSearch Serverless service. |