Skip to main content
Glama

security_sri_hash

Read-only

Subresource Integrity (SRI) hash generator — Fetches a script or stylesheet URL and returns its Subresource Integrity hashes (sha256, sha384, sha512), a ready-to-paste script or link tag with integrity and crossorigin attributes, and checks that make SRI actually work: CORS header present, version-pinned URL, https, correct content type, redirects. Verdict OK or REVIEW with warnings. Optional algo= sha256 | sha384 (default) | sha512. Price: $0.002 USDC (Base, via x402).

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": {
      "url": "<url>"
    },
    "name": "security_sri_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesscript or stylesheet URL, e.g. https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint=false, so the safety profile is set; the description adds material context beyond that — it discloses outbound fetching of a remote URL, the specific checks performed (CORS header, version pinning, https, content type, redirects), the OK/REVIEW verdict, and an explicit price of $0.002 USDC via x402. The only real omission is failure behavior when the URL is unreachable or CORS-blocked.

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?

One dense but well-ordered block: what it does and returns first, then the validation checks and verdict, then the optional algo, then cost. Every clause carries information; nothing is redundant with the schema or annotations.

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 output schema, the description does the work of explaining return values (three hash algorithms, a ready-to-paste integrity tag, check results, and an OK/REVIEW verdict), and it covers cost and the optional parameter. It is close to complete; missing are error/timeout behavior and clearer routing guidance against sibling hash tools.

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 single required url parameter is fully described in the schema, so the baseline is 3; the description earns above that by documenting an optional algo parameter with its enum values (sha256 | sha384 | sha512) and default of sha384, plus an example URL form. Notably, algo is not declared in the input schema properties, so this descriptive text is the only place an agent learns of it.

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 and resource — 'Subresource Integrity (SRI) hash generator — Fetches a script or stylesheet URL and returns its ... hashes' — and the URL-based SRI scope clearly separates it from the generic sibling security_hash. An agent can identify the operation from the first clause without opening the schema.

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?

Usage is only implied: you fetch a script/stylesheet URL to generate integrity attributes, and a 'Verdict OK or REVIEW' hints at a validation workflow. It never states when to prefer this over security_hash or security_headers, nor does it state preconditions such as the target being publicly reachable.

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.

Resources