paperclip_create_label
Create a namespaced label (e.g., 'source:agent') with an optional hex color. Solves missing taxonomy labels for issue management.
Instructions
Create a new label for the current company.
Args:
name: string — Label name, typically namespaced (example: "source:agent")
color: string (optional) — 6-digit hex color (example: "#6366f1")
Returns: Returns the created label object: id, name, color, createdAt.
Examples:
Use when: seeding a missing taxonomy label (e.g. source:agent, type:bug) during Label Bootstrap
Don't use when: the label already exists — use paperclip_list_labels to check before creating
Error Handling:
400: validation failure → check name is non-empty and color is valid hex if supplied
401: authentication failed → check PAPERCLIP_API_KEY
409: label name already exists → fetch existing ID from paperclip_list_labels
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "paperclip_create_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label name (e.g. 'source:agent', 'type:bug') | |
| color | No | 6-digit hex color string (e.g. '#6366f1') |