Skip to main content
Glama

generate_permit2_witness_hash

Generate Uniswap Permit2 witness hashes to enable gasless token authorization signatures for x402 micropayments on Base L2.

Instructions

Generates Uniswap Permit2 structured typed data witness hashes for gasless token authorization signatures. (0.015 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of explaining side effects, return values, and safety characteristics. It says the tool 'generates' hashes and mentions gasless signatures, but it does not disclose whether the operation is pure/read-only, what output is produced, or whether the 0.015 USDC note is a fee, a required payment, or a gas estimate. The ambiguous parenthetical is not an adequate behavioral disclosure.

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 front-loaded sentence that is easy to scan. The parenthetical fee note is cryptic, but the overall length is appropriate and there is no unnecessary verbosity.

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?

For a cryptographic tool with no output schema, generic parameter descriptions, and no usage guidance, this definition is under-specified. An agent cannot determine the required fields within payload, the output shape, whether the USDC payment is mandatory, or how the witness hash integrates with Permit2. The description is too thin for confident invocation on a complex tool.

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 description coverage is 100%, so the baseline is 3. The description adds general context about Permit2 and gasless authorization, but it does not explain how to structure the payload string or what paymentSignature actually represents beyond the schema's generic wording. It adds value but does not compensate for the schema's lack of domain-specific parameter detail.

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 states a specific verb and resource: it generates Uniswap Permit2 structured typed data witness hashes for gasless token authorization signatures. This differentiates it from the generic sibling eip712_typed_data_hasher and other EVM tools. However, it does not explicitly contrast itself with sibling tools or explain the 'witness hash' concept, so it stops short of full differentiation.

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?

There is no guidance about when to use this tool versus alternatives such as eip712_typed_data_hasher or verify_evm_signature. The cryptic parenthetical '(0.015 USDC on Base L2)' hints at a fee or settlement requirement but does not clarify conditions, preconditions, or exclusions.

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

Deploy Server

Other Tools