Skip to main content
Glama

connect_metrics_source

Propose connecting the Prometheus-compatible metrics source Ankra derived from this cluster's installed addons (the one a query_prometheus refusal named). Pass EXACTLY the provider and endpoint from that refusal - both are re-derived server-side at execution and the call is refused on any mismatch, so never invent or edit them. The action requires an organisation admin's confirmation; on confirm the endpoint is first verified with the existing read-only probe (a failed probe writes nothing), then the source is registered in the resource graph as the cluster's prometheus_metrics source, inheriting GitOps, audit, drift detection and IaC export. An in-cluster Service endpoint needs no credential - the agent relay dials it from inside the cluster - so never ask the user for one. Do not use this to repair a misconfigured existing source. If the store runs OUTSIDE the cluster, or the derived endpoint does not match what the release actually renders, re-propose the correct endpoint with endpoint_is_operator_supplied=true: derivation only sees installed addons, so neither case can be derived and neither is a reason to refuse the connection. Admin confirmation and the read-only probe apply either way.

Input Schema

NameRequiredDescriptionDefault
endpointYesThe endpoint URL. Copy verbatim from the refusal's derived-candidate sentence, or supply the correct one with endpoint_is_operator_supplied=true when the store is external or the derived endpoint is wrong. Must be an http:// or https:// URL. Private and in-cluster addresses are fine; loopback, link-local (including the cloud metadata address) and multicast are refused.
providerYesThe provider. Copy verbatim from the refusal's derived-candidate sentence, or supply it with endpoint_is_operator_supplied=true.
cluster_idYesAnkra cluster id (UUID) the call targets. Discover ids with list_clusters.
endpoint_is_operator_suppliedNoSet true ONLY when a person supplied this endpoint rather than copying Ankra's derived candidate. Derivation reads INSTALLED ADDONS, so it cannot name a store running outside the cluster (a managed OpenSearch, a hosted Prometheus) - that is the case this exists for. It skips the derived-candidate equality check ONLY: organisation-admin confirmation and the read-only probe still run, and the confirmation shows the endpoint as supplied rather than derived. Never set it to pass off an endpoint you inferred yourself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only convey the mutate/non-idempotent/non-destructive profile; the description adds substantial context: org-admin confirmation is required, a read-only probe runs first and writes nothing on failure, and the registration produces a prometheus_metrics source inheriting GitOps, audit, drift detection and IaC export. It also states no credential is needed for an in-cluster endpoint. Strong behavioral disclosure, though it could clarify reversibility of the registration itself.

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?

Dense but front-loaded: the core action and the verbatim-copy constraint come first, then behavior, then the exception case. Every sentence carries operational information, though the length is at the upper bound and could be tightened.

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?

For a mutation tool with no output schema and a multi-step flow, the description covers the confirmation gate, probe, side effects, credential guidance and edge cases (external store, render mismatch). Nothing an agent needs to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: provider and endpoint must be copied verbatim from the refusal, are re-derived server-side, and any mismatch causes refusal. It also frames when endpoint_is_operator_supplied should be true. This is meaningful beyond what the schema alone states.

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 (propose connecting) and resource (Prometheus-compatible metrics source) and grounds it in an exact trigger ('the one a query_prometheus refusal named'). An agent can immediately distinguish this from connect_log_source or query_prometheus without opening the 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?

Explicitly names the triggering condition (a query_prometheus refusal naming a derived candidate), an explicit exclusion ('Do not use this to repair a misconfigured existing source'), and the alternative path (re-propose with endpoint_is_operator_supplied=true for external stores or render mismatches). Covers when, when-not, and alternatives.

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