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

    Function buildToolManifest

    • Builds a reduced MCP tool manifest from a policy-filtered capability inventory.

      Parameters

      Returns McpToolManifest

      Fully populated tool manifest ready for MCP runtime registration.

      The caller is responsible for applying policy before calling this function. Use applyCapabilityPolicy from CapabilityPolicy to filter the inventory first.

      Generic capabilities (kind === 'generic') are collapsed by operationType, each producing one McpGenericTool with an enumerated supportedObjectTypes list. Special capabilities (kind === 'special') produce one McpSpecialTool each. A single McpDiscoveryEntry is always appended and counted in totalToolCount.