Skip to main content
Glama

Get policy document

get_policy_document
Read-onlyIdempotent

Get a policy's full configuration as JSON, or the part at a path: Wi-Fi networks (openNetworkConfigurations), passwords, restrictions, system updates, the launcher, time and geo fences, app configurations and everything else. Secrets read as {"redacted": true}. Use it before propose_policy_change with edits, for anything get_policy_settings doesn't list. Without a path, apps are summarized: read /apps/ for one app's configuration. lockedFields lists what agents can't change. version (the portal's number) and changedAt say when the policy was last saved.

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": {
      "policyId": "<policyId>"
    },
    "name": "get_policy_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOptional JSON Pointer to read one part, e.g. /openNetworkConfigurations or /apps/com.example.app/managedConfigurations (an app by package name). Leave out for the whole policy, apps summarized.
searchNoOptional, when reading /phoneContacts, /libraryFiles or /vr: list only the attachable items whose name or id contains this text.
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.
policyIdYesThe policy's path name - the unique identifier returned by list_policies as "pathName".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent annotations: it discloses that secrets are returned as {"redacted": true}, that apps are collapsed to summaries unless a path is supplied, that lockedFields identifies agent-immutable fields, and what version/changedAt mean. These are exactly the behaviors an agent needs to interpret a read result correctly.

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 purpose and packs in several high-value facts in a few sentences. It is dense and slightly list-like in the field enumeration ('and everything else'), but almost every clause carries operational information rather than filler.

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

Completeness5/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 carries the burden of explaining the return shape and does so: JSON whole-policy vs. path slice, redacted secrets, summarized apps, lockedFields, version and changedAt. That is sufficient for an agent to call it and interpret the response without guessing.

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 path, search, company and policyId are already fully documented, and the description largely restates those examples rather than adding new semantics. It does reinforce the default summarized-apps behavior, which is minor added value over the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource ('Get a policy's full configuration as JSON') plus the partial-read mode via path, and explicitly distinguishes itself from sibling get_policy_settings ('for anything get_policy_settings doesn't list'). An agent can tell which tool to reach for without opening either schema.

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?

Gives explicit when-to-use ('before propose_policy_change with edits'), an explicit gap-filling condition versus get_policy_settings, and a concrete follow-up recipe ('read /apps/<packageName> for one app's configuration') when the default app summary is insufficient. No exclusion is left to inference.

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