This commit is contained in:
2025-10-16 00:50:12 -03:00
parent 9d4db61af9
commit 06b1c17d5d
3 changed files with 481 additions and 1 deletions

View File

@@ -284,7 +284,7 @@ def _norm(s: str) -> str:
@mcp.tool()
async def find_compartment(query_text: str) -> dict:
"""
Find compartment ocid by the name
Find compartment ocid by the name, the compartment ocid is the identifier field
"""
structured = f"query compartment resources where displayName =~ '.*{query_text}*.'"
code, out, err = oci_cli.run(["search","resource","structured-search","--query-text", structured])