Skip to main content
Glama

security_hash

Read-only

Hash a string (MD5, SHA-1, SHA-256/384/512) — Return MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hex digests plus base64 of a string. Pass ?text=. 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": {
      "text": "<text>"
    },
    "name": "security_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesthe string to hash

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description adds genuinely new behavior — the $0.002 USDC cost on Base via x402 and the fact that all five digests plus base64 are returned. It does not mention determinism or error behavior, but the payment disclosure is valuable context an agent cannot get from annotations.

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?

Three short clauses, with the core action front-loaded, and every element (algorithms, return shape, invocation, price) is relevant. The algorithm list is repeated between the first and second clause, which is mild redundancy but not bloat.

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?

For a one-parameter, no-output-schema tool, the description covers input, all return values (five hex digests plus base64), and the payment requirement. Only minor gaps remain, such as encoding assumptions for non-ASCII input and failure behavior.

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 coverage is 100% and the single required param is already documented as "the string to hash", so the schema does the heavy lifting. The description adds only a marginal note that text is passed as a query-style parameter ("Pass ?text="), which is a minor clarification rather than new semantic meaning.

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 and resource ("Hash a string") and enumerates the exact algorithms supported (MD5, SHA-1, SHA-256/384/512). No sibling tool offers hashing, so the scope is unambiguous without needing to name an 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?

Usage context is only implied: an agent can infer this is the tool for turning text into digests, but there is no statement of when to prefer it over, say, security_pwned_password or security_jwt_decode, and no preconditions beyond the price. The "Pass ?text=" note gives a hint on invocation but not on selection.

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