Frodo Library - v4.0.0-42
    Preparing search index...

    Function inferOperationType

    • Infers a normalized operation type from a Frodo method name.

      Parameters

      • methodName: string

        Method name to classify.

      Returns McpCapabilityOperationType

      Inferred operation type.

      Frodo follows a consistent naming convention where the singular form reads one object by id or name (readJourney) and the plural form reads all objects of that type (readJourneys). This function maps the plural form to the list operation type so policy filtering and tooling can reliably distinguish single-object reads from collection reads without requiring explicit per-method metadata.