Skip to main content
Glama

List policies

list_policies
Read-onlyIdempotent

List every policy defined in the authenticated company, or with query those matching it, with overview information (path name, display name, description, version, policy group, deviceCount). deviceCount is the number of devices on the policy (0 when none), not counting deleted or reprovisioned ones. Configuration detail of each policy is excluded: read one policy's with get_policy_document or get_policy_settings.

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": "list_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoOptional. Only the policies whose path name, name or policy group contains this text (case-insensitive). Use it to find a policy a long list left out.
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description still adds real context: the exact return shape, that deviceCount is 0 when empty and excludes deleted/reprovisioned devices, and that configuration payloads are deliberately omitted. It stops short of describing pagination or result limits for very large fleets, which is the remaining behavioral gap.

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?

Front-loads the core action and keeps the return-field list and the sibling routing tight. However, the opening clause is grammatically tangled ("or with query those matching it, with overview information") and "read one policy's with get_policy_document" is missing a word, which costs readability on first pass.

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?

With no output schema, the description correctly compensates by enumerating returned fields and clarifying deviceCount semantics, and it names where excluded configuration detail lives. Only pagination or result-size behavior is unaddressed for a potentially long list.

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 100%, so both `query` and `company` are already fully documented, including the case-insensitive match against path name, name, and policy group. The description only restates the matching behavior and adds a usage hint, so the baseline 3 is appropriate.

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?

Opens with a specific verb and resource ("List every policy") and pins the scope to the authenticated company, plus an enumerated tuple of the overview fields returned. It also explicitly distinguishes itself from get_policy_document and get_policy_settings, which handle per-policy configuration.

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?

States both when to use the query parameter ("Use it to find a policy a long list left out") and when not to use this tool at all, routing the agent to get_policy_document or get_policy_settings for configuration detail. The alternative-selection condition is explicit rather than inferred.

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.

Resources