API

/web_api/mcp_call/create

/web_api/mcp_call/create ​

This page is built from the JSON Schema snapshot in the documentation repository. The snapshot is updated by a separate command from the main app catalog and is not rewritten when the site is built.

Request ​

main-app://schemas/api_mcp_testing/mcp_call/create.request.json

REQUEST /web_api/mcp_call/create

NameTypeRequiredConstraint
mcp_snapshot_tool_idintegerYesminimum 1
mcp_call_titlestringYesmaxLength 500
field_valuesarray of objectYes-

Other top-level fields are not allowed.

field_values[] ​

NameTypeRequiredConstraint
mcp_snapshot_tool_field_idintegerYesminimum 1
value_positionintegerNominimum 0
value_kindenumYes"STRING", "NUMBER", "BOOLEAN", "NULL", "EMPTY_ARRAY", "EMPTY_OBJECT"
value_stringstringNo-
value_number_textstringNo-
value_booleanenumNo0, 1

Response ​

main-app://schemas/api_mcp_testing/mcp_call/create.response.json

RESPONSE /web_api/mcp_call/create

NameTypeRequiredConstraint
api_codeintegerYesconst 200
api_resultobjectYesother fields allowed
emptybooleanNo-

Other top-level fields are not allowed.

api_result ​

NameTypeRequiredConstraint
mcp_call_idintegerNominimum 0
mcp_server_idintegerNominimum 0
mcp_server_snapshot_idintegerNominimum 0
mcp_snapshot_tool_idintegerNominimum 0
team_idintegerNominimum 0
project_idintegerNominimum 0
mcp_call_titlestringNomaxLength 500
tool_namestringNomaxLength 512
created_by_user_idintegerNominimum 0
created_atstringNo-
updated_atstringNo-

Source schema ​

The files below are copied from the snapshot unchanged. A $ref fragment is a separate block. The schemas are not merged.

Request: main-app://schemas/api_mcp_testing/mcp_call/create.request.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/api_mcp_testing/mcp_call/create.request.json",
  "title": "REQUEST /web_api/mcp_call/create",
  "$comment": "field_values items use value_kind STRING, NUMBER, BOOLEAN, NULL, EMPTY_ARRAY, EMPTY_OBJECT.",
  "type": "object",
  "additionalProperties": false,
  "required": ["mcp_snapshot_tool_id", "mcp_call_title", "field_values"],
  "properties": {
    "mcp_snapshot_tool_id": { "type": "integer", "minimum": 1 },
    "mcp_call_title": { "type": "string", "maxLength": 500 },
    "field_values": {
      "type": "array",
      "items": { "$ref": "main-app://schemas/api_mcp_testing/mcp_call/field-value.json" }
    }
  }
}
Fragment: main-app://schemas/api_mcp_testing/mcp_call/field-value.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/api_mcp_testing/mcp_call/field-value.json",
  "title": "One mcp_call field value",
  "type": "object",
  "additionalProperties": false,
  "required": ["mcp_snapshot_tool_field_id", "value_kind"],
  "properties": {
    "mcp_snapshot_tool_field_id": { "type": "integer", "minimum": 1 },
    "value_position": { "type": "integer", "minimum": 0 },
    "value_kind": {
      "type": "string",
      "enum": ["STRING", "NUMBER", "BOOLEAN", "NULL", "EMPTY_ARRAY", "EMPTY_OBJECT"]
    },
    "value_string": { "type": "string" },
    "value_number_text": { "type": "string" },
    "value_boolean": { "type": "integer", "enum": [0, 1] }
  }
}
Response: main-app://schemas/api_mcp_testing/mcp_call/create.response.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/api_mcp_testing/mcp_call/create.response.json",
  "title": "RESPONSE /web_api/mcp_call/create",
  "$comment": "Generated from the DB model structure_scheme. Edit the model, then run node fill-from-structure-scheme.mjs.",
  "allOf": [
    {
      "$ref": "main-app://schemas/_shared/envelope-success.json"
    },
    {
      "type": "object",
      "properties": {
        "api_result": {
          "$ref": "main-app://schemas/api_mcp_testing/mcp_call/row.json"
        }
      }
    }
  ]
}
Fragment: main-app://schemas/_shared/envelope-success.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/_shared/envelope-success.json",
  "title": "Canonical success envelope",
  "type": "object",
  "required": ["api_code", "api_result"],
  "properties": {
    "api_code": { "const": 200 },
    "api_result": true,
    "empty": { "type": "boolean" }
  },
  "additionalProperties": false
}
Fragment: main-app://schemas/api_mcp_testing/mcp_call/row.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/api_mcp_testing/mcp_call/row.json",
  "title": "Row mcp_call",
  "$comment": "Generated from the DB model structure_scheme. Edit the model, then run node fill-from-structure-scheme.mjs.",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "mcp_call_id": {
      "type": "integer",
      "minimum": 0
    },
    "mcp_server_id": {
      "type": "integer",
      "minimum": 0
    },
    "mcp_server_snapshot_id": {
      "type": "integer",
      "minimum": 0
    },
    "mcp_snapshot_tool_id": {
      "type": "integer",
      "minimum": 0
    },
    "team_id": {
      "type": "integer",
      "minimum": 0
    },
    "project_id": {
      "type": "integer",
      "minimum": 0
    },
    "mcp_call_title": {
      "type": "string",
      "maxLength": 500
    },
    "tool_name": {
      "type": "string",
      "maxLength": 512
    },
    "created_by_user_id": {
      "type": "integer",
      "minimum": 0
    },
    "created_at": {
      "type": "string",
      "description": "timestamp Y-m-d H:i:s"
    },
    "updated_at": {
      "type": "string",
      "description": "timestamp Y-m-d H:i:s"
    }
  }
}

Version 1.0.0 · Last updated 2026-10-07

Did this page help?