Skip to content

Add accountMetadata tool#69

Merged
derek-etherton-opslevel merged 1 commit intomainfrom
add-account-metadata
Jul 23, 2025
Merged

Add accountMetadata tool#69
derek-etherton-opslevel merged 1 commit intomainfrom
add-account-metadata

Conversation

@derek-etherton-opslevel
Copy link
Copy Markdown
Contributor

@derek-etherton-opslevel derek-etherton-opslevel commented Jul 22, 2025

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 accountMetadata tool. This returns (optionally) levels, tiers, lifecycles, and component types. It is all wrapped up in one tool to reduce bloat, and takes in a type argument so that the minimum required context can be added.

Checklist

  • I have run this code, and it appears to resolve the stated issue.
  • This PR has no user interface changes or has already received approval from product management to change the interface.
  • Make a changie entry that explains the customer facing outcome of this change.

Comment thread src/cmd/root.go
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."),
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.

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.

Copy link
Copy Markdown
Contributor

@wesleyjellis wesleyjellis left a comment

Choose a reason for hiding this comment

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

Works with claude code 👍

@derek-etherton-opslevel derek-etherton-opslevel merged commit 88b4855 into main Jul 23, 2025
2 checks passed
@derek-etherton-opslevel derek-etherton-opslevel deleted the add-account-metadata branch July 23, 2025 19:12
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.

2 participants