build_sru_search_url
Converts a correction notice title into the NAL Alma production SRU searchRetrieve URL for the original article, so staff and agents can locate the matching catalog record.
Instructions
Turn an erratum/correction notice title (e.g. 'Correction: ', 'Correction to “”', 'Corrigendum: ...') into the NAL Alma production SRU searchRetrieve URL for the original article. Pass the full title exactly as given. Runs the governed SQL function users.amanda_xu.build_sru_url first (usually 3-5 seconds); only if that fails, asks the agent-sru-syntax agent (15-90 seconds). If the notice names no single original article, says so and returns no URL.
Errors are returned as a short message that says what to do, with a stable
category (invalid_input, timeout, unavailable, rate_limited,
permission_denied, not_found, bad_request, bad_response, empty_reply,
internal) and an error id for the app owner. An empty reply, a busy agent
or a temporary outage is retried once; timeouts are not.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": {
"correction_title": "<correction_title>"
},
"name": "build_sru_search_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| correction_title | Yes | The full correction notice title exactly as given, e.g. 'Correction to: <original title>' or 'Corrigendum: <title>'. Do not shorten or clean it; the server removes prefixes, author lists and citations itself. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |