Skip to main content
Glama

suggest_reallocation

Read-onlyIdempotent

Replaces a drifted site in a shortlist with better candidates from the same shortlist, offering same-region and cross-region alternatives. Handles systemic drift by recommending cross-region swaps.

Instructions

When a saved site DRIFTS (its national standing dropped — surfaced by get_shortlist refresh or a set_shortlist_alert firing), get replacement candidates from the rest of that shortlist so the alert becomes an action, not just a warning (Phase 5). Returns TWO tiers — tier_1_same_region (a near-in tactical swap) and tier_2_cross_region (a different-region arbitrage) — each re-scored against the DRIFTED slot's own objectives, PLUS drift_is_systemic: if the rest of your shortlist also slipped, the drop is region/baseline-wide and a same-region swap will inherit it (prefer cross_region); if peers held, it's idiosyncratic (tactical_ok). DC Hub does the reduction; the final weighted pick is yours. Candidates come from THIS shortlist only (save more via save_to_shortlist to widen the pool). Scoped to your API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shortlist_nameNoThe shortlist to re-allocate within (created via save_to_shortlist)
drifted_site_refNoOptional site_ref of the drifted slot to replace; if omitted, the current lowest-scoring site is treated as the drifted one
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate readOnlyHint=true and destructiveHint=false, which the description aligns with by stating the tool 'returns' candidates without modification. The description adds significant behavioral context: the two-tier output, drift_is_systemic analysis, and scoping to the API key, going beyond what annotations provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph of about 150 words, which is verbose but well-structured. It front-loads the purpose but includes many details. It could be more concise without losing clarity, but it remains readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of output schema, the description adequately outlines what the tool returns (two tiers, drift analysis). It explains the logic and constraints (scoped to shortlist, API key). Some details about response format are omitted, but the behavioral description is thorough enough for an AI agent to understand the tool's role.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by explaining shortlist_name as created via save_to_shortlist and drifted_site_ref as optional with a default behavior (lowest-scoring site). This clarifies semantics beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly explains that the tool finds replacement candidates when a saved site drifts, with specific context (Phase 5, triggered by get_shortlist refresh or set_shortlist_alert firing). It distinguishes between two tiers and drift analysis, making the purpose highly specific and actionable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states when to use the tool: when a saved site drifts. It also notes that candidates come from the current shortlist only and suggests using save_to_shortlist to widen the pool, providing clear context. No explicit exclusions are given, but the trigger conditions are well-defined.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/azmartone67/dchub-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server