Skip to main content
Glama

prepare_delegation

Prepare a scoped session-key grant for a Kernel smart account: exact call allowlist, expiry, optional rate limit. Returns the ONE EIP-712 digest the account owner signs outside MCP (this server cannot sign) — then call confirm_delegation with the signature. Auth required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
callsYesallowed calls: each {target: contract address, selector: 0x + 4 bytes, value_limit: max native value in wei as decimal string}
accountYesthe Kernel smart account granting scope
chain_idYes8453 (Base) or 84532 (Base Sepolia)
rate_limitNooptional {count, interval_secs}: max delegated calls per interval
valid_afterNooptional start, unix seconds
valid_untilYesexpiry, unix seconds

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It explicitly states that the tool returns the ONE EIP-712 digest and that the server cannot sign, setting accurate expectations. It also mentions 'Auth required,' but does not detail the exact auth mechanism or any side effects (e.g., does it persist anything?). Since it is a preparation step, it likely doesn't mutate state, but that is not stated. Still, it provides useful behavioral context beyond the schema.

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

Conciseness5/5

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

The description is a single, dense sentence that packs purpose, key constraints, return value, next step, and a caveat (cannot sign) without any fluff. It is front-loaded with the action and resource, and the critical limitation (no signing) is highlighted. Every phrase earns its place; no redundant words.

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

Completeness4/5

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

Given the tool's complexity (nested objects, 6 params), the description is adequate. It explains the high-level purpose, the return digest, the next step (confirm_delegation), and auth requirement. It does not detail the output schema (none exists), but that's not needed. It could mention that the digest must be signed with the account owner's key and that confirm_delegation will accept the signature, but that is implied. Complete enough for safe usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 meaning by highlighting the key constraints: 'exact call allowlist' and 'optional rate limit', and clarifies the flow. It does not repeat parameter-by-parameter details, but the nested objects are well described in the schema. The description helps the agent understand which parameters are essential for scoping (calls, valid_until) and optional (rate_limit, valid_after). This adds value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: to prepare a scoped session-key grant for a Kernel smart account with exact call allowlist, expiry, and optional rate limit. It uses a specific verb ('Prepare') and resource ('delegation'), and differentiates it from siblings like confirm_delegation, renew_delegation, revoke_delegation, and get_delegation by emphasizing the preparation step and the off-chain signing requirement.

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 description clearly explains when to use this tool: to prepare a delegation before signing, followed by confirm_delegation with the signature. It also states that this server cannot sign, guiding the agent to expect external signing. However, it does not explicitly mention when NOT to use it or alternatives like renew_delegation for renewals or revoke_delegation for revoking, but the context is clear enough for selection.

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.

TDQS

A3.8/5.0
Disambiguation5/5

Each tool targets a distinct resource and action. Within the prediction market domain, prepare vs create vs submit are clearly differentiated by signing model (client-signed vs server-signed). Even similar-sounding tools like check_spend and check_pm_order are unambiguously scoped to general spending vs PM orders, and their descriptions reinforce the boundary.

Naming Consistency5/5

All 47 tools follow a consistent verb_noun pattern with lowercase snake_case. Verbs like get, list, create, cancel, revoke, prepare, submit, set, remove, and poll are used uniformly. There is no mixing of styles or vague verbs like 'process' or 'run', making the surface highly predictable.

Tool Count2/5

47 tools is significantly above the 25-tool threshold for 'too many'. While the server covers a broad and complex domain (prediction markets, policy, delegations), the sheer count makes the surface heavy and potentially overwhelming. Some consolidation (e.g., merging related PM order operations) could reduce cognitive load without sacrificing functionality.

Completeness4/5

The tool set provides comprehensive lifecycle coverage across all major subdomains: authentication, policy versioning, delegation CRUD (prepare/confirm/list/get/revoke/renew), intent management, PM order flow (create/cancel/list/prepare/submit/check), credential management (store/list/revoke), balance and top-up operations, and account-level actions (export, offboard, panic). Minor omissions exist (e.g., no dedicated tool to view a single credential in detail or update an intent), but agents can work around these with existing tools.

Resources