Skip to content

Document Topic Discovery MCP tools in Agent Observability MCP page#37468

Merged
aniszoubiramar merged 1 commit into
masterfrom
anis.amar/llm-obs-mcp-topic-discovery-tools
Jun 15, 2026
Merged

Document Topic Discovery MCP tools in Agent Observability MCP page#37468
aniszoubiramar merged 1 commit into
masterfrom
anis.amar/llm-obs-mcp-topic-discovery-tools

Conversation

@aniszoubiramar

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Documents the 7 new Topic Discovery (Patterns) read MCP tools added to the llmobs toolset in dd-source#461008.

Changes to content/en/llm_observability/mcp_server.md:

  • Added "Exploring topic patterns" use case bullet
  • Added ### Topic Discovery tools subsection with all 7 tools (list_llmobs_pattern_configs, get_llmobs_pattern_config, get_llmobs_pattern_run_status, list_llmobs_pattern_runs, get_llmobs_patterns, get_llmobs_patterns_with_points, get_llmobs_pattern_points)
  • Added ### Topic Discovery analysis recommended workflow (5-step read flow)

Merge instructions

Merge readiness:

  • Ready for merge

Additional notes

Corresponds to dd-source PR #461008 ([2/3] feat(llm-obs-mcp): add Topic Discovery read MCP tools).

@github-actions

Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

@aniszoubiramar aniszoubiramar force-pushed the anis.amar/llm-obs-mcp-topic-discovery-tools branch 2 times, most recently from 3d97afe to 7151435 Compare June 15, 2026 07:49
@aniszoubiramar aniszoubiramar marked this pull request as ready for review June 15, 2026 07:52
@aniszoubiramar aniszoubiramar requested a review from a team as a code owner June 15, 2026 07:52
: Get the topic hierarchy for a run with span IDs inlined on each leaf topic. Set `include_metrics=true` to also include per-span duration, cost, token counts, and evaluations.

`get_llmobs_pattern_points`
: Get a cursor-paginated page of clustering points (individual spans) assigned to a single topic. Each point includes the `span_id`, `session_id`, a short input preview, and its `cluster_probability`. Pass `next_page_token` back as `page_token` to continue paging.

@CornetVincent CornetVincent Jun 15, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove the cluster_probability from the results for now. This is an artifact from the ML pipeline, it is no longer updated with the LLM pipeline (always 1.0).
Also when you say "a short input preview", do you truncate the preview in the BE ? because currently in Orgstore the entire input is stored

@aniszoubiramar aniszoubiramar Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — removed cluster_probability and I don't think we truncate the input in the backend as we use the same service functions as the /unstable endpoints

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

: List all completed Patterns runs for a config, newest first. Returns each run's `id`, `status`, timestamps, and the `config_snapshot` used.

`get_llmobs_patterns`
: Get the topic hierarchy discovered by a Patterns run. Topics are organized into levels, each with a `name`, `description`, `coherence_score`, and `point_count`. Omit `run_id` to read the most recent completed run.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for the coherence score. This is no longer computed, we should remove it from the results of the API

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — removed coherence_score from the description.

@aniszoubiramar aniszoubiramar force-pushed the anis.amar/llm-obs-mcp-topic-discovery-tools branch 2 times, most recently from 8b34d40 to ca7be20 Compare June 15, 2026 10:21
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aniszoubiramar aniszoubiramar force-pushed the anis.amar/llm-obs-mcp-topic-discovery-tools branch from ca7be20 to 41d0a33 Compare June 15, 2026 10:23

@gsvigruha gsvigruha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@aniszoubiramar aniszoubiramar merged commit fd176d0 into master Jun 15, 2026
28 checks passed
@aniszoubiramar aniszoubiramar deleted the anis.amar/llm-obs-mcp-topic-discovery-tools branch June 15, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants