test_validate
Validate a license key through the validation API with an API key and view the result; a new fingerprint consumes a machine slot until deactivated.
Instructions
Validate a license key the way the user's app does (the validation API, with an API key) and show the answer. A fingerprint the license hasn't seen takes a machine slot, like a first run, and keeps it for good: free it afterwards with deactivate_machine. Needs SUNLICENSE_API_KEY (an slk_ API key) in the MCP server's environment.
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": {
"licenseKey": "<licenseKey>",
"fingerprint": "<fingerprint>"
},
"name": "test_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| licenseKey | Yes | the full license key | |
| fingerprint | Yes | a machine id; a new one takes a machine slot, like the app's first run |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | the key that was checked, masked | |
| code | Yes | ||
| valid | Yes | ||
| detail | No | ||
| machines | Yes | machines in use and the policy's limit (null: unlimited) | |
| expiresAt | Yes |