Skip to main content
Glama
Tellagen MCP Server

Tellagen MCP Server

Official
by Tellagen

tellagen_build_source_link

Read-onlyIdempotent

Turn an evidence source into a clickable Grafana or GitHub link, or a kubectl command when no browser URL exists, ready to paste into evidence_refs[].links[].

Instructions

Build the clickable link (or copyable command) for an evidence source, to put in evidence_refs[].links[]. Grafana Explore, panel and trace links come from the Grafana address that Tellagen sent when you picked the run up, else GRAFANA_URL in the MCP environment, else the Tellagen Grafana datasource; GitHub compare, commit, pull request, Actions run (ci_run) and release links come from repo and the GitHub address Tellagen sent. Kubernetes and other sources without a browser URL return a command or guidance instead. Calls only the Tellagen API, puts no credentials in a URL, and returns {links:[{kind,label,url}]} that you copy into the ref unchanged.

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": {
      "kind": "<kind>"
    },
    "name": "tellagen_build_source_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoRange end, same formats as from
shaNoCommit sha (commit)
tagNoRelease tag (release)
baseNoBase ref or sha (diff)
fromNoRange start: an ISO instant, epoch milliseconds or a relative time like now-6h. Defaults to the start of the run window (the incident window for a run with no window) when a run is active or investigation_run_id is given, otherwise now-1h. Stay inside the window when you look for the cause
headNoHead ref or sha (diff)
kindYesexplore = Grafana Explore for a Prometheus query; logs = Grafana Explore for a Loki query; trace = Grafana Explore for a Tempo trace id; panel = a Grafana dashboard panel; diff = GitHub compare; commit = GitHub commit; pr = GitHub pull request; ci_run = a GitHub Actions run or job; release = a GitHub release. ci_run and release links need diagnosis_changes_v1 on the run.
repoNoGitHub repository as owner/name
queryNoThe PromQL / LogQL query for explore and logs, or the trace id for trace
job_idNoGitHub Actions job id, to open the failing job of the run (ci_run)
org_idNoGrafana org id; left out of the link when not given
run_idNoGitHub Actions run id, as in /actions/runs/<id> (ci_run)
sourceNoThe evidence source name you use in the ref (for example "kubernetes-logs"). Kubernetes and other sources without a browser URL return a command or guidance instead of a link.
k8s_urlNoA k8s://context/<ctx>/namespace/<ns>/<kind>/<name> reference to turn into a kubectl command (source: kubernetes)
panel_idNoGrafana panel id (panel)
connectorNoName of the Tellagen Grafana datasource when several are configured
pr_numberNoPull request number (pr)
datasourceNoGrafana data source uid (or name) the query ran against; Explore opens that data source
github_urlNoGitHub Enterprise base address; defaults to the GitHub address Tellagen sent with the pickup, else https://github.com
dashboard_uidNoGrafana dashboard uid (panel)
investigation_run_idNoRun whose window is the default time range (read from its pickup or context). Defaults to the run this session picked up

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial context beyond the readOnly/idempotent/closed-world annotations: it discloses the address resolution order (Tellagen-supplied Grafana address, then GRAFANA_URL, then the Tellagen datasource), that it calls only the Tellagen API, that no credentials end up in the URL, and that Kubernetes sources fall back to a command rather than a link. It also states the exact return shape {links:[{kind,label,url}]}, which matters since there is no output schema.

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?

Purpose is front-loaded in the first clause, and the following sentences handle link provenance, fallback behavior and return shape. It is dense and reads as one long block, but no sentence is filler.

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 21-parameter builder with no output schema, the description covers what is produced, how addresses are resolved, the non-URL fallback, the security posture, and the return object. An agent has enough to call it correctly and to know what to do with the result.

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% across 21 parameters, so the baseline is 3; the description still adds meaning by explaining where repo, github_url, connector and time-window defaults come from, which the per-field text only hints at. It stops short of walking through the kind-specific parameter pairing (e.g. job_id vs run_id), which the enum description covers instead.

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 and resource: "Build the clickable link (or copyable command) for an evidence source", and names the exact destination (evidence_refs[].links[]). This is a construction/utility tool clearly distinct from investigative siblings like tellagen_build_figure or tellagen_get_finding.

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?

The description makes clear this is the step that produces the link you paste into a ref, so the context of use is unambiguous. It doesn't name an alternative tool or state when-not-to-use, so it falls short of a 5, but no exclusions are needed for a deterministic builder.

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