Skip to content

SEAB-7740 Shrink TRS version lists - #9

Closed
denis-yuen wants to merge 2 commits into
feature/trs_thin_prototypefrom
feature/trs_tweaks
Closed

denis-yuen wants to merge 2 commits into
feature/trs_thin_prototypefrom
feature/trs_tweaks

Conversation

@denis-yuen

@denis-yuen denis-yuen commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Description
Working through https://medium.com/@vsmalladi/validating-scientific-workflows-with-ai-agent-skills-8e8531a20957 I added a few more tweaks to make things more efficient by stripping out and summarizing some information at the MCP level.

Generated summary follows:
Monorepo workflows such as broadinstitute/warp have a version for every branch and tag, so version lists overflow an agent's context. list_tools/search_tools summaries now cap version names at 10, production-ready first, and add version_count and versions_truncated: a ReblockGVCF search drops from 57 KB to about 5 KB. list_tool_versions gains summary, returning only name, meta_version and is_production (793 KB → 151 KB).

Review Instructions
Stacked on #6; review the last two commits. On prod with summary: true, search_tools for ReblockGVCF should show WARP's version_count 1433 and versions_truncated: true, and list_tool_versions for #workflow/github.com/broadinstitute/warp/ReblockGVCF should return three fields per version. Before/after numbers are in the comments.

Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-7740 (paging follow-up: https://ucsc-cgl.atlassian.net/browse/SEAB-7771)

Security and Privacy

None

  • Security and Privacy assessed

e.g. Does this change...

  • Any user data we collect, or data location?
  • Access control, authentication or authorization?
  • Encryption features?

Please make sure that you've checked the following before submitting your pull request. Thanks!

  • Check that you pass the basic style checks and unit tests by running make check
  • Ensure that the PR targets the correct branch. Check the milestone or fix version of the ticket.
  • If you are changing dependencies, check the Snyk status check or the dashboard to ensure you are not introducing new high/critical vulnerabilities
  • Assume that arguments passed to a tool can be malicious, and sanitize and/or check for Denial of Service type values, e.g., massive sizes
  • Do not log or return secrets/credentials in a tool's response, error message, or debug output
  • If this PR is for a user-facing feature, create and link a documentation ticket for this feature (usually in the same milestone as the linked issue). Style points if you create a documentation PR directly and link that instead.

🤖 Generated with Claude Code

Monorepo workflows such as broadinstitute/warp have a version for every
branch and tag of the repository, so a summary of one ReblockGVCF search
was 57 KB, 94% of it version names. Summaries now list at most 10 names,
production-ready versions first, plus version_count and versions_truncated
so callers know when the list is incomplete. The same search is now 5 KB.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@denis-yuen denis-yuen self-assigned this Sep 24, 2026
Monorepo workflows list a version for every branch and tag of their
repository: broadinstitute/warp's ReblockGVCF has 1,433, a 793 KB
response. With summary, each version is just its name, meta_version and
is_production, which brings that entry down to 151 KB. Paging through the
versions is left to a follow-up ticket, since Dockstore's TRS endpoint
ignores limit and offset.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@denis-yuen denis-yuen changed the title Cap version names in list_tools/search_tools summaries Keep TRS version lists small: cap summary version names, add list_tool_versions summary Sep 24, 2026
@denis-yuen denis-yuen changed the title Keep TRS version lists small: cap summary version names, add list_tool_versions summary SEAB-7740 Shrink TRS version lists Sep 24, 2026
@denis-yuen
denis-yuen marked this pull request as ready for review September 24, 2026 20:10
@denis-yuen
denis-yuen requested review from a team and svonworl and removed request for a team and svonworl September 24, 2026 20:10
@denis-yuen
denis-yuen marked this pull request as draft September 24, 2026 21:40
@denis-yuen denis-yuen mentioned this pull request Sep 24, 2026
7 tasks done
@denis-yuen

Copy link
Copy Markdown
Member Author

merged into #12 while reducing tools

@denis-yuen denis-yuen closed this Sep 25, 2026
@denis-yuen
denis-yuen deleted the feature/trs_tweaks branch September 25, 2026 17:04
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.

1 participant