Skip to main content
Glama
fairquery-agent-trust-mcp

fairquery-agent-trust-mcp

Official

Install, pin, or block a package version (free)

osv_install_verdict
Read-onlyIdempotent

Checks npm or PyPI packages before install and returns an install, pin, block, or not_assessed verdict with reasons, a pin version, and a fix command.

Instructions

WHAT: For up to 50 npm or PyPI packages, returns verdict install, pin, block or not_assessed, with why, a pin_to version and a fix command. Advisory IDs come from OSV.dev. License, deprecation and publish age come from the public registry JSON. malicious is true only when OSV publishes a MAL- record for the version that was checked. WHEN: Before npm install or pip install, when you want one label and, if a fix exists, the version to pin plus a command you can paste. WHEN NOT: A yes/no list of advisory IDs for exact versions you already pinned (osv_query_packages) or one advisory body (osv_get_vulnerability). A whole manifest, lockfile or SBOM (osv_audit_dependencies, paid). Not a guarantee, and not a substitute for reviewing the advisory. COST: Free. No APIFY_TOKEN. Nothing is sent to Fairquery or Apify. RETURNS: One "install_verdict" row per package, in input order. verdict is install, pin, block or not_assessed. not_assessed is never install. why lists the plain reasons. pin_to and fix_command are set for pin (npm i name@version or pip install name==version). advisories holds OSV IDs only. malicious is true only for a MAL- id, otherwise false when OSV was checked, or null when it was not. deprecated, license and published_days_ago come from the registry with maintainer emails removed. A deprecated package or a version under 7 days old is named in why and does not by itself change install to another verdict. meta.disclaimer is: Not a guarantee. malicious is true only when OSV publishes a MAL- record for the version that was checked. A passing verdict is not a promise the package is safe to install. Errors: rows carry not_assessed rather than failing the whole call when one package is unknown. BEHAVIOR: Calls https://api.osv.dev (querybatch, then one GET per advisory id) and either https://registry.npmjs.org/{name} or https://pypi.org/pypi/{name}/json. Registry reads are serial, one package after another, with User-Agent Fairquery (info@getfairquery.com). No www.npmjs.com page is fetched. No package is downloaded, installed or executed. A 429 waits once and retries once. Usually a few seconds; 20 s timeout per request. PARAMETERS: packages: 1-50 objects. ecosystem is "npm" or "PyPI" only. name is the published name ("lodash", "@scope/pkg", "django"). version is optional; omit it to judge the registry latest. An unknown name or version is not_assessed. MAL- blocks. A vulnerability with no non-vulnerable published version blocks. A vulnerability with a non-vulnerable published version pins to the lowest such version at or above the one you named, or else the latest non-vulnerable version. limit/offset page the rows. Every call repeats the lookups, including a call that only changes offset. EXAMPLE: {"packages":[{"ecosystem":"npm","name":"lodash","version":"4.17.20"}]} -> verdict "pin", pin_to a fixed version, fix_command "npm i lodash@<pin_to>", advisories listing GHSA ids, malicious false.

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": {
      "packages": "<packages>"
    },
    "name": "osv_install_verdict"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoOptional page size: items to return, integer 1-50 (default 50). Example: 50
offsetNoOptional zero-based number of items to skip, integer 0-1000000 (default 0); pass nextOffset from the previous response, e.g. 100
packagesYesRequired. 1-50 {ecosystem, name, version?} objects. Example: [{"ecosystem":"npm","name":"lodash","version":"4.17.20"}]

Output Schema

NameRequiredDescriptionDefault
metaNoTool-specific context (summary counts, cost notes, ...)
countYesNumber of items in this page
itemsYesResult rows for this page
totalYesTotal items before paging
offsetYesOffset of the first item in this page
hasMoreYesTrue if more items exist after this page
nextOffsetYesOffset to pass for the next page, or null

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, yet the description still adds substantial context: which hosts are called (api.osv.dev querybatch plus per-advisory GETs, npmjs/pypi registry JSON), that no package is downloaded, installed or executed, that registry reads are serial, the User-Agent string, 429 retry-once behavior, 20 s per-request timeout, and that no data goes to third parties. The note that every call re-does the lookups even when only offset changes is a genuinely useful operational disclosure.

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

Conciseness4/5

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

The WHAT/WHEN/WHEN NOT/COST/RETURNS/BEHAVIOR/PARAMETERS/EXAMPLE scaffolding is front-loaded and easy to scan, which is appropriate for a tool of this complexity. It loses a point for repetition: the 'malicious is true only when OSV publishes a MAL- record' sentence appears nearly verbatim in both WHAT and RETURNS, and the verbatim meta.disclaimer quote pads the RETURNS block.

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?

For a multi-package, network-touching, free/public-data tool with an output schema, the description covers cost/auth, data provenance, verdict semantics, error degradation (per-row not_assessed rather than a failed call), pagination caveats, and even a worked example. Nothing an agent needs to invoke or interpret it correctly is missing.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the PARAMETERS block goes well beyond the schema: it explains that omitting version judges registry latest, that unknown names/versions yield not_assessed rather than an error, that a MAL- record blocks, and gives the actual pin-resolution rule (lowest non-vulnerable version at or above the named one, else latest non-vulnerable). That is real semantic content an agent cannot recover from the schema alone.

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 WHAT block names a specific verb and resource: returns an install/pin/block/not_assessed verdict for up to 50 npm or PyPI packages, plus pin_to and fix_command. It also explicitly distinguishes itself from the advisory-list and single-advisory siblings, so an agent can route correctly without opening another schema.

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?

There is an explicit WHEN ('before npm install or pip install, when you want one label') and a WHEN NOT section that names the exact alternatives and the conditions that select them: osv_query_packages for a list of advisory IDs on pinned versions, osv_get_vulnerability for one advisory body, osv_audit_dependencies for manifests/lockfiles/SBOMs. Nothing is left to inference.

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