Skip to main content
Glama
OntoLayer MCP Server

OntoLayer MCP Server

by AshubShafqat

get_metric

Read a governed metric definition without executing it. Use this to inspect approved metric details and understand what a metric represents before calculation.

Instructions

Read a governed metric definition; this does not execute it.

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": {
      "metric_id": "<metric_id>"
    },
    "name": "get_metric"
  }
}

Input Schema

NameRequiredDescriptionDefault
metric_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It usefully discloses the most important trait — that this is a non-executing read of a definition, not a computation — but says nothing about the access implications of "governed" (permissions, visibility restrictions) or whether inaccessible metrics error versus return partial data.

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

Conciseness5/5

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

A single front-loaded clause states the action and its boundary with zero filler; there is no wording to remove.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Because an output schema exists, the description need not explain the returned definition, and the tool is a simple one-parameter read. Still, for a "governed" resource it omits the two things an agent most needs before calling: the identifier format and what happens when the metric is not visible to the caller.

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?

Schema description coverage is 0%, so the description must explain the single metric_id parameter, and it does not: no format, no indication whether it is an ID versus a fully qualified name, and no note on case or namespacing. One self-evident required string parameter keeps this from being a 1, but the coverage gap is unaddressed.

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 pairs the verb "Read" with a specific resource, "a governed metric definition," and adds a scope qualifier ("does not execute it") that separates it from an execution-style sibling such as query_metric. It does not name that sibling explicitly, so differentiation is implied rather than stated, which keeps it just below top marks.

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?

The clause "this does not execute it" implies the decision rule (fetch the definition here, compute values elsewhere), but the description never says when to prefer this tool or what the alternative is. Usage is inferable rather than instructed.

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