Skip to main content
Glama

Role permission match check

wever_role-permission-match-check
Read-only

Agent Roles: submit the permissions an agent holds with its written role: the role with its id, title, version and when this version took effect; each permission the role calls for with its system, level (read, write, admin or owner) and why; each permission the agent holds now with its id, system, level, when it was granted, when it was last used and how it was granted (through the role, directly, inherited or copied); the date access is read at; and optionally the days without use after which a permission counts as unused (90 when left out). The signed report gives every held permission with the level the role calls for, its grant date, its days unused and its status as matched, excess, above_role, predates_role, below_role, unused, carried, unrated or unread when no needs are listed, every need as held, missing or under_held, and counts them, and names mismatched permissions: a permission on a system the written role does not call for, a level above the role, a permission the role calls for that the agent lacks and a grant made before this version of the role took effect; then a level below the role, a permission the role names left unused past the window and one inherited or copied rather than granted through the role, with the fix for each and what would change the verdict. No list of needs or holdings, an unstated level or last use, or no reading or effective date leaves the permissions unverified. This reads the permissions an agent holds now against its current written role, with use and grant dates: the permissions granted at joining against the written job are wever_onboarding-permissions-check, one action’s access against its authority grant is wever_authority-scope-check and a stored grant evaluated for one subject, action and resource is wever_agent-permission-ledger. Verdict role_permissions_mismatched, role_permissions_partial, role_permissions_unverified or role_permissions_matched. POST /api/role-permission-match-check. Reads the role records supplied in the call and returns a signed report with the verdict, the evidence read, the findings with their fixes, and what would change the verdict; the records stay in the report, with no network request, fetch, message, payment or external write. Agent Roles reads a role’s own records and checks the role itself: what the job is, who owns it, whether the permissions the agent holds match the written role, where its scope ends, whether a change of holder rewrote the description, whether it is reviewed on schedule, whether duties stay apart across the roles one agent holds, and whether delegations stay inside what the role allows. Beside it, wever_onboarding-permissions-check and wever_onboarding-readiness-check read a new agent’s grants and written job at joining, while a role check reads the written role and its records at any time after; wever_authority-scope-check reads one action’s access against its authority grant, while the permission match check reads every permission held against the role; and the Agent Delegation checks such as wever_delegation-scope-check read one delegation on its own terms, while the delegation check reads every delegation against what the role allows. Paid URL: 0.10 USDC per call on Base via x402 exact, with the shared 10 signed-wallet free calls per rolling 30 days. Bind X-Wever-Wallet-Proof to the exact JSON arguments and the tool route. Returns a report with an Ed25519 signed receipt. Contract: /api/agent-roles-contract. Human page: https://weverlabs.com/agent-roles/.

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": {
      "role": "<role>"
    },
    "name": "wever_role-permission-match-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
heldNoPermissions the agent holds now.
roleYes
labelNoOptional name recorded in the report.
needsNoPermissions the written role calls for.
read_atNoThe date access is read at, such as 2026-11-20.
unused_daysNoDays without use after which a permission counts as unused; 90 when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

The annotations already declare a read-only, non-destructive, non-open-world operation, and the description adds substantial context beyond that: local record processing with no network request, fetch, message, payment or external write, plus the signed report, Ed25519 receipt, x402 payment terms and wallet-proof binding.

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 description is heavily overlong and contains run-on sentences with repeated sibling and Agent Roles context, making the key distinctions harder to scan. While the purpose is front-loaded, much of the text could be tightened without losing meaning.

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

Completeness5/5

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

For a six-parameter nested-object tool with no output schema, the description is complete: it explains the input evidence, the verdict values, the report contents, status classifications, fixes, payment and authentication requirements, and the absence of external side effects.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is already high at 83%, the description explains what each input represents in the evaluation, including the role version and effective date, held permissions with grant and last-use dates, source of grant, and the optional unused-days window defaulting to 90. It also explains the consequences of omitting needs, holdings, dates or levels.

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 states a specific verb and resource: it reads the permissions an agent holds now against its current written role, including use and grant dates. It explicitly distinguishes this from sibling checks such as onboarding-permissions-check, authority-scope-check and agent-permission-ledger.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance by contrasting this check with onboarding checks, authority-scope-check and delegation-scope-check, including the temporal distinction that role checks read the written role at any time after joining. It also explains what makes the check unverified when required evidence is missing.

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