Skip to main content
Glama

Find a policy setting

find_policy_setting
Read-onlyIdempotent

Find a policy setting by the user's words: which fields of the policy it is, their current values (NOT_SET when the policy leaves a field out: it can still be set), where the portal's policy editor shows it (portalLocation) and how to change it. Policy reads leave unset fields out, so call this before saying a policy can't do something, that a setting doesn't exist, or where a setting is in the portal; name only the portalLocation it gives.

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>",
      "query": "<query>"
    },
    "name": "find_policy_setting"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesThe setting in the user's own words, any language ("keyboard microphone", "volume fixo em 50%", "papel de parede", "block USB").
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. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine domain behavior: policy reads omit unset fields, so NOT_SET means 'possibly still settable', which prevents a false negative. The remaining gap is that it does not say whether multiple matches can be returned or how ambiguous queries are handled.

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?

One dense sentence that front-loads the purpose and the returned artifacts, followed by a second sentence carrying the operational caveat and the anti-hallucination rule. The nested parenthetical about NOT_SET is a little tangled but every clause earns its place.

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 does the work of describing results (fields, current values, portalLocation, change instructions) and flags the key data-model caveat about unset fields. It is complete enough to call correctly, with only ambiguity handling and result cardinality left unstated.

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%, so query, policyId and company are already documented, including the note about free-form language in query. The description reinforces the natural-language intent of query but adds no format, length or scope detail beyond the schema, so the baseline applies.

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 and resource ('Find a policy setting') plus the resolution mechanism ('by the user's words') and enumerates what comes back: matching fields, current values, portalLocation, and how to change it. That is far more than a restatement of the name and separates it from a bulk settings reader like get_policy_settings, though no sibling is named explicitly.

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

Usage Guidelines4/5

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

Gives a concrete trigger ('call this before saying a policy can't do something, that a setting doesn't exist, or where a setting is in the portal') and a downstream constraint ('name only the portalLocation it gives'). It does not name a competing tool to use for the opposite case (e.g. reading all settings), so it falls short of full when/when-not routing.

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