Skip to main content
Glama

Universal Paper

hash_object

Read-only

Content hash (RFC 8785 JCS + SHA-256, signatures stripped) of any JSON value.

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": {
      "obj": "<obj>"
    },
    "name": "hash_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
objYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, and the description adds real substance beyond them: the canonicalization standard (JCS), the digest (SHA-256), and notably that signatures are stripped before hashing, which materially affects results. It stops short of stating determinism guarantees or output encoding, but the key behavioral detail is disclosed.

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?

A single dense parenthetical sentence that front-loads the resource and then qualifies the algorithm. No filler, no redundancy.

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?

An output schema exists, so the return value need not be described, and the algorithm is fully specified. However, for a tool whose entire semantics hinge on canonicalization, the absence of any note on determinism, input constraints, or intended use leaves an agent with an incomplete picture of when and why to call it.

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 0% and the single parameter 'obj' is undocumented in the schema, so the description must compensate. It does partially by saying 'any JSON value', which establishes the accepted input domain, but it says nothing about ordering, nesting, or how non-JSON-native types are handled.

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?

Names the exact operation and algorithm: a content hash over any JSON value, specified as RFC 8785 JCS canonicalization plus SHA-256 with signatures stripped. That is far more specific than the name alone and clearly separates it from validation or simulation siblings, though it never explicitly contrasts with them.

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?

'of any JSON value' implies broad applicability and hints the tool is a general-purpose canonicalizer/hasher, but there is no statement of when to reach for it (e.g., for deterministic comparison or dedup) or which sibling to use instead for validation or event checking.

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.