Skip to main content
Glama
vengtoo

@vengtoo/mcp-server

by vengtoo

assign_policy

Assign a policy to a subject, role, or group to grant access. Use optional start and end times for time-based access control.

Instructions

Assign a policy to a subject, role, or group. This is what actually grants access — creating a policy alone does nothing until it is assigned.

entity_type must be "subject", "role", or "group".

For time-boxed (JIT) access: set expires_at. For future-dated access: also set starts_at.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entity_idYesUUID of the subject, role, or group
policy_idYesPolicy UUID
starts_atNoRFC3339 timestamp when the assignment becomes active. If omitted, active immediately.
expires_atNoRFC3339 timestamp when the assignment expires. If omitted, does not expire.
entity_typeYesWhat type of entity to assign the policy to
Behavior4/5

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

No annotations provided, but the description explains the behavior of starts_at and expires_at, and notes that assignment is what grants access. It lacks mention of potential error conditions or idempotency, but is otherwise transparent.

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 concise with three short paragraphs. The main purpose is front-loaded, and every sentence adds value. No unnecessary text.

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 no output schema and no annotations, the description covers essential information: what the tool does, required parameters, and optional parameters with timing semantics. It does not mention return values or error cases, but for a mutation tool this is acceptable.

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 baseline is 3. The description adds practical usage context for entity_type and time-based parameters (JIT vs future-dated), which goes beyond the schema's property descriptions.

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 assigns a policy to a subject, role, or group, and explains that creating a policy alone does nothing until assigned. This distinguishes it from create_policy and other sibling tools.

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?

Explicitly specifies entity_type must be 'subject', 'role', or 'group', and provides guidance on when to use starts_at and expires_at for time-boxed access. It also implies when to use this tool (after creating a policy) versus other tools.

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