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

get_flag_drift

[MAINTENANCE] 8ca89e8f — read side of link_flag_to_section: for every recorded flag link (optionally scoped to one doc / element_id / flag_name — pass flag_name alone with no doc for the REVERSE query 'flag X changed, which sections does it touch'), re-scan the CURRENT codebase (same AST scan as ...

SERVERMeridian SOURCE@meridianmcp/mcp
Low RISK CLASS
Category Read
Parameters 60 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-drift.md

What get_flag_drift does on Meridian

AI agents call get_flag_drift 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
doc string Optional: scope to links recorded against one stored document (the doc source you ingested it under).
root_dir string Absolute path to the source-tree root to re-scan for current flag defaults (same as get_flag_registry's root_dir). Defaults to the server's current working dire
flag_name string Optional: scope to links recorded for one flag name — the reverse query, omit 'doc' to search project-wide.
element_id string Optional: scope to links recorded against one specific doc_elements id.
project_id string
project_name string Project name — an alternative to project_id; resolved to the id internally. project_id wins if both are given.

Parameters from the server's own tool schema.

Why get_flag_drift is rated Low

Despite the complex maintenance operation, get_flag_drift is fundamentally a Read operation: it retrieves flag link records, scans the AST (analysis), and diffs values to detect drift. It does not create, modify, delete, or execute external code—only reports discrepancies.

From the tool's definition Tool performs 're-scan' and 'diff' operations on recorded flag links against current codebase state. Description states it reads flag registry, compares defaults, and reports status—purely informational analysis with no modifications to data or system state.

Risk signalsBulk/mass operation — affects multiple targets

Questions about get_flag_drift

What does the get_flag_drift tool do? +

[MAINTENANCE] 8ca89e8f — read side of link_flag_to_section: for every recorded flag link (optionally scoped to one doc / element_id / flag_name — pass flag_name alone with no doc for the REVERSE query 'flag X changed, which sections does it touch'), re-scan the CURRENT codebase (same AST scan as get_flag_registry) and diff each link's recorded default against what the flag defaults to NOW. Only the most recently recorded link per (element, flag) pair is diffed — a re-verified section's older links are history, not live claims. Each result carries status: 'removed' (the flag, or this exact call site, no longer exists — the strongest staleness signal), 'drifted' (the flag still exists but its default changed since this section was computed — the section is possibly stale, needs re-verification), or 'ok' (no evidence of drift found). Returns {project_id, root_dir, links:[{...link fields, current_default, current_call_sites, status}], summary:{ok, drifted, removed}}. No recorded links returns an empty list, never an error — this is advisory, not a hard gate. 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_drift accept? +

get_flag_drift accepts 6 parameters: doc, root_dir, flag_name, element_id, project_id, project_name. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on get_flag_drift? +

Register the Meridian MCP server in PolicyLayer and add a rule for get_flag_drift: 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_drift? +

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

Can I rate-limit get_flag_drift? +

Yes. Add a rate_limit block to the get_flag_drift 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_drift completely? +

Set action: deny in the PolicyLayer policy for get_flag_drift. 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_drift? +

get_flag_drift 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.