> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goosybear.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Call data.analyze

> Work over every row of one of the member's data tables or CSV files: answer a question about it, change the table itself, copy it, or fill a column from outside it. Goosy writes and runs a small Python analysis on every row in a sealed sandbox, checks it, and returns a summary, a preview table and, when a trend or comparison reads better drawn, a chart. A change ask ('remove the duplicates', 'split the name column into first and last') changes the member's table in place as one version, so 'undo' puts it back; pass `change_table`. A copy is made only when the member asks for one: pass `keep_as_table` and the result is written whole into a new table, the first left as it is. A file attached or dropped in chat can be read beside the table by passing its `file_id` with `table_id`. A fill ('find each shop's website', 'add the owner's email from our CRM') passes `fill_column`: it asks the member's own connections, or the web when nothing connected fits, for each row's value, writes rows into the table as they are found and leaves a row blank when nothing is found. It runs in the background: it answers `running` at once with the rows asked and an estimated cost, the member can keep working or leave, says stop to end it with what was filled kept, and hears a finish line when it ends. A column the result needs, one being filled or one joined in from a file, is added by the run itself together with its first values, so the table never holds it empty; name it in `fill_column` or the question. Every model call, run and lookup is charged to the workspace as the member's use; state a big fill's estimate as you start it. An answer or a change usually lands within a minute or two; past that it answers `running`, and calling again with the same table and ask returns the result. A run still going leaves the table open: a chart or question of it asked meanwhile is its own call, answered over the rows as they stand. Not for reading or filtering a table's rows as they stand, which `data.query` does, a table's columns and size, which `data.describe` gives, bringing rows in from a connected service, which `data.import` does, or a document's text, which `knowledge.search` finds.

Every result names the workspace it ran in. Say which workspace the answer is about. When the account has more than one workspace and none is selected, this tool refuses with `workspace_ambiguous` and lists the choices — offer them, never pick one.



## OpenAPI

````yaml /openapi.json post /api/v1/tools/data.analyze
openapi: 3.1.0
info:
  title: Goosy Bear API
  version: 1.0.0-beta
  summary: Manage workspace content, projects, Data tables, Pages, library and credits.
  description: >-
    BETA. This API is in beta: paths, request shapes and response envelopes may
    change, and every response carries an `x-goosy-api: beta` header for as long
    as that is true. A change is additive, or it is deprecated first: a response
    to a call that uses a deprecated feature carries `Deprecation` and `Sunset`
    headers, and nothing is removed until at least 90 days after its
    deprecation. Pin the OpenAPI document you generated against and re-generate
    when it changes.
servers:
  - url: https://app.goosybear.ai
    description: Production
security:
  - tenantApiKey: []
