Skip to main content
Glama

Score UserOperation format

account-abstraction_user-op-validity
Read-onlyIdempotent

Check a caller-supplied nonce, signature length, init code, and calldata length. Docs: https://www.brainiac.software/api/account-abstraction/user-op-validity Keywords: before you sponsor or submit a user operation, sender, nonce, signature, init code, call data, expected nonce, user op validity score, user_op_validity_score, rejection probability index, rejection_probability_index, validation errors, validation_errors, Score UserOperation format, user op validity.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sender": "<sender>",
      "nonce": "<nonce>",
      "signature": "<signature>",
      "init_code": "<init_code>",
      "call_data": "<call_data>"
    },
    "name": "account-abstraction_user-op-validity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nonceYesnonce, integer, from 0 to 9007199254740991. Required.
senderYessender, string. Required.
call_dataYesinit code, string, length 0 to 20000. Required.
init_codeYesinit code, string, length 0 to 20000. Required.
signatureYessignature, string, length 0 to 1000. Required.
expected_nonceNoexpected nonce, integer, from 0 to 9007199254740991. Optional.

Output Schema

NameRequiredDescriptionDefault
validation_errorsNovalidation_errors. Array.
user_op_validity_scoreNouser_op_validity_score. Number.
rejection_probability_indexNorejection_probability_index. Number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety and idempotency are covered structurally. The description adds that validation is structural (nonce, signature length, init code, calldata length), but it never explains what 'checking' produces semantically, such as rejection probability or what a low score implies, even though the keywords hint at these concepts.

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 is efficient and front-loaded, but it is followed by a documentation URL and a long keyword block that duplicates the same concepts multiple times (for example 'user op validity score' vs 'user_op_validity_score' and 'validation errors' vs 'validation_errors'). That filler 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?

Since an output schema exists, the description need not explain return values, and the annotations carry the safety profile. Still, for a six-parameter validation tool it leaves the checking semantics and the role of expected_nonce unexplained, so it is only adequate rather than complete.

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 all six parameters are documented in the schema and baseline is 3. The description adds no meaning beyond the field names, and it notably omits 'sender' and 'expected_nonce' from the list of things checked, so it does not compensate for anything the schema lacks.

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 opens with a specific verb-plus-object: it checks a caller-supplied nonce, signature length, init code, and calldata length, which matches the title 'Score UserOperation format'. It is clear what the tool inspects, but it never distinguishes itself from siblings like account-abstraction_user-operation-audit or account-abstraction_sponsorship-risk.

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?

A usage cue exists only inside the keyword block: 'before you sponsor or submit a user operation,' which does tell the agent when to call it. However, this is buried in a keyword dump rather than stated as guidance, and no alternative tool or exclusion is named.

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