def shape
import ezmcp@0.1.0.0/src/server.bend as Serverimport Base
import emerging-ezjson@1.2.0.0/src/value.bend as Value
436# a tool's result as revision `rev` reads it: 2025-03-26 has no
437# structuredContent (2025-06-18/server/tools#structured-content), so it is
438# left out; any later revision gets the result as the runner answered it
439def shape(rev: String, result: Value.Json) -> Value.Json:
440 shape.of(result, String.eq(rev, oldest()))