validate_proximity
Check if two document segments are adjacent within specified distance to enforce narrative continuity and prevent jump violations.
Instructions
Check if two segments are adjacent (within allowed distance).
Use to enforce "same verse or verse+1" constraints. Prevents narrative jump violations.
Args: base_segment_id: The anchor segment ID. target_segment_id: The segment ID being referenced. max_distance: Maximum allowed segment distance (0 = same, 1 = adjacent).
Returns: Proximity validation result.
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": {
"base_segment_id": "<base_segment_id>",
"target_segment_id": "<target_segment_id>"
},
"name": "validate_proximity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_segment_id | Yes | ||
| target_segment_id | Yes | ||
| max_distance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||