Skip to main content
Glama

Osty Plane 1 Public Intelligence

Explain .osty/policy.yaml

explain_osty_policy
Read-onlyIdempotent

Parse and validate an .osty/policy.yaml (apiVersion osty.io/v1, kind FleetPolicy) against Osty's hard safety floors with the same deterministic engine as osty.dev/tools/policy-builder: agentic migrations capped at VERIFIED_PR, mandatory GitLab CI forbidden paths, dual-control broad rollback, proxy failure modes, canary soak and cooldown bounds, plus an optional organisation floor whose settings the repo policy may only tighten. Returns valid, errors, warnings, an effective summary and the hard floors. No code is executed and no model is called.

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": {
      "policyYaml": "<policyYaml>"
    },
    "name": "explain_osty_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgFloorNoOptional organisation floor to enforce: none (default, same as osty policy validate) or osty-reference (the reference floor shown at osty.dev/tools/policy-builder).
policyYamlYesFull text of the .osty/policy.yaml document.
orgFloorYamlNoOptional custom organisation floor policy text; the repo policy may only tighten it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioural context beyond that: it names the deterministic engine used ('same deterministic engine as osty.dev/tools/policy-builder'), states that no code is executed and no model is called, and enumerates the dimensions being enforced (migration caps, forbidden CI paths, dual-control rollback, proxy failure modes, canary soak/cooldown bounds, org floor).

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?

Two tight sentences, front-loaded with the core action and terminated by the return contract and the no-execution guarantee. The inline list of enforced floors is dense but all of it is substantive specification for a validation tool, so it earns its place; a semicolon-spliced sentence is the only readability cost.

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?

There is no output schema, but the description compensates by stating the return shape: 'valid, errors, warnings, an effective summary and the hard floors.' Combined with the read-only annotations and full schema coverage, an agent has enough to call this correctly, missing only explicit failure-mode or error-partial-report semantics.

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% and all three parameters, including the orgFloor enum, are documented in the schema. The description adds only one unit of meaning beyond that: the orgFloorYaml constraint that 'the repo policy may only tighten it,' for which the schema text partially overlaps. Baseline 3 applies when the schema does the heavy lifting and the prose adds little.

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: 'Parse and validate an .osty/policy.yaml (apiVersion osty.io/v1, kind FleetPolicy) against Osty's hard safety floors.' The scope and validation target are unambiguous, though the name 'explain' and the body 'parse and validate against floors' are slightly different framings, and no sibling is named as an alternative (the listed siblings are unrelated CVE/package tools, so differentiation is not really needed).

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 context: you call this when you have a policy.yaml that needs validation against Osty's safety floors. However, there is no explicit when-to-use or when-not-to-use statement, no mention of prerequisites, and no pointer to an alternative for the neighbouring checks in the family. The one clarifying note, that the org floor may only tighten the repo policy, is a constraint rather than routing guidance.

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.