New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

get_flag_registry

[SUPPORT] 45802b67 — scan a source tree for os.environ.get(...) / os.getenv(...) call sites (AST-based, not regex) and return a flat inventory of every config flag the codebase reads: {flag_name, file, line, default}. Only call sites where the flag name is a STRING LITERAL first argument are incl...

SERVERMeridian SOURCE@meridianmcp/mcp
Low RISK CLASS
Category Read
Parameters 10 required
Recommended Allowedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/io-github-ajc3xc-meridian/get-flag-registry.md

What get_flag_registry does on Meridian

AI agents call get_flag_registry to retrieve information from Meridian without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

ParameterTypeRequiredDescription
root_dir string Absolute path to the source-tree root to scan recursively (vendored/build/cache dirs like node_modules/.git/dist/__pycache__ are pruned). Defaults to the server

Parameters from the server's own tool schema.

Why get_flag_registry is rated Low

This tool performs static analysis of source code to extract metadata about environment variable access patterns. It has no side effects: it does not create, modify, delete, execute code, move money, or trigger external operations. It purely retrieves and inventories information from existing code. The 'best-effort' literal-eval and skipping of dynamic names confirms passive analysis.

From the tool's definition Tool description explicitly states it 'scan[s] a source tree for... and return[s] a flat inventory' of config flags. The verb 'scan' and 'return' indicate retrieval/query with no modifications.

Risk signalsBulk/mass operation — affects multiple targets

Questions about get_flag_registry

What does the get_flag_registry tool do? +

[SUPPORT] 45802b67 — scan a source tree for os.environ.get(...) / os.getenv(...) call sites (AST-based, not regex) and return a flat inventory of every config flag the codebase reads: {flag_name, file, line, default}. Only call sites where the flag name is a STRING LITERAL first argument are included — dynamic names (a variable, f-string, etc.) are skipped gracefully rather than erroring. The default is best-effort literal-eval'd from the second positional arg (or a default= keyword); a non-literal default evaluates to null. Useful for auditing config drift — 'what env flags exist, where are they read, what do they default to' — without grepping by hand. Returns {repo_root, flags:[...], count, unique_flag_names:[...], unique_count}. A missing/empty tree returns an empty flags list, never an error. It is categorised as a Read tool in the Meridian MCP Server, which means it retrieves data without modifying state.

What parameters does get_flag_registry accept? +

get_flag_registry accepts 1 parameter: root_dir. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on get_flag_registry? +

Register the Meridian MCP server in PolicyLayer and add a rule for get_flag_registry: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Meridian. Nothing to install.

What risk level is get_flag_registry? +

get_flag_registry is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit get_flag_registry? +

Yes. Add a rate_limit block to the get_flag_registry rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block get_flag_registry completely? +

Set action: deny in the PolicyLayer policy for get_flag_registry. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides get_flag_registry? +

get_flag_registry is provided by the Meridian MCP server (@meridianmcp/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Meridian, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Meridian's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.