Skip to main content
Glama

writ_policies

Lists tenant policy objects as a gate payload—default policy plus environment and principal overrides—so agents can inspect applicable write controls.

Instructions

List every policy object for the tenant.

Returns the gate payload verbatim: the tenant default first (scope "tenant"), then each configured per-environment override (scope "environment"), then each per-principal override (scope "principal" with principalId). Environments without an override are not listed; checks naming them evaluate against the tenant default.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "writ_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.28

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and largely meets it: it discloses the exact ordering of results (tenant, then environment, then principal), the scope values and principalId field, and the important fallback rule that non-overridden environments resolve to the tenant default. It does not state whether the call requires particular permissions or whether it is strictly read-only, which keeps it short of a 5.

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 purpose comes first, followed by the shape of the payload, so the definition is front-loaded and free of filler. The phrase 'gate payload verbatim' is somewhat internal jargon, but the rest of the paragraph immediately explains it, so the cost is small.

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?

For a zero-parameter list tool with an output schema, the description is close to sufficient: it explains ordering, scope taxonomy, and fallback semantics that an agent would otherwise have to reverse-engineer from results. The main omission is the relationship to the sibling policy tools, which would help an agent decide between enumerating and fetching a single policy.

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?

The tool takes zero parameters, so there is no parameter meaning to add and the baseline of 4 applies. The description does not waste space restating a schema that has nothing in it.

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 opens with a specific verb and resource — 'List every policy object for the tenant' — which is unambiguous about what the tool returns. It does not explicitly distinguish itself from the singular siblings writ_policy, writ_policy_env, and writ_policy_principal, so the agent must infer that this is the bulk-enumeration counterpart.

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 by 'List every policy object' and the note that environments without an override are omitted, which hints at when the result will be sparse. However, there is no explicit 'use this instead of writ_policy when...' guidance or statement of prerequisites, leaving the agent to work out the relationship to the single-policy siblings on its own.

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