Skip to main content
Glama

Get tracing setup steps

get_trace_setup
Read-onlyIdempotent

Returns setup steps to send OpenTelemetry traces from tools like Claude Code, Codex, Python, or Node to a LastPing monitor, including key lines and verification.

Instructions

Requires the read scope or higher. Returns the steps that make a tool send OpenTelemetry traces to one monitor: what to write and where, how to verify it, and the tool's limits. For setting up tracing, observability or telemetry. prompt is the full set-up procedure for the named tool, credential handling included. Each block has files, a key_line (the terminal line that stores the tracing key the person creates on the monitor's Connect page) and, for Claude Code and Codex, a reviewable bang_script run with bang_command.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolNoWhich tool sends the traces: claude-code, codex, gemini, antigravity, cursor, python, node, otel-sdk or collector. Omitted: every block.
monitor_idYesMonitor UUID (from create_monitor or list_monitors).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.17
    • changedInput schema / properties / tool / description
      Previous value: -"Which tool will send the traces: claude-code, codex, gemini, antigravity, cursor, python, node, otel-sdk or collector. Omit to get every block."New value: +"Which tool sends the traces: claude-code, codex, gemini, antigravity, cursor, python, node, otel-sdk or collector. Omitted: every block."
  2. Changed2 schema fields changedv0.1.16
    • changedInput schema / properties / tool / description
      Previous value: -"Which tool will send the traces: claude-code, codex, gemini, cursor, python, node, otel-sdk or collector. Omit to get every block."New value: +"Which tool will send the traces: claude-code, codex, gemini, antigravity, cursor, python, node, otel-sdk or collector. Omit to get every block."
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "claude-code",
      -  "codex",
      -  "gemini",
      -  "cursor",
      -  "python",
      -  "node",
      -  "otel-sdk",
      -  "collector"
      -]New value: +[
      +  "claude-code",
      +  "codex",
      +  "gemini",
      +  "antigravity",
      +  "cursor",
      +  "python",
      +  "node",
      +  "otel-sdk",
      +  "collector"
      +]
  3. Addedv0.1.6

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld=false, so the safety profile is covered; the description adds real value beyond that by naming the required scope and disclosing credential handling (the tracing key the user creates on the Connect page). It stops short of describing failure modes or rate limits.

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?

Front-loads the permission requirement, then purpose, then return shape; every sentence carries information and nothing is padded. It is a single dense paragraph, so scannability is slightly reduced but not wasteful.

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?

With no output schema, the description compensates by spelling out the returned blocks and their fields (`files`, `key_line`, `bang_script`/`bang_command`), so an agent knows exactly what it will get. Combined with the stated prerequisite and tool-targeting behavior, nothing needed to call it correctly is missing.

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%, so both parameters are already documented (including the 'Omitted: every block' behavior for `tool`), which sets the baseline at 3. The description's detail about `prompt`, `key_line` and `bang_script` describes return fields rather than adding parameter semantics.

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 precise verb and resource: 'Returns the steps that make a tool send OpenTelemetry traces to one monitor,' then enumerates the content (what to write and where, how to verify, limits). This is clearly distinguishable from adjacent tools like get_ping_instructions or get_trace_diagnostics without opening a schema.

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?

Gives explicit usage context ('For setting up tracing, observability or telemetry') and a prerequisite ('Requires the read scope or higher'), which tells the agent when this tool applies. It does not name an alternative or state when-not to use it, so it falls short of a 5.

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