Braintrust · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Braintrust Functions API

8 actions 8 updates phrasing extends openapi/braintrust-functions-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Braintrust's API. It is a proposal applied on top of the contract, not a document Braintrust publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 8

$.info
$.paths['/v1/function'].get
$.paths['/v1/function'].put
$.paths['/v1/function'].post
$.paths['/v1/function/{function_id}'].get
$.paths['/v1/function/{function_id}'].delete
$.paths['/v1/function/{function_id}'].patch
$.paths['/v1/function/{function_id}/invoke'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Braintrust Functions API
  version: 1.0.0
extends: openapi/braintrust-functions-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-19'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 7
- target: $.paths['/v1/function'].get
  update:
    x-apievangelist-phrasing:
      intent: List functions in a project
      effect: read
      questions:
      - Which functions are defined in my Braintrust project?
      - Can I list only the functions from one project?
      instructions:
      - text: List all functions in project {project_id}.
        slots:
          project_id: query.project_id
      - text: Find the function named {function_name} in project {project_id}.
        slots:
          function_name: query.function_name
          project_id: query.project_id
      method: generated
      generated: '2026-11-19'
- target: $.paths['/v1/function'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a function's definition
      effect: write
      questions:
      - How do I overwrite a function's definition in a project?
      - Will replacing a function with the same slug replace the existing one?
      instructions:
      - text: Replace function {slug} in project {project_id} with {function_data}.
        slots:
          slug: requestBody.slug
          project_id: requestBody.project_id
          function_data: requestBody.function_data
      - text: Overwrite the function {slug} in {project_id} with prompt {prompt_data}.
        slots:
          slug: requestBody.slug
          project_id: requestBody.project_id
          prompt_data: requestBody.prompt_data
      method: generated
      generated: '2026-11-19'
- target: $.paths['/v1/function'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a function without replacing
      effect: write
      questions:
      - How do I create a new function in a project?
      - What happens if I create a function with a slug that already exists?
      instructions:
      - text: Create function {slug} in project {project_id} with {function_data}.
        slots:
          slug: requestBody.slug
          project_id: requestBody.project_id
          function_data: requestBody.function_data
      - text: Add a new function {slug} to {project_id} described as {description}.
        slots:
          slug: requestBody.slug
          project_id: requestBody.project_id
          description: requestBody.description
      method: generated
      generated: '2026-11-19'
- target: $.paths['/v1/function/{function_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a function by id
      effect: read
      questions:
      - How do I fetch one function's definition by its id?
      - Can I read a function's definition at a specific version?
      instructions:
      - text: Get function {function_id}.
        slots:
          function_id: path.function_id
      - text: Show function {function_id} at version {version}.
        slots:
          function_id: path.function_id
          version: query.version
      method: generated
      generated: '2026-11-19'
- target: $.paths['/v1/function/{function_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a function
      effect: destructive
      questions:
      - How do I delete a function from a project?
      - Can I remove a function by its id?
      instructions:
      - text: Delete function {function_id}.
        slots:
          function_id: path.function_id
      - text: Remove the function {function_id} from its project.
        slots:
          function_id: path.function_id
      method: generated
      generated: '2026-11-19'
- target: $.paths['/v1/function/{function_id}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Partially update a function
      effect: write
      questions:
      - How do I rename a function or change its description?
      - Can I add tags to an existing function?
      instructions:
      - text: Rename function {function_id} to {name}.
        slots:
          function_id: path.function_id
          name: requestBody.name
      - text: Set the tags on function {function_id} to {tags}.
        slots:
          function_id: path.function_id
          tags: requestBody.tags
      method: generated
      generated: '2026-11-19'
- target: $.paths['/v1/function/{function_id}/invoke'].post
  update:
    x-apievangelist-phrasing:
      intent: Invoke a function
      effect: write
      questions:
      - How do I call a function with an input?
      - Can I invoke a function and expect a specific output?
      instructions:
      - text: Invoke function {function_id} with input {input}.
        slots:
          function_id: path.function_id
          input: requestBody.input
      - text: Call function {function_id} expecting output {expected}.
        slots:
          function_id: path.function_id
          expected: requestBody.expected
      method: generated
      generated: '2026-11-19'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/braintrust-functions-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.