Skip to main content
Glama
OntoLayer MCP Server

OntoLayer MCP Server

by AshubShafqat

explain_policy_decision

Explains why an entity is visible or filtered by policy without revealing whether a hidden entity exists, so agents can justify access decisions safely.

Instructions

Explain visibility without revealing whether a hidden entity exists.

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": {
      "entity_id": "<entity_id>"
    },
    "name": "explain_policy_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose one genuinely important trait — the response is designed not to reveal whether a hidden entity exists — but it says nothing about permission requirements, how visible vs. hidden cases are reported, or what happens for nonexistent IDs. An output schema exists, which relieves some return-value burden, but the disclosure/safety semantics are only half-explained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with no filler, so it is concise, but the brevity comes at the cost of under-specification rather than efficiency. The key constraint is front-loaded, yet the sentence is cryptic enough that a reader must already know the tool to parse it.

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 security-sensitive policy tool with one undocumented parameter and no annotations, the description should cover prerequisites, what the explanation contains, and how hidden-vs-absent cases are handled. Only the anti-disclosure rule is stated. The output schema covers return shape, but the operational context an agent needs to invoke this safely and correctly is largely absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter entity_id has 0% schema description coverage, so the description must compensate and does not. It never clarifies what an entity_id refers to (ontology entity, concept, metric?) or what happens if the ID is unknown or hidden. The agent is left to infer parameter meaning entirely from the field name.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description conveys a topic ('visibility' and implicitly policy) but never states the action plainly: it does not say it returns an explanation of why a given entity is or isn't visible to the caller. The name supplies 'explain_policy_decision', yet the text reads as a constraint rather than a definition of what the tool returns. An agent can guess the domain but not the concrete output.

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?

There is no explicit when-to-use guidance and no mention of alternatives among the many siblings (get_concept, list_entities, check_answerable, find_path). The only usage signal is an implicit one: use this when you need an explanation but must not leak existence information. Nothing tells the agent when this is preferred over a direct entity lookup.

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