Skip to main content
Glama

Score paymaster sponsorship risk

account-abstraction_sponsorship-risk
Read-onlyIdempotent

Add the caller-supplied call gas and verification gas, multiply by the max fee, and compare that cost with the paymaster deposit. Docs: https://www.brainiac.software/api/account-abstraction/sponsorship-risk Keywords: before you sponsor or submit a user operation, deposit wei, max fee per gas, max call gas, max verification gas, allow init code, user operations, sponsorship risk score, sponsorship_risk_score, gas limit safety index, gas_limit_safety_index, Score paymaster sponsorship risk, sponsorship risk.

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": {
      "deposit_wei": "<deposit_wei>",
      "max_fee_per_gas": "<max_fee_per_gas>",
      "max_call_gas": "<max_call_gas>",
      "max_verification_gas": "<max_verification_gas>",
      "allow_init_code": "<allow_init_code>",
      "user_operations": "<user_operations>"
    },
    "name": "account-abstraction_sponsorship-risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
deposit_weiYesdeposit wei, integer, from 0 to 9007199254740991. Required.
max_call_gasYesmax call gas, integer, from any to 30000000. Required.
allow_init_codeYesallow init code, boolean. Required.
max_fee_per_gasYesmax fee per gas, integer, from any to 9007199254740991. Required.
user_operationsYesuser operations, array. Required.
max_verification_gasYesmax verification gas, integer, from 0 to 30000000. Required.

Output Schema

NameRequiredDescriptionDefault
gas_limit_safety_indexNogas_limit_safety_index. Number.
sponsorship_risk_scoreNosponsorship_risk_score. Number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered structurally. The description adds the arithmetic behind the score, which is genuinely useful behavioral context. It says nothing about cost, rate limits, or what happens on a partial/insufficient deposit, so the extra disclosure is modest.

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 useful content is one sentence plus a docs link; the rest is a long comma-separated keyword dump that repeats the schema field names verbatim. That padding dilutes the front-loaded computation statement and adds tokens without adding meaning.

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, so return values need not be described, and annotations cover the read-only/idempotent nature. What is missing for a 6-parameter scoring tool is how the user_operations array is aggregated into the total and how the resulting score should be interpreted (thresholds, pass/fail).

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 every parameter is already documented in the schema, making 3 the baseline. The formula references 'caller-supplied call gas and verification gas', max fee, and deposit, but it never explains the top-level user_operations array or allow_init_code, and it is ambiguous whether the per-operation gas limits or the top-level max_*_gas values feed the formula.

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 first sentence names a concrete computation: sum call gas and verification gas, multiply by max fee, compare against the paymaster deposit. That is a specific verb-plus-resource that an agent can recognize as a risk-scoring calculation. It does not differentiate itself from the sibling audit/validity tools, which keeps it below 5.

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

Usage Guidelines4/5

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

The keyword block includes the trigger 'before you sponsor or submit a user operation', which gives a clear pre-submission context for calling this tool. There is no statement of when not to use it and no naming of the sibling audits as alternatives, so it falls short of full routing guidance.

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