Skip to main content
Glama

FactGrid (Renamed to FactReason)

Package upgrade advisory

factreason_package_upgrade_advisory
Read-onlyIdempotent

Compare two exact published npm or PyPI versions and return publisher-declared registry metadata changes, including yanks, exports, module format, runtime floors, peers, and licences, with before/after evidence. Set responseFormat="compact" for tokenizer-measured context savings; the backward-compatible default is "full". This is a read-only metered lookup; misses are never billed and every API key carries one-off trial credit. Use it for package metadata; use factreason_api_breaking_changes for a third-party HTTP API, and consult changelogs for behavioural changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesExact target version, e.g. "5.0.0"
fromYesExact currently installed version, e.g. "4.1.2"
nameYesExact package name, e.g. "chalk" or "urllib3"
registryYesRegistry containing both package versions
responseFormatNoUse compact to remove repeated prose and fields while retaining evidence; full preserves the legacy response contractfull

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
foundNo
scopeNo
billedNo
messageNo
toVersionNo
advisoriesNo
fromVersionNo
packageNameNo
tokenMetricsNo
advisoryCountNo
breakingCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / responseFormat
      Added value: +{
      +  "default": "full",
      +  "description": "Use compact to remove repeated prose and fields while retaining evidence; full preserves the legacy response contract",
      +  "enum": [
      +    "full",
      +    "compact"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / advisoryCount
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / tokenMetrics
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "compactTokens": {
      +      "type": "number"
      +    },
      +    "encoding": {
      +      "const": "o200k_base",
      +      "type": "string"
      +    },
      +    "fullTokens": {
      +      "type": "number"
      +    },
      +    "reductionPct": {
      +      "type": "number"
      +    },
      +    "savedTokens": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed9 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / from / description
      Previous value: -"Version currently installed, e.g. \"4.1.2\""New value: +"Exact currently installed version, e.g. \"4.1.2\""
    • addedInput schema / properties / from / minLength
      Added value: +1
    • changedInput schema / properties / name / description
      Previous value: -"Package name, e.g. \"chalk\", \"urllib3\""New value: +"Exact package name, e.g. \"chalk\" or \"urllib3\""
    • addedInput schema / properties / name / minLength
      Added value: +1
    • changedInput schema / properties / registry / description
      Previous value: -"Which registry the package is published on"New value: +"Registry containing both package versions"
    • changedInput schema / properties / to / description
      Previous value: -"Version you intend to upgrade to, e.g. \"5.0.0\""New value: +"Exact target version, e.g. \"5.0.0\""
    • addedInput schema / properties / to / minLength
      Added value: +1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "advisories": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "billed": {
      +      "type": "boolean"
      +    },
      +    "breakingCount": {
      +      "type": "number"
      +    },
      +    "found": {
      +      "type": "boolean"
      +    },
      +    "fromVersion": {
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "packageName": {
      +      "type": "string"
      +    },
      +    "scope": {
      +      "type": "string"
      +    },
      +    "toVersion": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, and the description adds meaningful behavioral context: this is a 'read-only metered lookup', 'misses are never billed', 'every API key carries one-off trial credit', and responseFormat changes affect context size while staying backward-compatible. No annotation contradiction exists.

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?

The description is compact and well-structured: it opens with the core purpose and evidence, then covers the format switch, billing/read-only semantics, then alternatives. Every sentence earns its place and there is no repetition or filler.

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?

Given the output schema exists, the description does not need to explain return-value structure. It fully covers the required context for a moderately complex comparison tool: scope, exact-match semantics, response formats, billing, authentication trial credit, and alternatives. The agent has enough to select and invoke this tool correctly.

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

Parameters4/5

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

The input schema provides full parameter descriptions, so the baseline is 3. The description adds value by clarifying that responseFormat='compact' yields tokenizer-measured context savings while the default is backward-compatible 'full', and by enumerating relevant metadata fields such as yanks, exports, module format, runtime floors, peers, and licences.

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 clearly states the tool compares two exact published npm or PyPI versions and returns publisher-declared registry metadata changes. It is explicit about the resource (package metadata), specific verbs ('compare', 'return'), and differentiates itself from factreason_api_breaking_changes.

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?

The description gives explicit when-to-use guidance: 'Use it for package metadata; use factreason_api_breaking_changes for a third-party HTTP API, and consult changelogs for behavioural changes.' It also clarifies metering, billing behavior, and response format trade-offs, enabling an agent to select this tool over siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.