Skip to main content
Glama

Check a signed stock quote

verify_stock_quote
Read-onlyIdempotent

Checks a Kerne stock quote: that the hash matches the signed string, that both signatures (EIP-191 over the document, EIP-712 over the on-chain Quote struct) recover to the published quote signer, whether the quote has expired, and whether the price round it is bound to is still the latest round on the feed. Call it with no arguments to check the latest quote, or pass the three fields of a quote you were given by someone else. It checks who signed and whether the quote is still current. It does not judge whether the price is a good one.

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": "verify_stock_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
signatureNo0x plus 130 hex characters: the EIP-191 signature over the 32 bytes of attestation_hash.
attestation_hashNo0x plus 64 hex characters: sha256 of signed_payload_canonical.
signed_payload_canonicalNoThe exact signed string of the quote, byte for byte.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description does add real substance beyond them — the specific cryptographic checks performed and the 'latest round on the feed' freshness condition that explains the openWorldHint. It stops short of describing what a pass/fail result looks like, which matters since there is no output schema.

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?

Front-loads the set of checks, then the two invocation modes, then the scope limitation. Three sentences, no filler, and the ordering mirrors how an agent needs the 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?

The verification logic and invocation contract are fully covered for a 3-param, zero-required tool. The only remaining gap is the shape of the verification result, which the description does not address and there is no output schema to fill in.

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 per-field formats (130 hex chars for the EIP-191 signature, sha256 for the hash, byte-exact canonical string) are already documented. The description adds the all-or-none semantic that the schema cannot express: zero arguments means 'check latest', three arguments means 'check this given quote'. That coupling is genuinely beyond the structured data.

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 ('Checks a Kerne stock quote') and then enumerates exactly which properties are verified: hash match, EIP-191 and EIP-712 signature recovery, expiry, and latest-round binding. It also draws an explicit boundary ('It does not judge whether the price is a good one'), which cleanly separates it from price-fetching siblings like get_stock_quote.

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?

Gives concrete invocation guidance for both modes: no arguments to check the latest quote, or the three quote fields when handed a quote by someone else. It lacks an explicit pointer to a named alternative for the cases this tool does not cover, but the usage context is otherwise clear.

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.