Query tool list

Lists the current workspace and system tools that can be read by the current identity. Lists do not return large input and output schemas by default. Explicitly request the full view when needed.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/tools

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare a personal access token and target workspace ID that can access the target workspace.

Request parameters

Shell
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/tools?kind=http_api&limit=20&offset=0" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Path parameters

Parameter

Type

Required

Description

workspace_id

string

Yes

Current workspace ID.

Query parameters

Parameter

Type

Required

Description

query

string

No

Filter by tool properties.

status

string

No

Filter by tool properties.

kind

string

No

Filter by tool properties.

category

string

No

Filter by tool properties.

phase

string

No

Filter by tool properties.

side_effect_class

string

No

Filter by tool properties.

runtime

string

No

Filter by runtime visibility, binding type, or directory.

binding_type

string

No

Filter by runtime visibility, binding type, or directory.

catalog

string

No

Filter by runtime visibility, binding type, or directory.

tags

string

No

Filter by tag. May be provided repeatedly.

include_schema

boolean

No

When it is true, the list items include input_schema and output_schema.

view

string

No

full or detail, the list item contains Schema.

limit

integer

No

Returns the quantity and starting offset. If not provided, the default is 50 bar, offset 0. limit maximum 200.

offset

integer

No

Returns the quantity and starting offset. If not provided, the default is 50 bar, offset 0. limit maximum 200.

Successful response

JSON
{
  "code": 0,
  "data": {
    "items": [
      {
        "id": "tool_01",
        "workspace_id": "ws_01",
        "name": "查询工具",
        "display_name": "查询工具",
        "status": "active",
        "kind": "http_api",
        "side_effect_class": "read",
        "version": 1,
        "bindable": true,
        "supported_runtimes": [],
        "source_ref": {},
        "sync": {},
        "created_at": "2026-01-02T15:04:05Z",
        "updated_at": "2026-01-02T15:04:05Z"
      }
    ],
    "total": 1,
    "limit": 20,
    "offset": 0
  }
}

Field

Type

Description

code

integer

0 on success.

data

object

The result of this request.

data.items

array

Result list.

data.items[].id

string

Tool ID. Can be omitted if empty or not set.

data.items[].workspace_id

string

The identity of the workspace to which it belongs. Can be omitted if empty or not set.

data.items[].name

string

Name. Can be omitted if empty or not set.

data.items[].description

string

Description. Can be omitted if empty or not set.

data.items[].display_name

string

Display name. Can be omitted if empty or not set.

data.items[].display_description

string

Show instructions. Can be omitted if empty or not set.

data.items[].status

string

status. Preferable draft, active, disabled, archived. Can be omitted if empty or not set.

data.items[].kind

string

Tool type. Preferable system, mcp, http_api, operator, market, code. Can be omitted if empty or not set.

data.items[].category

string

classification. Can be omitted if empty or not set.

data.items[].icon_ref

string

Icon reference. Can be omitted if empty or not set.

data.items[].tags

array

label. Can be omitted if empty or not set.

data.items[].phase

string

use stage. Can be omitted if empty or not set.

data.items[].market_metadata

object

Market metadata. Can be omitted if empty or not set.

data.items[].source_ref

object

Source information. Can be omitted if empty or not set. Returns an empty object if there are no subfields.

data.items[].source_ref.type

string

Source type. Can be omitted if empty or not set.

data.items[].source_ref.id

string

Source object ID, the specific type is specified by source_ref.type. Can be omitted if empty or not set.

data.items[].source_ref.uri

string

Source address. Can be omitted if empty or not set.

data.items[].source_ref.version

string

Version number. Can be omitted if empty or not set.

data.items[].source_ref.config

object

Resource allocation. Can be omitted if empty or not set.

data.items[].input_schema

object

Tool input JSON Schema. Can be omitted if empty or not set.

data.items[].output_schema

object

The tool outputs JSON Schema. Can be omitted if empty or not set.

data.items[].side_effect_class

string

Classification of side effects. Preferable read, write, external_effect. Can be omitted if empty or not set.

data.items[].credential_ref

string

Credentials reference. Can be omitted if empty or not set.

data.items[].approval_policy_ref

string

Approval policy reference. Can be omitted if empty or not set.

data.items[].redaction_policy_ref

string

Desensitization strategies cited. Can be omitted if empty or not set.

data.items[].sync

object

Sync information. Can be omitted if empty or not set. Returns an empty object if there are no subfields.

data.items[].sync.status

string

status. Can be omitted if empty or not set.

data.items[].sync.last_sync_at

string or null

Last sync time. Can be omitted if empty or not set.

data.items[].sync.last_sync_error

string

Recent sync errors. Can be omitted if empty or not set.

data.items[].version

integer

Version number. Can be omitted if empty or not set.

data.items[].labels

object

Extension tag. Can be omitted if empty or not set.

data.items[].annotations

object

Extended comments. Can be omitted if empty or not set.

data.items[].metadata

object

Extended metadata. Can be omitted if empty or not set.

data.items[].bindable

boolean

Whether it can be bound. Can be omitted if empty or not set.

data.items[].bindability_reason

string

Description of binding capabilities. Can be omitted if empty or not set.

data.items[].supported_runtimes

array

Supported runtimes. Can be omitted if empty or not set.

data.items[].created_by

string

Creator ID. Can be omitted if empty or not set.

data.items[].updated_by

string

Last updated by identifier. Can be omitted if empty or not set.

data.items[].created_at

string

Creation time. Use RFC 3339 format. Can be omitted if empty or not set.

data.items[].updated_at

string

Last updated time. Use RFC 3339 format. Can be omitted if empty or not set.

data.total

integer

The total number of matching records.

data.limit

integer

The actual return quantity limit this time.

data.offset

integer

Starting offset.

Error response

JSON
{
  "code": 2,
  "message": "<错误信息>"
}

Common HTTP errors

HTTP status code

error code

Description

400

2(INVALID_ARGUMENT)

Common reasons: The filter or paging parameters are invalid. Recommended Action: Check the query parameters.

401

6(UNAUTHENTICATED)

Common Cause: Valid identity credentials are missing. Recommended Action: Check the API Key.

403

5(PERMISSION_DENIED)

Common reasons: The current identity does not have permission to read the tool directory. Recommended Action: Check the workspace authorization.

503

15(UNAVAILABLE)

Common reasons: Tool resource services or authorization dependencies are temporarily unavailable. Recommended Action: Try again later.

Last updated on