feat: add NASA PSI agent tools (psi_api_tool + metadata_expansion_tool) - #116
Open
maf404 wants to merge 1 commit into
Open
feat: add NASA PSI agent tools (psi_api_tool + metadata_expansion_tool)#116maf404 wants to merge 1 commit into
maf404 wants to merge 1 commit into
Conversation
Add two tools under akd_ext/tools/psi/ for NASA's Physical Sciences Informatics (PSI) data repository, following the akd-ext BaseTool / @mcp_tool pattern: - psi_api_tool: one operation-multiplexed tool covering discover_investigations, get_investigation, search_files, navigate_dataset, retrieve_file, and lookup_publication (DataCite). - metadata_expansion_tool: enriches, caches, and ranks investigation metadata for candidate selection. All PSI endpoints are public (no auth). HTTP is async (httpx.AsyncClient), errors raise typed exceptions, and results are summarized by default with an opt-in response_mode for raw upstream JSON. Tests: 24 offline unit tests (httpx.MockTransport, no network) and 7 integration tests against the live PSI + DataCite APIs.
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.
Summary
Adds two tools under
akd_ext/tools/psi/for NASA's Physical Sciences Informatics (PSI) data repository, following theBaseTool/@mcp_toolpattern. All PSI endpoints are public — no API key required.psi_api_tool— one tool with anoperationselector:discover_investigations,get_investigation,search_files,navigate_dataset,retrieve_file, andlookup_publication(DataCite).metadata_expansion_tool— enriches, caches, and ranks investigation metadata for candidate selection.This mirrors the reference
psi-agent-toolsdesign (one API tool + one metadata tool) rather than one tool per operation.Notes
httpx.AsyncClient);httpxis already a transitive dependency, so nothing new is added.response_mode="raw"/"both"also returns the raw upstream JSON.Testing