Skip to main content
Glama
vengtoo

@vengtoo/mcp-server

by vengtoo

check_authorization

Ask Vengtoo whether a subject can perform an action on a resource. Returns decision, reason, and policy. Supports type-level or instance-level checks.

Instructions

Ask Vengtoo whether a subject can perform an action on a resource. Returns decision: true (allowed) or false (denied), plus the reason and which policy/access path was responsible.

Identify the subject and resource using either their Vengtoo UUID (id) or your system's own identifier (external_id). external_id is preferred in production — it avoids the need to store Vengtoo UUIDs.

For type-level checks (does this user have ANY access to this type of resource?): set resource_type and omit resource_id and resource_external_id. For instance-level checks (does this user have access to THIS specific resource?): set resource_id or resource_external_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to check, e.g. "read" or "delete"
subject_idNoVengtoo subject UUID. Use subject_external_id instead when possible.
resource_idNoVengtoo resource UUID. Use resource_external_id instead when possible.
subject_typeYesSubject type, e.g. "user" or "service"
resource_typeYesResource type name or UUID, e.g. "document"
subject_external_idNoYour system's own subject ID (recommended). Mutually exclusive with subject_id.
resource_external_idNoYour system's own resource ID. Mutually exclusive with resource_id.
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 of behavioral disclosure. It explains the return value (decision, reason, policy) and implies a pure read/check operation with no side effects. While it does not mention error cases or rate limits, it provides sufficient transparency for typical use.

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

Conciseness4/5

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

The description is well-structured and front-loaded with the main purpose. Each sentence adds value, though it is slightly longer than necessary. No fluff, but could be marginally more concise.

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?

Given the absence of an output schema, the description adequately explains the return values. It covers both usage modes, clarifies optional vs required parameters, and provides enough context for the agent to use the tool correctly in various scenarios.

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?

Schema coverage is 100% with detailed descriptions for all 7 parameters. The description adds meaningful context beyond the schema by explaining the difference between type-level and instance-level checks, recommending external_id over UUID, and clarifying mutual exclusivity of ID fields.

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: 'Ask Vengtoo whether a subject can perform an action on a resource.' It specifies the return value (decision, reason, policy) and distinguishes itself from sibling tools like assign_policy, create_resource, etc., which serve different functions.

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?

The description provides explicit guidance on when to use external_id vs UUID, preferring external_id in production. It also clearly explains two usage modes: type-level checks (omit resource_id/external_id) and instance-level checks (set resource_id or resource_external_id). This helps the agent decide how to invoke the tool correctly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vengtoo/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server