Tags
Ressourcen-Tags und Tag-Zuweisungen verwalten. Die Beispiele verwenden den A2A-Code-Modus. MCP stellt denselben Code-Modus über sein Toolexecute bereit.
Funktionen
tags.add
tags.add(account_id: str, tag_name: str, color_hex?: str, description?: str | null) -> Tag
tags.add.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | tag.manage | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | tag.manage |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | POST /v1/public/accounts/{account_id}/tags |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
tag_name | str | ja |
color_hex | str | nein |
description | str | null | nein |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
color_hex | str | ja |
id | str | ja |
name | str | ja |
created_at | str | null | nein |
description | str | null | nein |
updated_at | str | null | nein |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
{
"request_id": "example",
"session_id": "session_123",
"code": "tags.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_name=\"<string>\", color_hex=\"<string>\", description=\"<string>\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": "<string>"
},
"responses": [
{
"index": 0,
"function": "tags.add",
"status": "completed",
"result": "<string>"
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "tags.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_name=\"<string>\", color_hex=\"<string>\", description=\"<string>\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": \"<string>\"\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"tags.add\",\n \"status\": \"completed\",\n \"result\": \"<string>\"\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
tags.delete
tags.delete(account_id: str, tag_id: str) -> {}
tags.delete.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | tag.manage | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | tag.manage |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | DELETE /v1/public/accounts/{account_id}/tags/{tag_id} |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
tag_id | str | ja |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
result | {} | ja |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
{
"request_id": "example",
"session_id": "session_123",
"code": "tags.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": {}
},
"responses": [
{
"index": 0,
"function": "tags.delete",
"status": "completed",
"result": {}
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "tags.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": {}\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"tags.delete\",\n \"status\": \"completed\",\n \"result\": {}\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
tags.domains.assign
tags.domains.assign(account_id: str, tag_id: str, domain_ids: [str]) -> Tag
tags.domains.assign.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | tag.manage | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | tag.manage |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | POST /v1/public/accounts/{account_id}/tags/{tag_id}/domains/assign |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
tag_id | str | ja |
domain_ids | [str] | ja |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
domain_ids | [str] | ja |
tag_id | str | ja |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
{
"request_id": "example",
"session_id": "session_123",
"code": "tags.domains.assign(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain_ids=\"example.com\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": {
"domain_ids": [
"<string>"
],
"tag_id": "<string>"
}
},
"responses": [
{
"index": 0,
"function": "tags.domains.assign",
"status": "completed",
"result": {
"domain_ids": [
"<string>"
],
"tag_id": "<string>"
}
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "tags.domains.assign(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain_ids=\"example.com\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": {\n \"domain_ids\": [\n \"<string>\"\n ],\n \"tag_id\": \"<string>\"\n }\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"tags.domains.assign\",\n \"status\": \"completed\",\n \"result\": {\n \"domain_ids\": [\n \"<string>\"\n ],\n \"tag_id\": \"<string>\"\n }\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
tags.domains.unassign
tags.domains.unassign(account_id: str, tag_id: str, domain_ids: [str]) -> {}
tags.domains.unassign.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | tag.manage | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | tag.manage |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | POST /v1/public/accounts/{account_id}/tags/{tag_id}/domains/unassign |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
tag_id | str | ja |
domain_ids | [str] | ja |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
result | {} | ja |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
{
"request_id": "example",
"session_id": "session_123",
"code": "tags.domains.unassign(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain_ids=\"example.com\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": {}
},
"responses": [
{
"index": 0,
"function": "tags.domains.unassign",
"status": "completed",
"result": {}
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "tags.domains.unassign(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain_ids=\"example.com\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": {}\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"tags.domains.unassign\",\n \"status\": \"completed\",\n \"result\": {}\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
tags.list
tags.list(account_id: str, page?: int, page_size?: int) -> Page[Tag]
tags.list.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | tag.view | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | tag.view |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | GET /v1/public/accounts/{account_id}/tags |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
page | int | nein |
page_size | int | nein |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
items | [{"color_hex": str, "id": str, "name": str, "created_at"?: str | null, "description"?: str | null, "updated_at"?: str | null}] | ja |
page | int | ja |
page_size | int | ja |
total | int | ja |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
{
"request_id": "example",
"session_id": "session_123",
"code": "tags.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": "<string>"
},
"responses": [
{
"index": 0,
"function": "tags.list",
"status": "completed",
"result": "<string>"
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "tags.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": \"<string>\"\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"tags.list\",\n \"status\": \"completed\",\n \"result\": \"<string>\"\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
tags.update
tags.update(account_id: str, tag_id: str, color_hex?: str | null, description?: str | null, tag_name?: str | null) -> Tag
tags.update.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | tag.manage | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | tag.manage |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | PATCH /v1/public/accounts/{account_id}/tags/{tag_id} |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
tag_id | str | ja |
color_hex | str | null | nein |
description | str | null | nein |
tag_name | str | null | nein |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
color_hex | str | ja |
id | str | ja |
name | str | ja |
created_at | str | null | nein |
description | str | null | nein |
updated_at | str | null | nein |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
{
"request_id": "example",
"session_id": "session_123",
"code": "tags.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", color_hex=\"<string>\", description=\"<string>\", tag_name=\"<string>\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": "<string>"
},
"responses": [
{
"index": 0,
"function": "tags.update",
"status": "completed",
"result": "<string>"
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "tags.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", color_hex=\"<string>\", description=\"<string>\", tag_name=\"<string>\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": \"<string>\"\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"tags.update\",\n \"status\": \"completed\",\n \"result\": \"<string>\"\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}