Skip to main content
Glama
mcp-sru-syntax

mcp-sru-syntax

build_sru_search_url

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
correction_titleYesThe 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

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the readOnly/idempotent annotations: discloses the two-stage execution path (governed SQL function first at 3-5s, agent fallback at 15-90s), the retry policy (one retry for empty reply/busy agent/outage, none for timeouts), and the stable error taxonomy with error ids.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose, then behavior, then error/retry semantics in a logical order. Slightly long, and enumerating all ten error categories is more than the agent strictly needs, but each paragraph carries operational information rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter, no-network URL-builder this covers everything callable-relevant: input handling rules, latency expectations for both paths, the no-result case, and error/retry behavior. Return values need not be described because an output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter's description already covers the same ground ('full correction notice title exactly as given', examples, don't shorten). The description's 'Pass the full title exactly as given' mostly restates the schema, so it adds no new parameter-level meaning. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific transformation: correction-notice title in, NAL Alma production SRU searchRetrieve URL for the original article out, with concrete example prefixes. An agent knows exactly what the tool produces without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs 'Pass the full title exactly as given' and warns not to shorten or clean it, plus a clear boundary condition: if the notice names no single original article, it says so and returns no URL. No alternatives are named, but the sibling list is empty, so there is nothing to route against.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools