Skip to main content
Glama

Astro Agents - research-grade astronomical data API

Verify a result hash (free)

verify_result_hash
Read-onlyIdempotent

Verify that an astronomical data result was not altered: recompute the SHA-256 of a 'result' object returned by any tool and compare it with the result_sha256 you hold. Free.

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": {
      "result": "<result>"
    },
    "name": "verify_result_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
resultYesThe 'result' object exactly as a tool returned it.
result_sha256NoThe meta.result_sha256 returned with it (64 hex characters). Omit to only recompute the hash.

Output Schema

NameRequiredDescriptionDefault
matchesNoWhether it equals the result_sha256 you sent. Absent if you sent none.
result_sha256YesSHA-256 recomputed from the 'result' you sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "matches": {
      +      "description": "Whether it equals the result_sha256 you sent. Absent if you sent none.",
      +      "type": "boolean"
      +    },
      +    "result_sha256": {
      +      "description": "SHA-256 recomputed from the 'result' you sent.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "result_sha256"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / result / description
      Added value: +"The 'result' object exactly as a tool returned it."
    • addedInput schema / properties / result_sha256 / description
      Added value: +"The meta.result_sha256 returned with it (64 hex characters). Omit to only recompute the hash."
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine context beyond that: the operation is a local recompute-and-compare, it works on output from any tool, and it is free (no cost/credit implication).

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?

Two sentences, front-loaded with the purpose and the mechanism, then a short cost note. Nothing is redundant and no sentence could be removed without losing information.

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 an output schema present, return values need not be described, and the nested 'result' object is covered by the schema. The definition is nearly complete for a two-parameter verification tool; only explicit guidance on prerequisites (e.g. whether the hash must come from the same tool call) is absent.

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 both properties are already documented, including the 'omit to only recompute' behavior. The description restates the hash as 'the result_sha256 you hold' but adds no syntax or format detail beyond the schema, so the baseline of 3 applies.

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 with the mechanism: recompute SHA-256 of a 'result' object and compare to a held result_sha256. No sibling tool in the list performs integrity verification, so it is unambiguous what this does that others do not.

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?

The description makes the use case explicit: verify that an astronomical result was not altered, using a result object returned by any tool plus the hash you hold. It also covers the degenerate mode (omit the hash to only recompute), but offers no explicit when-not guidance or prerequisites.

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.