Skip to main content
Glama

generate_permission_model

Generate a granular permission model with entity scoping (global/tenant/resource), inheritance, migration SQL, and middleware

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": {
      "runtime": "<runtime>"
    },
    "name": "generate_permission_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
runtimeYes
scopingNo
entitiesNo
inheritanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses the output artifacts — migration SQL and middleware are generated alongside the model — which is real information beyond the schema. But it never says whether these are returned as text or written to disk, nor whether the operation has any side effects, which matters for a code generator.

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?

A single front-loaded sentence with the verb and resource first and the produced artifacts enumerated after. No filler, though the trailing list of features is a dense run-on that could be split for scanability.

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

Completeness2/5

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

For a 4-parameter generator with 0% schema coverage, no annotations, and no output schema, the description does too little. It omits the required runtime parameter entirely, leaves the entities parameter undefined, and gives no indication of return format or whether files are emitted.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It does explain the scoping parameter and its enum values (global/tenant/resource) and the inheritance flag, covering half the parameters. The 'entities' array and the required 'runtime' enum get no explanation in either place, leaving them opaque.

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

Purpose4/5

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

The description names a specific verb ('Generate') and resource ('granular permission model') and enumerates the artifacts it produces (entity scoping, inheritance, migration SQL, middleware). An agent can tell it produces a permissions design rather than a generic data model. It does not, however, distinguish itself from plausible siblings such as generate_abac_config or generate_api_key_auth.

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?

Usage is implied rather than stated: the mention of global/tenant/resource scoping and inheritance signals the multi-tenant RBAC scenario where this applies. There is no explicit when-to-use, no when-not-to-use, and no named alternative (e.g., ABAC config) that would help an agent choose between permission-modeling siblings.

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.