Get Spec Rating
get_spec_ratingGet an API specification's 0–100 rating, grade and per-facet check results to see what to fix first; omit the version ID to rate the newest version.
Instructions
Get the API rating of one version of a specification: a score from 0 to 100, a grade, and per facet the checks with their points and the endpoints or schemas that fail them. Checks that do not apply are not counted. Without versionId the newest version is rated. Use this to see what to fix first; for every single finding use lint_spec. Requires project context.
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": {
"specId": "<specId>"
},
"name": "get_spec_rating"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specId | Yes | Public ID (GUID) of the API specification | |
| versionId | No | Public ID (GUID) of the version to rate. Omit for the newest version. |