Skip to main content
Glama

Audit supplied source evidence

audit_agent_extension_supply_chain
Read-only

Statically inspect up to 16 KiB across 16 supplied source files. Does not download or execute packages. Results cover only the supplied evidence, not a verified package artifact. Never send credentials or private source without permission.

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": {
      "sourceFiles": "<sourceFiles>"
    },
    "name": "audit_agent_extension_supply_chain"
  }
}

Input Schema

NameRequiredDescriptionDefault
jevGateNoExplicit opt-in live Jev decision gate. Scores >= 0.9 or unavailable review require REVIEW. Never approves installation.
jevReviewNoOptional hosted Jev prompt-injection review. Live sends sampled source and file names to TypeSafe using maintainer-funded test credits; preview does not upload.
packageNameNoOptional package label for the report, such as express or @scope/package. This label does not trigger a package download or establish its identity; omitted labels use supplied-evidence.
sourceFilesYesMap 1–16 file names to their literal source text, for example {"index.js":"module.exports = 42;"}. Names are report labels, not paths to read. File names and contents together must fit within 16 KiB of UTF-8 data. Include only source you are permitted to share, with credentials removed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / jevGate
      Added value: +{
      +  "description": "Explicit opt-in live Jev decision gate. Scores >= 0.9 or unavailable review require REVIEW. Never approves installation.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / jevReview
      Added value: +{
      +  "description": "Optional hosted Jev prompt-injection review. Live sends sampled source and file names to TypeSafe using maintainer-funded test credits; preview does not upload.",
      +  "enum": [
      +    "preview",
      +    "live"
      +  ],
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / packageName / description
      Added value: +"Optional package label for the report, such as express or @scope/package. This label does not trigger a package download or establish its identity; omitted labels use supplied-evidence."
    • addedInput schema / properties / sourceFiles / additionalProperties / description
      Added value: +"Literal source text for the named file. It is inspected as data and never executed; the file map shares one 16 KiB UTF-8 budget."
    • addedInput schema / properties / sourceFiles / description
      Added value: +"Map 1–16 file names to their literal source text, for example {\"index.js\":\"module.exports = 42;\"}. Names are report labels, not paths to read. File names and contents together must fit within 16 KiB of UTF-8 data. Include only source you are permitted to share, with credentials removed."
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond readOnlyHint/destructiveHint, the description discloses that inspection is static, that nothing is fetched or run, that findings are bounded by the caller-supplied evidence, and that only shareable, credential-free source should be submitted. The 16 KiB/16-file budget and the review-gate semantics ("Never approves installation") further constrain behavior in a way annotations cannot express.

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?

Four short sentences, front-loaded with the core action and its limits. There is minor overlap between "Does not download or execute packages" and "not a verified package artifact," but nothing is padding.

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

Completeness3/5

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

With no output schema, the description should convey what the report looks like; it only limits the results' trustworthiness ("cover only the supplied evidence") and hints at scoring through the jevGate parameter. Enough to call it correctly, but an agent cannot anticipate the shape or content of the returned audit.

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%, so all four parameters (including the nested sourceFiles map and the jevReview enum) are already documented in structured fields. The description echoes the file-count and size budget but adds no new syntax, format, or interaction detail beyond the schema.

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

Purpose4/5

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

States a specific verb and resource ("Statically inspect ... supplied source files") plus hard scope limits (16 KiB, 16 files), and explicitly negates package download/execution, which implicitly separates it from the package-metadata sibling. It stops short of naming check_npm_package_metadata as the alternative.

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

Usage Guidelines3/5

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

"Does not download or execute packages" and "Results cover only the supplied evidence, not a verified package artifact" imply when this tool applies versus a package-artifact lookup, but the routing is left to inference. The credential/permission caution adds a precondition but no explicit when-to-use or when-not-to-use statement.

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.