Skip to main content
Glama

implement_multi_tenancy

Generate multi-tenant data isolation strategy (row-level, schema, or database per tenant)

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": {
      "strategy": "<strategy>",
      "database": "<database>"
    },
    "name": "implement_multi_tenancy"
  }
}

Input Schema

NameRequiredDescriptionDefault
withRLSNoInclude PostgreSQL Row-Level Security policies
databaseYesTarget database
strategyYesIsolation strategy

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about output (files written? code returned?), side effects, or prerequisites such as an existing schema. The only behavioral signal is the verb "Generate", which implies non-destructive production but is never confirmed.

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 tightly packed sentence with the resource and its variants front-loaded and no filler. It is efficient, though the parenthetical list duplicates enum information already in the schema, so it is not maximally economical.

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 code/artifact-generating tool with no annotations and no output schema, the description should say what the agent receives back and whether anything is written. Neither is addressed, and no preconditions (e.g. an existing schema design) are stated.

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 coverage is 100% and both enum parameters are described in the schema, so the baseline of 3 applies. The description's parenthetical restates the strategy enum values but adds no constraints such as which databases support which strategy, or when withRLS should be set.

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?

States a specific verb+resource ("Generate multi-tenant data isolation strategy") and enumerates the three strategy modes in parentheses, so an agent knows the domain. What is missing is the artifact type — whether it emits DDL, migration scripts, config, or prose guidance — leaving the deliverable ambiguous.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance, and no mention of related siblings such as design_sharding_strategy, design_partition_strategy, or design_schema. The agent must infer from the name alone that this is the multi-tenancy path rather than a sharding or partitioning path.

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.