paths:
  /api/v1/tools/data.analyze:
    post:
      tags:
        - data
      summary: Call data.analyze
      description: >-
        Work over every row of one of the member's data tables or CSV files:
        answer a question about it, change the table itself, copy it, or fill a
        column from outside it. Goosy writes and runs a small Python analysis on
        every row in a sealed sandbox, checks it, and returns a summary, a
        preview table and, when a trend or comparison reads better drawn, a
        chart. A change ask ('remove the duplicates', 'split the name column
        into first and last') changes the member's table in place as one
        version, so 'undo' puts it back; pass `change_table`. A copy is made
        only when the member asks for one: pass `keep_as_table` and the result
        is written whole into a new table, the first left as it is. A file
        attached or dropped in chat can be read beside the table by passing its
        `file_id` with `table_id`. A fill ('find each shop's website', 'add the
        owner's email from our CRM') passes `fill_column`: it asks the member's
        own connections, or the web when nothing connected fits, for each row's
        value, writes rows into the table as they are found and leaves a row
        blank when nothing is found. It runs in the background: it answers
        `running` at once with the rows asked and an estimated cost, the member
        can keep working or leave, says stop to end it with what was filled
        kept, and hears a finish line when it ends. A column the result needs,
        one being filled or one joined in from a file, is added by the run
        itself together with its first values, so the table never holds it
        empty; name it in `fill_column` or the question. Every model call, run
        and lookup is charged to the workspace as the member's use; state a big
        fill's estimate as you start it. An answer or a change usually lands
        within a minute or two; past that it answers `running`, and calling
        again with the same table and ask returns the result. A run still going
        leaves the table open: a chart or question of it asked meanwhile is its
        own call, answered over the rows as they stand. Not for reading or
        filtering a table's rows as they stand, which `data.query` does, a
        table's columns and size, which `data.describe` gives, bringing rows in
        from a connected service, which `data.import` does, or a document's
        text, which `knowledge.search` finds.


        Every result names the workspace it ran in. Say which workspace the
        answer is about. When the account has more than one workspace and none
        is selected, this tool refuses with `workspace_ambiguous` and lists the
        choices — offer them, never pick one.
      operationId: call_data_analyze
      parameters:
        - name: x-request-id
          in: header
          required: false
          description: >-
            Your own id for this request, echoed back and recorded on the audit
            trail. 1–128 characters from `A–Z a–z 0–9 . _ : -`, starting with a
            letter or digit; anything else is replaced by a generated id.
          schema:
            type: string
            maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                file_id:
                  description: >-
                    The id of the member's CSV or TSV file in this workspace's
                    storage, as an attachment or a file listing gives it. Alone,
                    the file is what is analysed; with `table_id`, it is read
                    beside the table (to join or look up against).
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                table_id:
                  description: >-
                    The id of the member's data table, as `data.describe` gives
                    it. Needed to change or fill the table.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                question:
                  type: string
                  minLength: 1
                  maxLength: 1000
                  description: >-
                    What the member wants from the rows, in their words and as
                    specific as they were: the measure, the grouping and the
                    period ('total revenue by month in 2026'), the change to
                    make ('remove duplicates by website'), or what to fill and
                    from where ('find each shop's website').
                change_table:
                  description: >-
                    true when the member asks to change the table itself
                    ('remove the duplicates', 'split the name column', 'add a
                    fit score'): the table changes in place as one version they
                    can undo. Leave it out for a question about the rows.
                  type: boolean
                fill_column:
                  description: >-
                    Only for a fill from outside the table: the column to fill,
                    as its header reads or a new column's name ('Website'),
                    which the fill adds itself. The fill asks the member's
                    connections or the web for each row's value and runs in the
                    background.
                  type: string
                  minLength: 1
                  maxLength: 120
                keep_as_table:
                  description: >-
                    Only when the member asks for a copy: the new table's name,
                    in their words or short and plain ('Dental shops, deduped').
                    Every row of the result is written into a new data table in
                    this project and the first table is left as it is.
                  type: string
                  minLength: 1
                  maxLength: 120
                workspace:
                  description: >-
                    Which workspace to run in — its slug. Omit to use your
                    default. With more than one reachable workspace and no
                    default, the call is refused and the choices are listed.
                  type: string
                  minLength: 1
              required:
                - question
              additionalProperties: false
      responses:
        '200':
          description: >-
            The call was admitted and dispatched. `ok` says whether the tool
            succeeded — a refusal the tool itself produced is still a 200,
            exactly as it is a successful JSON-RPC result over MCP.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            RateLimit-Limit:
              description: Requests this key may make in a rolling minute.
              schema:
                type: integer
                minimum: 1
            RateLimit-Remaining:
              description: Requests left in the current rolling minute.
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Whole seconds until the window frees more requests.
              schema:
                type: integer
                minimum: 1
            x-goosy-tool-error:
              description: >-
                `true` when a boundary step refused the call — workspace
                resolution failed or could not be read. A tool that ran and
                returned its own typed `ok: false` reports `false` here.
                **Branch on `ok` in the body for the outcome; this header is the
                transport-level hint.**
              schema:
                type: string
                enum:
                  - 'true'
                  - 'false'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    description: The tool ran and answered.
                    properties:
                      ok:
                        type: boolean
                        const: true
                      status:
                        anyOf:
                          - type: string
                            const: done
                          - type: string
                            const: running
                          - type: string
                            const: paused
                      job_run_id:
                        type: string
                      file_name:
                        type: string
                      summary:
                        type: string
                      kept_table:
                        anyOf:
                          - type: object
                            properties:
                              table_id:
                                type: string
                              name:
                                type: string
                              rows:
                                type: number
                              board_id:
                                type:
                                  - string
                                  - 'null'
                              board_item_id:
                                type:
                                  - string
                                  - 'null'
                            required:
                              - table_id
                              - name
                              - rows
                              - board_id
                              - board_item_id
                            additionalProperties: false
                          - type: 'null'
                      changed:
                        anyOf:
                          - type: object
                            properties:
                              rows_changed:
                                type: number
                              rows_added:
                                type: number
                              rows_removed:
                                type: number
                              columns_added:
                                type: number
                              columns_removed:
                                type: number
                              columns_renamed:
                                type: number
                            required:
                              - rows_changed
                              - rows_added
                              - rows_removed
                              - columns_added
                              - columns_removed
                              - columns_renamed
                            additionalProperties: false
                          - type: 'null'
                      table:
                        type: object
                        properties:
                          columns:
                            type: array
                            items:
                              type: object
                              properties:
                                key:
                                  type: string
                                header:
                                  type: string
                                numeric:
                                  type: boolean
                              required:
                                - key
                                - header
                                - numeric
                              additionalProperties: false
                          rows:
                            type: array
                            items:
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties:
                                type:
                                  - string
                                  - number
                                  - boolean
                                  - 'null'
                        required:
                          - columns
                          - rows
                        additionalProperties: false
                      chart:
                        anyOf:
                          - type: object
                            properties:
                              title:
                                type: string
                              x_key:
                                type: string
                              points:
                                type: array
                                items:
                                  type: object
                                  propertyNames:
                                    type: string
                                  additionalProperties:
                                    type:
                                      - string
                                      - number
                                      - 'null'
                              series:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    key:
                                      type: string
                                    label:
                                      type: string
                                    slot:
                                      type: number
                                  required:
                                    - key
                                    - label
                                    - slot
                                  additionalProperties: false
                              display:
                                type: object
                                properties:
                                  chart_kind:
                                    type: string
                                    enum:
                                      - bar
                                      - line
                                      - area
                                      - waterfall
                                      - pie
                                      - donut
                                      - funnel
                                      - radar
                                  stacked:
                                    type: boolean
                                  value_format:
                                    type: string
                                    enum:
                                      - number
                                      - currency
                                      - percent
                                required:
                                  - chart_kind
                                  - stacked
                                  - value_format
                                additionalProperties: false
                              spec:
                                type: object
                                properties:
                                  chartType:
                                    type: string
                                    enum:
                                      - bar
                                      - line
                                      - area
                                      - waterfall
                                      - pie
                                      - donut
                                      - funnel
                                      - radar
                                      - scatter
                                      - heatmap
                                      - sankey
                                      - gauge
                                      - treemap
                                      - sunburst
                                      - boxplot
                                      - candlestick
                                  title:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  subtitle:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  categories:
                                    minItems: 1
                                    maxItems: 1000
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 200
                                  series:
                                    minItems: 1
                                    maxItems: 12
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        name:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                        values:
                                          minItems: 1
                                          type: array
                                          items:
                                            type:
                                              - number
                                              - 'null'
                                        points:
                                          minItems: 1
                                          maxItems: 5000
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              x:
                                                type: number
                                              'y':
                                                type: number
                                              size:
                                                type: number
                                                minimum: 0
                                            required:
                                              - x
                                              - 'y'
                                            additionalProperties: false
                                        boxes:
                                          description: >-
                                            Per category: min, lower quartile,
                                            median, upper quartile, max.
                                          minItems: 1
                                          type: array
                                          items:
                                            type: array
                                            items:
                                              - type: number
                                              - type: number
                                              - type: number
                                              - type: number
                                              - type: number
                                            additionalItems: false
                                            minItems: 5
                                            maxItems: 5
                                        ohlc:
                                          description: 'Per category: open, close, low, high.'
                                          minItems: 1
                                          type: array
                                          items:
                                            type: array
                                            items:
                                              - type: number
                                              - type: number
                                              - type: number
                                              - type: number
                                            additionalItems: false
                                            minItems: 4
                                            maxItems: 4
                                      required:
                                        - name
                                      additionalProperties: false
                                  yCategories:
                                    minItems: 1
                                    maxItems: 1000
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 200
                                  cells:
                                    minItems: 1
                                    maxItems: 5000
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        x:
                                          type: string
                                        'y':
                                          type: string
                                        value:
                                          type: number
                                      required:
                                        - x
                                        - 'y'
                                        - value
                                      additionalProperties: false
                                  links:
                                    minItems: 1
                                    maxItems: 5000
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        source:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                        target:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                        value:
                                          type: number
                                          exclusiveMinimum: 0
                                      required:
                                        - source
                                        - target
                                        - value
                                      additionalProperties: false
                                  nodes:
                                    minItems: 1
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        name:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                        value:
                                          type: number
                                          minimum: 0
                                        children:
                                          minItems: 1
                                          type: array
                                          items: {}
                                      required:
                                        - name
                                      additionalProperties: false
                                  value:
                                    type: number
                                  min:
                                    type: number
                                  max:
                                    type: number
                                  totalLabel:
                                    description: >-
                                      Waterfall only: adds a closing bar with
                                      this label showing the running total.
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  width:
                                    type: number
                                    exclusiveMinimum: 0
                                    maximum: 4000
                                  height:
                                    type: number
                                    exclusiveMinimum: 0
                                    maximum: 4000
                                  style:
                                    type: object
                                    properties:
                                      palette:
                                        description: >-
                                          Series colours in order; the theme's
                                          ramp when absent.
                                        minItems: 1
                                        maxItems: 12
                                        type: array
                                        items:
                                          type: string
                                          pattern: ^#[0-9A-Fa-f]{6}$
                                      positiveColour:
                                        type: string
                                        pattern: ^#[0-9A-Fa-f]{6}$
                                      negativeColour:
                                        type: string
                                        pattern: ^#[0-9A-Fa-f]{6}$
                                      stacked:
                                        type: boolean
                                      smooth:
                                        type: boolean
                                      horizontal:
                                        type: boolean
                                      showLegend:
                                        type: boolean
                                      showLabels:
                                        type: boolean
                                      valueFormat:
                                        type: string
                                        enum:
                                          - number
                                          - compact
                                          - currency
                                          - percent
                                      currency:
                                        type: string
                                        pattern: ^[A-Z]{3}$
                                    additionalProperties: false
                                required:
                                  - chartType
                                additionalProperties: false
                            required:
                              - title
                              - x_key
                              - points
                              - series
                              - display
                              - spec
                            additionalProperties: false
                          - type: 'null'
                      fill:
                        type: object
                        properties:
                          column:
                            type: string
                          rows:
                            type: number
                          estimate_cents:
                            type: number
                        required:
                          - column
                          - rows
                          - estimate_cents
                        additionalProperties: false
                      instruction:
                        type: string
                      workspace:
                        type: string
                        description: The slug of the workspace this call ran in.
                      working_in:
                        type: object
                        properties:
                          label:
                            type: string
                            description: 'The chip words — e.g. "working in: Acme Main".'
                          note:
                            type: string
                            description: >-
                              Why this workspace — e.g. "your default", "this
                              call only".
                          workspace:
                            type: string
                            description: The resolved workspace's slug.
                          source:
                            type: string
                            enum:
                              - call-override
                              - key-pin
                              - stored-default
                              - sole-reachable
                            description: >-
                              Why this workspace was chosen: the call named it
                              (`call-override`), the key is pinned to it
                              (`key-pin`), it is your default
                              (`stored-default`), or it is the only one the key
                              reaches (`sole-reachable`).
                        required:
                          - label
                          - note
                          - workspace
                          - source
                        description: >-
                          Which workspace this call ran in, and how that was
                          decided. Present on every workspace-scoped result.
                        additionalProperties: false
                    required:
                      - ok
                      - file_name
                      - job_run_id
                      - status
                      - working_in
                      - workspace
                  - $ref: '#/components/schemas/ToolRefusal'
        '400':
          description: >-
            The request could not be used: the body is present but not a JSON
            object (`tenant_api.malformed_body`); it is a top-level array
            carrying more messages than this endpoint accepts
            (`tenant_mcp.batch_too_large`); or the `Idempotency-Key` header is
            malformed (`tenant_api.idempotency_key_invalid`), disagrees with the
            body's `idempotency_key` (`tenant_api.idempotency_key_conflict`), or
            was sent to an action that cannot replay a retry
            (`tenant_api.idempotency_unsupported`). Nothing ran.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            Deprecation:
              description: >-
                RFC 9745: this refusal's nested `error` object is deprecated,
                since this instant (`@<unix seconds>`).
              schema:
                type: string
            Sunset:
              description: >-
                RFC 8594: the nested `error` object may be removed after this
                date (2026-12-31).
              schema:
                type: string
            Link:
              description: The page that says what to read instead (`rel="deprecation"`).
              schema:
                type: string
            RateLimit-Limit:
              description: Requests this key may make in a rolling minute.
              schema:
                type: integer
                minimum: 1
            RateLimit-Remaining:
              description: Requests left in the current rolling minute.
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Whole seconds until the window frees more requests.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            No bearer credential, or one that did not resolve. Deliberately ONE
            undifferentiated answer for absent / unknown / revoked / expired, so
            the endpoint is never an oracle over the key space.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            Deprecation:
              description: >-
                RFC 9745: this refusal's nested `error` object is deprecated,
                since this instant (`@<unix seconds>`).
              schema:
                type: string
            Sunset:
              description: >-
                RFC 8594: the nested `error` object may be removed after this
                date (2026-12-31).
              schema:
                type: string
            Link:
              description: The page that says what to read instead (`rel="deprecation"`).
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            The credential is good but the surface is not open to it — the
            platform or account API switch is off, or the holder lacks the
            `api.access` capability. The `code` says which.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            Deprecation:
              description: >-
                RFC 9745: this refusal's nested `error` object is deprecated,
                since this instant (`@<unix seconds>`).
              schema:
                type: string
            Sunset:
              description: >-
                RFC 8594: the nested `error` object may be removed after this
                date (2026-12-31).
              schema:
                type: string
            Link:
              description: The page that says what to read instead (`rel="deprecation"`).
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such tool. The body names no tool and is identical for every
            unrecognised name.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            Deprecation:
              description: >-
                RFC 9745: this refusal's nested `error` object is deprecated,
                since this instant (`@<unix seconds>`).
              schema:
                type: string
            Sunset:
              description: >-
                RFC 8594: the nested `error` object may be removed after this
                date (2026-12-31).
              schema:
                type: string
            Link:
              description: The page that says what to read instead (`rel="deprecation"`).
              schema:
                type: string
            RateLimit-Limit:
              description: Requests this key may make in a rolling minute.
              schema:
                type: integer
                minimum: 1
            RateLimit-Remaining:
              description: Requests left in the current rolling minute.
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Whole seconds until the window frees more requests.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Over this key's per-minute cap. Carries `Retry-After` and
            `error.retry_after_seconds`.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            Deprecation:
              description: >-
                RFC 9745: this refusal's nested `error` object is deprecated,
                since this instant (`@<unix seconds>`).
              schema:
                type: string
            Sunset:
              description: >-
                RFC 8594: the nested `error` object may be removed after this
                date (2026-12-31).
              schema:
                type: string
            Link:
              description: The page that says what to read instead (`rel="deprecation"`).
              schema:
                type: string
            RateLimit-Limit:
              description: Requests this key may make in a rolling minute.
              schema:
                type: integer
                minimum: 1
            RateLimit-Remaining:
              description: Requests left in the current rolling minute.
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Whole seconds until the window frees more requests.
              schema:
                type: integer
                minimum: 1
            Retry-After:
              description: Whole seconds to wait before retrying.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ToolRefusal:
      type: object
      properties:
        ok:
          type: boolean
          const: false
        code:
          type: string
          description: >-
            The typed reason — e.g. `workspace_ambiguous`, `invalid_arguments`,
            or the tool's own failure code.
        message:
          type: string
          description: A sentence a person can act on.
        workspaces:
          description: 'On a workspace refusal: the slugs this key may pass as `workspace`.'
          type: array
          items:
            type: string
        issues:
          description: 'On `invalid_arguments`: which fields failed, and why.'
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
            required:
              - path
              - message
            additionalProperties: false
        path:
          description: >-
            On an authoring refusal: where in your call's input it points, e.g.
            `steps.<key>.params.<field>`.
          type: string
        fix:
          description: 'On an authoring refusal: the change to your call that would pass.'
          type: string
        instruction:
          description: 'On an authoring refusal: what to do next with it.'
          type: string
      required:
        - ok
        - code
        - message
      description: A call that was admitted and dispatched, and did not succeed.
      additionalProperties: false
    Error:
      type: object
      properties:
        ok:
          type: boolean
          const: false
        code:
          type: string
          description: >-
            The typed refusal code — e.g. `tenant_mcp.rate_limited`,
            `tenant_api.unknown_tool`.
        message:
          type: string
          description: A sentence a person can act on.
        retry_after_seconds:
          description: 'On a 429: whole seconds to wait. Mirrors `Retry-After`.'
          type: number
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            retry_after_seconds:
              type: number
          required:
            - code
            - message
          description: >-
            Deprecated: the same values as the top-level fields, kept until
            2026-12-31. Read `code` and `message` at the top level.
          additionalProperties: false
      required:
        - ok
        - code
        - message
        - error
      description: >-
        A request the boundary refused before dispatching anything. The same
        shape the MCP endpoint answers its own refusals with, and the same
        top-level fields a dispatched call's refusal carries, so one client
        branch covers both.
      additionalProperties: false
  securitySchemes:
    tenantApiKey:
      type: http
      scheme: bearer
      description: >-
        An API key minted at Settings › API & MCP. Send it as `Authorization:
        Bearer <key>`. A key carries its holder's own permissions, resolved on
        every call — revoking a membership closes the key's reach immediately.
        Keep it in an environment variable (`GOOSY_API_KEY`), never in a
        committed file.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.