def describe

ezmcp@0.1.0.0 · src/openapi.bend:728

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base

728# a tool's description: the operation's description, else its summary,
729# each when it is a non-empty string, else the method and path it runs
730def describe(
731  desc: Maybe<&2, String>,
732  summary: Maybe<&2, String>,
733  +method: String,
734  path: String
735) -> String:
736  Maybe.default(&2, String, first(full(desc), full(summary)),
737    "Executes " ++ String.to_upper(method) ++ " " ++ path)

Uses (7)

Used by (1)