Skip to main content
Glama

Preview Rating Fix

preview_rating_fix
Read-only

Preview the changes that applying an API rating check fix would write to each endpoint, so you can review the fix before modifying your specification.

Instructions

Show what the fix of one API rating check would write, per endpoint. A check has a fix when get_spec_rating returns it with a fix field. 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>",
      "versionId": "<versionId>",
      "checkId": "<checkId>"
    },
    "name": "preview_rating_fix"
  }
}

Input Schema

NameRequiredDescriptionDefault
specIdYesPublic ID (GUID) of the API specification
checkIdYesId of the rating check, as get_spec_rating names it, e.g. 'error-format'
targetIdsNoPublic IDs of the endpoints (for 'casing' also schemas) to fix. Omit for all, which 'casing' does not allow.
versionIdYesPublic ID (GUID) of the version, must not be published

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile with readOnlyHint=true, and the description reinforces this by framing the tool as showing what 'would write' rather than writing. It adds genuine behavioral context beyond the annotations: the dependency on get_spec_rating's fix field, the per-endpoint scope, and the project-context requirement. It does not describe the shape of the previewed content, which is the main remaining gap.

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?

Three short sentences, front-loaded with what the tool does, then the precondition, then the environment requirement. No restatement of the title and no wasted wording.

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

Completeness4/5

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

For a four-parameter read-only preview with no output schema, the description covers purpose, precondition, and context requirement adequately. The chief omission is any indication of what the preview output looks like per endpoint, though the 'show what would be written' framing partially compensates.

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 description coverage is 100%, and the schema already explains targetIds omission semantics, the 'casing' exception, checkId naming from get_spec_rating, and the unpublished-version constraint. The description adds essentially no parameter-level detail beyond what the schema supplies, so the baseline of 3 applies.

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 names a specific verb+resource ('Show what the fix of one API rating check would write') and adds the per-endpoint granularity, making clear this is a read-only preview rather than the fix itself. It also anchors the tool to its discovery sibling, get_spec_rating, so an agent can tell which one surfaces checks and which one previews fixes.

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

Usage Guidelines4/5

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

It states the precondition for use explicitly ('A check has a fix when get_spec_rating returns it with a fix field') and flags that project context is required, which is real routing guidance. It stops short of naming any apply/execute counterpart or saying explicitly that this must be run before applying, so the exclusion side is only implied.

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