Add accountMetadata tool#69
Merged
derek-etherton-opslevel merged 1 commit intomainfrom Jul 23, 2025
Merged
Conversation
| mcp.NewTool( | ||
| "teams", | ||
| mcp.WithDescription("Get all the team names, identifiers and metadata for the OpsLevel account. Teams are owners of other objects in OpsLevel. Provide searchTerm when looking for a specific team by name."), | ||
| mcp.WithDescription("Get all team names, contact methods, and metadata for the OpsLevel account. Teams are owners of other objects in OpsLevel. Provide searchTerm when looking for a specific team by name."), |
Contributor
Author
There was a problem hiding this comment.
Unrelated improvement - I realized that my agent was unaware it could get contact info from a teams list tool call, so would sometimes start querying resourceDetails unnecessarily.
4ee2af2 to
de97cd7
Compare
3 tasks
wesleyjellis
approved these changes
Jul 23, 2025
Contributor
wesleyjellis
left a comment
There was a problem hiding this comment.
Works with claude code 👍
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.
This is a blocker for #68.
Problem
There is a bunch of account metadata that users won't necessarily want to query directly, but which is important context when calling other tools. For example, "Fetch services below gold level" is meaningless without being able to look up details about the account's levels.
Solution
Add an
accountMetadatatool. This returns (optionally) levels, tiers, lifecycles, and component types. It is all wrapped up in one tool to reduce bloat, and takes in atypeargument so that the minimum required context can be added.Checklist