Search loads only when you use it. Browse all categories below.

MCP tool

Query assets

sosoapi_query_assets

Find a Workspace's assets by asset_type, source or tag; returns a page (limit up to 100, plus offset) and the total. Pass workspace_id explicitly.

Read as Markdown

Profiles and transports

Profiles: core, full · Transports: stdio, http

Choose core or full to control which tools your client sees; this does not change its permissions. Local file upload requires stdio and is unavailable over HTTP. Set SOSOAPI_OUTPUT_SCHEMAS=1 to include output schemas in discovery. Tools return structured results with or without that setting.

Permissions and side effects

Annotations help clients describe a tool. Each call still checks the user’s authentication, role, resource access and capability grants.

{
  "readOnlyHint": true,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false
}

Input fields

Required means required inside its parent object and selected branch. A required child does not make an optional parent required. Rules and field names below are copied from the contract.

Input fields
Field / branchType / requiredConstraints
$objectRequired in parent
  • additionalProperties: false
workspace_idstringOptional / item
  • format: "uuid"
asset_typestring | arrayOptional / item—
asset_typeanyOf 1stringOptional / item
  • enum: ["text","image","video","audio"]
asset_typeanyOf 2arrayOptional / item—
asset_type[]anyOf 2stringOptional / item
  • enum: ["text","image","video","audio"]
sourcestringOptional / item
  • maxLength: 64
tagstringOptional / item
  • maxLength: 64
limitintegerOptional / item
  • minimum: 1
  • maximum: 100
offsetintegerOptional / item

Rows to skip. Served up to 100000; beyond it 400 OFFSET_TOO_LARGE. Prefer filters to paging deep.

  • minimum: 0
  • maximum: 9007199254740991
include_versionbooleanOptional / item

Optional. true adds the resource version to the answer.

—
Complete JSON Schema
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "asset_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "text",
            "image",
            "video",
            "audio"
          ]
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "text",
              "image",
              "video",
              "audio"
            ]
          }
        }
      ]
    },
    "source": {
      "type": "string",
      "maxLength": 64
    },
    "tag": {
      "type": "string",
      "maxLength": 64
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "offset": {
      "description": "Rows to skip. Served up to 100000; beyond it 400 OFFSET_TOO_LARGE. Prefer filters to paging deep.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "include_version": {
      "description": "Optional. true adds the resource version to the answer.",
      "type": "boolean"
    }
  },
  "additionalProperties": false
}

Structured output

This schema describes structuredContent in a successful tool result. The MCP response also includes content and may set isError when a call fails. For publishing, read the post’s final result rather than treating an accepted request or text response as confirmation. The linked API operation explains permissions and retry rules.

Required means required inside its parent object and selected branch. A required child does not make an optional parent required. Rules and field names below are copied from the contract.

Structured output
Field / branchType / requiredConstraints
$objectRequired in parent
  • additionalProperties: false
assetsarrayRequired in parent—
assets[]objectOptional / item
  • additionalProperties: false
assets[].idinteger | stringRequired in parent—
assets[].idanyOf 1integerRequired in parent
  • minimum: -9007199254740991
  • maximum: 9007199254740991
assets[].idanyOf 2stringRequired in parent—
assets[].workspace_idstringRequired in parent
  • format: "uuid"
assets[].user_idstringRequired in parent
  • format: "uuid"
assets[].asset_typestringRequired in parent
  • enum: ["text","image","video","audio"]
assets[].asset_urlstring | nullRequired in parent—
assets[].asset_urlanyOf 1stringRequired in parent—
assets[].asset_urlanyOf 2nullRequired in parent—
assets[].preview_urlstring | nullOptional / item

Workspace-authorized temporary read URL. Refresh through Asset read/list after preview_expires_at; keep asset_url as persisted media identity.

—
assets[].preview_urlanyOf 1stringOptional / item
  • format: "uri"
assets[].preview_urlanyOf 2nullOptional / item—
assets[].preview_expires_atstring | nullOptional / item—
assets[].preview_expires_atanyOf 1stringOptional / item
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
assets[].preview_expires_atanyOf 2nullOptional / item—
assets[].titlestring | nullRequired in parent—
assets[].titleanyOf 1stringRequired in parent—
assets[].titleanyOf 2nullRequired in parent—
assets[].descriptionstring | nullRequired in parent—
assets[].descriptionanyOf 1stringRequired in parent—
assets[].descriptionanyOf 2nullRequired in parent—
assets[].tagsarray | nullRequired in parent—
assets[].tagsanyOf 1arrayRequired in parent—
assets[].tags[]anyOf 1stringOptional / item—
assets[].tagsanyOf 2nullRequired in parent—
assets[].metadataobject | nullRequired in parent—
assets[].metadataanyOf 1objectRequired in parent
  • additionalProperties: {}
assets[].metadata.*anyOf 1any JSON valueOptional / item—
assets[].metadataanyOf 2nullRequired in parent—
assets[].sourcestring | nullOptional / item—
assets[].sourceanyOf 1stringOptional / item—
assets[].sourceanyOf 2nullOptional / item—
assets[].source_metadataobject | nullOptional / item—
assets[].source_metadataanyOf 1objectOptional / item
  • additionalProperties: {}
assets[].source_metadata.*anyOf 1any JSON valueOptional / item—
assets[].source_metadataanyOf 2nullOptional / item—
assets[].created_atstringRequired in parent—
assets[].versionintegerOptional / item
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
totalintegerRequired in parent
  • minimum: 0
  • maximum: 9007199254740991
Complete JSON Schema
{
  "type": "object",
  "properties": {
    "assets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "string"
              }
            ]
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid"
          },
          "user_id": {
            "type": "string",
            "format": "uuid"
          },
          "asset_type": {
            "type": "string",
            "enum": [
              "text",
              "image",
              "video",
              "audio"
            ]
          },
          "asset_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "preview_url": {
            "description": "Workspace-authorized temporary read URL. Refresh through Asset read/list after preview_expires_at; keep asset_url as persisted media identity.",
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "preview_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_metadata": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id",
          "workspace_id",
          "user_id",
          "asset_type",
          "asset_url",
          "title",
          "description",
          "tags",
          "metadata",
          "created_at"
        ],
        "additionalProperties": false
      }
    },
    "total": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "assets",
    "total"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Example tool call

These examples use fictional values checked against the schemas. Replace the IDs with ones you are authorized to use, the media with ready assets and the dates with your confirmed publishing time. Check the account’s eligibility before submitting a write. This page sends no API requests.

{
  "name": "sosoapi_query_assets",
  "arguments": {}
}

structuredContent

{
  "assets": [],
  "total": 0
}
Install or connect MCP