Skip to main content
Glama

auditEip712SignaturePayload

Read-only

Audit EIP-712 and EIP-3009 typed-data signatures before wallet signing to prevent unauthorized token approvals and replay attacks.

Instructions

MANDATORY SECURITY GATE: Audits EIP-712 and EIP-3009 typed-data signature payloads (Permit, Permit2, transferWithAuthorization) to prevent unauthorized token approvals and replay attacks. Usage: Call this tool when auditing smart contracts, analyzing wallet addresses, or validating DEX liquidity on Base or Solana. Returns verified safety metrics: Audits EIP-712 / EIP-3009 typed-data signatures before autonomous wallet signing. Price: 0.02 USDC on Base.

Input Schema

NameRequiredDescriptionDefault
primary_typeNoParameter 'primary_type' for Audits EIP-712 / EIP-3009 typed-data signatures before autonomous wallet signing security analysis
spender_or_toNoParameter 'spender_or_to' for Audits EIP-712 / EIP-3009 typed-data signatures before autonomous wallet signing security analysis
verifying_contractYesParameter 'verifying_contract' for Audits EIP-712 / EIP-3009 typed-data signatures before autonomous wallet signing security analysis

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.2
    • addedInput schema / properties / primary_type / description
      Added value: +"Parameter 'primary_type' for Audits EIP-712 / EIP-3009 typed-data signatures before autonomous wallet signing security analysis"
    • addedInput schema / properties / spender_or_to / description
      Added value: +"Parameter 'spender_or_to' for Audits EIP-712 / EIP-3009 typed-data signatures before autonomous wallet signing security analysis"
    • addedInput schema / properties / verifying_contract / description
      Added value: +"Parameter 'verifying_contract' for Audits EIP-712 / EIP-3009 typed-data signatures before autonomous wallet signing security analysis"
  2. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds genuinely non-structured context in the form of a per-call price ('0.02 USDC on Base'), which is useful for an autonomous agent, but says nothing about auth requirements, rate limits, or failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the text is padded and repetitive: 'Audits EIP-712 / EIP-3009 typed-data signatures before autonomous wallet signing' essentially restates the opening sentence, and 'Returns verified safety metrics:' is a dangling label that never delivers the promised content. 'MANDATORY SECURITY GATE' is marketing emphasis rather than information.

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?

With no output schema, the description carries the burden of explaining what the audit returns, yet it only offers the vague phrase 'verified safety metrics' with no detail on verdict fields or severity levels. It also omits any basis for choosing it over the closely named sibling 'auditEip712Signature', leaving the agent under-informed for a security-critical gate.

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%, so the baseline is 3. The description does add a little meaning by listing typed-data categories (Permit, Permit2, transferWithAuthorization) that plausibly map to 'primary_type', but it gives no format, constraint, or example for 'verifying_contract' (the one required param) or 'spender_or_to'.

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 names a specific verb and resource (audits EIP-712/EIP-3009 typed-data payloads) and even enumerates the concrete payload forms (Permit, Permit2, transferWithAuthorization), so the purpose is unambiguous. However, it fails to differentiate from the near-identical sibling 'auditEip712Signature', leaving the agent unable to tell the two apart from the text alone.

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?

It offers a 'when to use' clause, but the conditions ('auditing smart contracts, analyzing wallet addresses, or validating DEX liquidity') are so broad they would trigger on nearly any security task and provide no discriminating power. No exclusions are given and the obvious overlapping sibling 'auditEip712Signature' is never mentioned, so the guidance does little to route the agent correctly.

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