Skip to main content
Glama

mechacut

net_sri

Subresource Integrity from LOCAL octets only — this tool never fetches. Give bytes_b64 or text (the exact file you reviewed) and get the ready-to-paste integrity attribute (sha256/sha384/sha512, strongest-first, W3C grammar), the crossorigin note, and full / tags when a url is given. Give integrity_attr to audit it: TAB/newline token separators are flagged as the CVE-2026-120423 class (a space-only verifier skips every token and accepts tampered bodies unconditionally), sha1/md5 and bad base64 refused by name, wrong-length digests caught, duplicates flagged (W3C = strongest supported wins, not all checked). URLs audited for moving parts: @latest and unversioned CDN paths flagged as planned outages, @5/@5.3 ranges as warn. With octets + attribute it VERIFIES the match locally — honest scope note included: SRI proves bytes are expected, never that they are safe. Free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "net_sri"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNostyle-audited only — NEVER fetched
textNoUTF-8 text source (declared)
bytes_b64Nostrict base64 of the exact file bytes
algorithmsNosubset of sha256/sha384/sha512; default sha384
integrity_attrNoattribute to audit or verify against octets

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and largely discharges it: it declares no network fetching, names the accepted algorithms and their strength ordering, specifies rejection behavior (sha1/md5 and bad base64 'refused by name', wrong-length digests caught, duplicates flagged), explains the W3C strongest-wins rule, and distinguishes flag-versus-warn severity for URL audits. It even bounds its own guarantees with 'SRI proves bytes are expected, never that they are safe.'

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?

Front-loaded with the core promise ('LOCAL octets only — this tool never fetches') followed by per-mode usage, then audit specifics. It is dense and leans on parentheticals and em-dashes, so it reads as a run-on in places, but nearly every clause conveys a distinct behavior rather than filler.

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?

With no annotations and no output schema, the description must cover both safety profile and return shape; it does the former thoroughly and sketches the latter (integrity attribute, crossorigin note, full <script>/<link> tags when a url is given). The exact response structure and field names remain unstated, which is the main remaining gap for a tool with five optional parameters.

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?

Schema coverage is 100%, so the baseline is 3; the description nevertheless adds cross-parameter meaning the schema does not have, namely that combining octets with an integrity_attr triggers local verification, and that URL is audited for moving parts (@latest, unversioned CDN paths, @5/@5.3 ranges) rather than fetched. The 'strongest-first, W3C grammar' framing of the algorithms output also adds context beyond the bare enum-like list.

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?

States a specific verb+resource with scope: computes a Subresource Integrity attribute from LOCAL octets only, and can audit an existing integrity_attr. The 'never fetches' constraint and the two supported modes (generate vs. audit vs. verify) make it unambiguous and clearly separable from the net_* networking siblings.

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?

Each input mode is paired with its use: 'Give bytes_b64 or text (the exact file you reviewed)' to generate, 'Give integrity_attr to audit it', and 'With octets + attribute it VERIFIES the match locally'. It lacks an explicit when-not-to-use statement or named alternative, but for a single-purpose offline tool the mode selection is complete enough.

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.