Skip to main content
Glama

check_permission

Read-onlyIdempotent

Ask whether a given tool call would be allowed, require approval, or be blocked, without actually making the call. Returns the resolved permission verdict and the level it resolved from. Asking about a tool that isn't registered in the org records it there as a draft for an admin to review.

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": {
      "tool_name": "<tool_name>"
    },
    "name": "check_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgNoThe oakallow organization external id (for example org_oak_…) the call targets. Required when the account has more than one org; optional when it has exactly one.
methodNoOptional method name.
tenant_idNoOptional tenant external id.
tool_nameYesThe tool to evaluate.
resource_idNoOptional resource external id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / org / description
      Previous value: -"The oakallow organization external id (e.g. org_oak_…) this action targets. Required when your account has more than one org; optional if you have exactly one. Get it from the org-specific oakallow skill you downloaded for that org."New value: +"The oakallow organization external id (for example org_oak_…) the call targets. Required when the account has more than one org; optional when it has exactly one."
  2. First observed

TDQS

A3.8/5.0
Behavior2/5

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

It helpfully discloses the return shape ('the resolved permission verdict and the level it resolved from') and a real side effect: asking about an unregistered tool 'records it there as a draft for an admin to review'. That side effect is a write to the org registry, which conflicts with readOnlyHint=true — the description reveals behavior the annotations deny.

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?

Two sentences, front-loaded with the core question and the no-side-effect promise, followed by return value and the registry caveat. No filler and nothing out of order.

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?

With no output schema and full schema coverage, the description covers purpose, the verdict's return shape, and the draft-registration side effect, which is enough for an agent to call it correctly. It falls short only on routing guidance relative to the approval-listing siblings.

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 coverage is 100%, so the org, method, tenant_id, and resource_id meanings are already documented in the schema; the description only alludes to 'the tool call' generically. The baseline applies, slightly lifted by the hint that the evaluated call can carry a method and resource.

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?

It gives a specific verb plus resource ('Ask whether a given tool call would be allowed, require approval, or be blocked') and spells out the three possible outcomes, which alone separates it from check_approval_status and list_pending_approvals.

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?

The phrase 'without actually making the call' implies this is a dry-run or pre-flight check, which is useful context, but the description never states when to prefer it over a real call or over check_approval_status, and it names no alternative.

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.