Text classification
get_classifyUse when an agent needs text sorted into its own categories. Returns a score per label that sums to 1 and the best label, for up to 4,000 characters and 2 to 20 labels. Labels are names, never instructions. Cached 24 hours. Costs 0.005 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
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": {
"text": "<text>",
"labels": "<labels>"
},
"name": "get_classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | the text to classify, up to 4,000 characters | |
| labels | Yes | 2 to 20 labels, comma separated, e.g. billing,bug,feature |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_classify payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_classify | |
| tool | Yes | the tool that produced this payload |