Skip to main content
Glama

Audit user operation

account-abstraction_user-operation-audit
Read-onlyIdempotent

Check the structure of one ERC-4337 UserOperation before it is submitted to a bundler. Docs: https://www.brainiac.software/api/account-abstraction/user-operation-audit Keywords: before you sponsor or submit a user operation, validation status, validation_status, risk level, risk_level, field errors, field_errors, structural findings, structural_findings, gas configuration, gas_configuration, paymaster analysis, paymaster_analysis, decoded calls, decoded_calls.

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": "account-abstraction_user-operation-audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
abiNoabi, array. Optional.
chainIdNochainId, integer. Optional.
expectedNonceNoexpectedNonce, string. Optional.
senderAccountNosenderAccount, object. Optional.
userOperationNouserOperation, object. Optional.
expectedTargetsNoexpectedTargets, array. Optional.
entryPointVersionNoentryPointVersion, string. Optional.
expectedSelectorsNoexpectedSelectors, array. Optional.

Output Schema

NameRequiredDescriptionDefault
risk_levelNorisk_level. String.
limitationsNolimitations. Array.
field_errorsNofield_errors. Array.
decoded_callsNodecoded_calls. Array.
gas_configurationNogas_configuration. Array.
validation_statusNovalidation_status. String.
paymaster_analysisNopaymaster_analysis. Object.
structural_findingsNostructural_findings. Array.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / limitations / items / description
      Previous value: -"Item. String."New value: +"item. String."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so safety is covered. The description adds the pre-submission checkpoint framing but nothing about required inputs, auth, rate limits, or failure behavior. The trailing keyword list covers output concepts that the existing output schema already exposes.

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 first sentence and docs link are well front-loaded, but roughly half the text is a comma-separated keyword dump (validation_status, risk_level, field_errors, structural_findings, gas_configuration, ...) that duplicates field names already implied by the output schema. That padding dilutes the signal an agent needs.

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

Completeness3/5

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

An output schema exists and annotations cover the safety profile, so the description needn't explain returns. For a tool with 8 optional parameters and nested objects, however, it should at least indicate which inputs are needed for a meaningful audit rather than leaving all eight undocumented.

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 names none of the 8 parameters, leaving ambiguous ones like expectedTargets and expectedSelectors, and the optionality/interaction among senderAccount, userOperation, and abi, entirely to the schema.

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?

States a specific verb and resource: "Check the structure of one ERC-4337 UserOperation before it is submitted to a bundler." That is concrete and actionable. It does not, however, distinguish itself from the sibling account-abstraction_user-op-validity, which reads like a closely related check.

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

Usage Guidelines3/5

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

Gives timing context ("before you sponsor or submit a user operation"), which implies the usage moment. It never names an alternative or states when-not to use it, so an agent facing user-op-validity or paymaster-sponsorship-audit has no routing signal.

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.

Resources