Split override templates into a light index and a per-template detail tool - #4
Open
92Infinitus92 wants to merge 1 commit into
Open
Split override templates into a light index and a per-template detail tool#492Infinitus92 wants to merge 1 commit into
92Infinitus92 wants to merge 1 commit into
Conversation
Collaborator
Author
92Infinitus92
force-pushed
the
feat/mcp-template-index
branch
2 times, most recently
from
August 12, 2026 12:40
9ecf2de to
3ce7caa
Compare
92Infinitus92
marked this pull request as ready for review
August 12, 2026 12:40
92Infinitus92
force-pushed
the
feat/pump-protocol
branch
from
August 14, 2026 06:46
769af29 to
7cbe546
Compare
92Infinitus92
force-pushed
the
feat/pump-protocol
branch
from
August 17, 2026 08:33
bb33ae4 to
0606ab5
Compare
92Infinitus92
force-pushed
the
feat/mcp-template-index
branch
from
August 17, 2026 08:33
3ce7caa to
21bb8d3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
get_override_templatesreturned every template in full: properties, PDA layout, the whole constant catalog, and a ~160KB IDL inlined per template. An agent had to load all of that just to see what was available.This splits it in two:
get_override_templatesnow returns a light index - id, name, description, protocol, account type, tags, and ahasLlmContextflag. No properties, no IDL, no inlined options.get_override_template(templateId)returns one template's full detail, with each constant summarized as{label, description, optionsCount}instead of the raw option list.The flow is index → pick → detail →
search_constant_optionsfor a concrete value →create_scenario, and the guidance text walks the model through that order.Stacked on #3 (base
feat/pump-protocol); I'll retarget todeveloponce that merges.Greptile Summary
The PR replaces the full override-template listing with a lightweight index and adds a separate tool for retrieving one template’s details.
get_override_templatefor properties, address information, LLM context, and summarized constants.Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Sequence Diagram
sequenceDiagram participant Agent participant MCP as Surfpool MCP Agent->>MCP: get_override_templates() MCP-->>Agent: Lightweight template index Agent->>MCP: get_override_template(templateId) MCP-->>Agent: Properties, address, context, constant summaries Agent->>MCP: search_constant_options(templateId, constant, query) MCP-->>Agent: Concrete constant values Agent->>MCP: create_scenario(...) MCP-->>Agent: Registered scenario resultReviews (3): Last reviewed commit: "Split override templates into a light in..." | Re-trigger Greptile