Roark · Schema

AppendToolInvocationsResponse

Result of appending tool invocations to a call.

CompanyVoice AITestingEvaluationBenchmarking

Properties

Name Type Description
callId string The call the tool invocations were attached to
added integer Number of tool invocations newly written
skipped integer Number of tool invocations skipped because an identical one (same tool and timing) already existed on the call
metricCollectionJob object The metric collection job triggered to (re)score the requested metrics, or null when no metrics were requested (or when scoring failed, see metricCollectionError). Track its id to fetch results from G
metricCollectionError stringnull Present (non-null) only when `metrics` were requested but the collection job could not be started (e.g. insufficient credits, or an unknown metric id). The tool invocations were still attached — retry
View JSON Schema on GitHub

JSON Schema

roark-append-tool-invocations-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roark/json-schema/roark-append-tool-invocations-response-schema.json",
  "title": "AppendToolInvocationsResponse",
  "description": "Result of appending tool invocations to a call.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roark-call-api-openapi.yml#/components/schemas/AppendToolInvocationsResponse",
  "type": "object",
  "properties": {
    "callId": {
      "type": "string",
      "format": "uuid",
      "description": "The call the tool invocations were attached to"
    },
    "added": {
      "type": "integer",
      "description": "Number of tool invocations newly written"
    },
    "skipped": {
      "type": "integer",
      "description": "Number of tool invocations skipped because an identical one (same tool and timing) already existed on the call"
    },
    "metricCollectionJob": {
      "oneOf": [
        {
          "$ref": "#/$defs/MetricCollectionJobResponse"
        },
        {
          "type": "null"
        }
      ],
      "description": "The metric collection job triggered to (re)score the requested metrics, or null when no metrics were requested (or when scoring failed, see metricCollectionError). Track its id to fetch results from GET /v1/metric/collection-jobs/:jobId."
    },
    "metricCollectionError": {
      "type": [
        "string",
        "null"
      ],
      "description": "Present (non-null) only when `metrics` were requested but the collection job could not be started (e.g. insufficient credits, or an unknown metric id). The tool invocations were still attached — retry scoring via POST /v1/metric/collection-jobs, or re-send this request (attaching is idempotent). Null on success or when no metrics were requested."
    }
  },
  "required": [
    "callId",
    "added",
    "skipped",
    "metricCollectionJob",
    "metricCollectionError"
  ],
  "$defs": {
    "MetricCollectionJobResponse": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier of the metric collection job"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "PROCESSING",
            "COMPLETED",
            "FAILED",
            "CANCELED"
          ],
          "description": "Current status of the job"
        },
        "triggeredBy": {
          "type": "string",
          "enum": [
            "USER_MANUAL",
            "USER_API",
            "METRIC_POLICY",
            "SIMULATION"
          ],
          "description": "What triggered this job"
        },
        "totalItems": {
          "type": "integer",
          "description": "Total number of call-metric pairs to process"
        },
        "completedItems": {
          "type": "integer",
          "description": "Number of items that finished without failing: a value was written, or the metric did not apply to the conversation"
        },
        "failedItems": {
          "type": "integer",
          "description": "Number of items that could not be computed, for example because an artifact the metric reads (such as diarization) failed to generate"
        },
        "startedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "When the job started processing"
        },
        "completedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "When the job completed"
        },
        "errorMessage": {
          "type": [
            "string",
            "null"
          ],
          "description": "Why the job failed or, on a COMPLETED job with failedItems above 0, why those items failed"
        },
        "policyIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          },
          "description": "IDs of the metric policies that triggered this job"
        },
        "createdAt": {
          "type": "string",
          "description": "When the job was created"
        },
        "updatedAt": {
          "type": "string",
          "description": "When the job was last updated"
        }
      },
      "required": [
        "id",
        "status",
        "triggeredBy",
        "totalItems",
        "completedItems",
        "failedItems",
        "startedAt",
        "completedAt",
        "errorMessage",
        "policyIds",
        "createdAt",
        "updatedAt"
      ],
      "description": "A metric collection job that processes metrics for calls or chats"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/roark-append-tool-invocations-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?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. See our Privacy Policy and Terms.

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