Integration
Preserve request correlation across tool calls
Use protocol response IDs and business operation IDs for their distinct jobs.
A busy skill can call several tools concurrently. The response association belongs to the transport, while an operation identifier belongs to a business action that may outlive a connection. Confusing those two roles can make a correct response appear to belong to the wrong task.
Track calls at the protocol boundary
A JSON-RPC request ID correlates requests and responses. A batch can produce responses in a different order from the requests, so associate each response with its ID. Distinguish notifications that deliberately omit an ID and rely on the protocol rules for whether to expect a response.
Carry a separate business identifier
A queued export can have an operation ID for status checks and resumption. It can span several RPC requests with different correlation IDs. An idempotency key may also need to survive a retry. Give each identifier a clear lifecycle and avoid using an increase in the RPC counter as evidence a new business action was intended.
Preserve the joins in telemetry
Attach the tool method, request ID, and permitted business ID to the appropriate trace spans. Validate that responses with unknown or duplicate IDs take a clear error path. Include concurrent successes and failures in a fixture so an incorrect association cannot quietly look successful.