Create a new tool set
client.toolSets.create(ToolSetCreateParams { metadata, spec } body, RequestOptionsoptions?): ToolSet { metadata, spec, info }
POST/v1/tool_sets
Create a new tool set
import Cadenya from '@cadenya/cadenya';
const client = new Cadenya({
apiKey: process.env['CADENYA_API_KEY'], // This is the default and can be omitted
});
const toolSet = await client.toolSets.create({
metadata: { name: 'name' },
spec: {},
});
console.log(toolSet.metadata);{
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"adapter": {
"http": {
"baseUrl": "baseUrl",
"headers": {
"foo": "string"
}
},
"mcp": {
"excludeTools": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
},
"headers": {
"foo": "string"
},
"includeTools": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
},
"toolApprovals": {
"always": true,
"only": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
}
},
"url": "url"
}
},
"description": "description"
},
"info": {
"agentCount": 0,
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_USER",
"email": "email",
"name": "name"
}
},
"lastSync": "2019-12-27T18:11:19.117Z",
"toolCount": 0
}
}Returns Examples
{
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"adapter": {
"http": {
"baseUrl": "baseUrl",
"headers": {
"foo": "string"
}
},
"mcp": {
"excludeTools": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
},
"headers": {
"foo": "string"
},
"includeTools": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
},
"toolApprovals": {
"always": true,
"only": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
}
},
"url": "url"
}
},
"description": "description"
},
"info": {
"agentCount": 0,
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_USER",
"email": "email",
"name": "name"
}
},
"lastSync": "2019-12-27T18:11:19.117Z",
"toolCount": 0
}
}