Skip to main content
Glama

pot_verify

Verify Proof of Time validity using hash and GRG shards to determine timestamp accuracy and mode for blockchain transactions.

Instructions

Verify a Proof of Time using its hash and GRG shards. Returns validity, mode (turbo/full), and timestamp.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
potHashYesPoT hash to verify (hex with 0x prefix)
grgShardsYesArray of hex-encoded GRG integrity shards
chainIdYesEVM chain ID (e.g. 84532 for Base Sepolia)
poolAddressYesUniswap V4 pool address (0x-prefixed)

Implementation Reference

  • tools.ts:94-123 (handler)
    The handler for the pot_verify tool. It reconstructs shards using the GrgPipeline and validates the proof.
    export async function potVerify(args: {
      potHash: string;
      grgShards: string[];
      chainId: number;
      poolAddress: string;
    }): Promise<unknown> {
      telemetryIncrement("pot_verify");
    
      const shards = args.grgShards.map((hex) => new Uint8Array(Buffer.from(hex, "hex")));
      let valid = false;
      let reconstructedSize = 0;
    
      try {
        const recovered = GrgPipeline.processInverse(shards, 0, args.chainId, args.poolAddress);
        valid = recovered.length > 0;
        reconstructedSize = recovered.length;
      } catch {
        valid = false;
      }
    
      const mode = adaptiveSwitch.getCurrentMode() === AdaptiveMode.TURBO ? "turbo" : "full";
    
      return serialize({
        valid,
        mode,
        potHash: args.potHash,
        reconstructedBytes: reconstructedSize,
        verifiedAt: Date.now(),
      });
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool returns validity, mode, and timestamp, but lacks details on error handling, rate limits, authentication needs, or side effects. For a verification tool with four required parameters, this leaves significant gaps in understanding its operational behavior.

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?

The description is a single, efficient sentence that front-loads the core action (verify) and key inputs. It avoids redundancy and wastes no words, though it could be slightly more structured by separating purpose from output details for clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (four required parameters, no annotations, no output schema), the description is insufficient. It doesn't explain the verification process, potential outputs beyond a vague list, or how results should be interpreted. For a tool with cryptographic inputs and no structured output, more context is needed to ensure correct usage.

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?

The schema description coverage is 100%, so the input schema fully documents all four parameters. The description adds minimal value beyond this, only implying that potHash and grgShards are used for verification. It doesn't explain relationships between parameters or provide usage examples, meeting the baseline for high schema coverage.

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?

The description clearly states the tool's purpose: verifying a Proof of Time using hash and GRG shards, and specifies what it returns (validity, mode, timestamp). It distinguishes from siblings like pot_generate (creation) and pot_query (querying) by focusing on verification. However, it doesn't explicitly contrast with pot_health or pot_stats, keeping it from a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like pot_query or pot_stats. It mentions the required inputs but doesn't specify prerequisites, error conditions, or typical use cases. Without such context, users must infer usage from the purpose alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Helm-Protocol/openttt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server