Skip to main content
Glama

Get Spec Rating

get_spec_rating
Read-only

Get 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

NameRequiredDescriptionDefault
specIdYesPublic ID (GUID) of the API specification
versionIdNoPublic ID (GUID) of the version to rate. Omit for the newest version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=true; the description adds real behavioral context beyond that, namely that non-applicable checks are excluded from scoring and that omitting versionId silently defaults to the newest version. It stops short of describing pagination, error behavior, or whether the rating is cached/computed on demand, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded: the return shape comes first, then the default behavior, then the sibling routing, then the prerequisite. Every sentence carries distinct information with no restatement of the title or name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must explain the return value, and it does so concretely (score, grade, per-facet checks with points and failing targets). Combined with the default-version rule and the project-context prerequisite, an agent has everything needed to call and interpret it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both specId and versionId are already fully documented in the schema, and the description's 'Without versionId the newest version is rated' merely restates the schema default. Baseline 3 is appropriate since the description adds no syntax, format, or edge-case detail beyond the structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Get the API rating of one version of a specification') and then enumerates the return shape: a 0-100 score, a grade, and per-facet checks with points and failing endpoints/schemas. It also implicitly separates this from lint_spec by framing the result as an aggregate rating rather than a finding list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit use case ('Use this to see what to fix first') and an explicit alternative with the condition that selects it ('for every single finding use lint_spec'). It also states a prerequisite ('Requires project context'), leaving little to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools