Skip to main content
Glama

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
base_segment_idYes
target_segment_idYes
max_distanceNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rixmerz/bigcontext_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server