Urgent.News

What's breaking now, across thousands of outlets.

Tech

AWS Agent Registry: How Runtime Tool Discovery Replaces Hardcoded Agent Wiring

Hardcoded tool catalogs break when your agent needs to choose between 200 MCP servers instead of five. AWS Agent Registry solves this by moving tool discovery from build time to runtime. Instead of compiling every available tool into your orchestrator, agents query a semantic registry to find the right MCP server or A2A agent when they need it. The pattern is a three-step loop: Discover (semantic…

Hardcoded lists of tools become problematic when the number of available options grows from five to hundreds. The AWS Agent Registry tackles this issue by moving the process of choosing a tool from compile-time to runtime. Instead of embedding every possible tool into an orchestrator, agents dynamically query a semantic registry to find the best match for the required functionality at the moment it is needed.

The decision-making process follows three steps: Discover, Instantiate, and Execute. In the Discover phase, the orchestrator receives a user request and creates a semantic query outlining the desired capability. In Semantic Search, the registry performs a vector similarity search across the descriptions of all available tools to locate the best match.

After selecting a tool in the Instantiate phase, the orchestrator starts the chosen tool and establishes a connection. Finally, in the Execute phase, the orchestrator runs the tool, receives the results, and proceeds with the workflow.

The registry is designed to store essential metadata about each tool, including its unique identifier, a natural language description, input and output schema definitions, endpoint configuration, version information, and tags for filtering. The description field is particularly important as it enables semantic search to differentiate between tools with similar purposes. A well-crafted description should clearly explain the tool's function, key parameters, and any constraints.

When the orchestrator needs to choose between multiple tools that cover similar functionalities, additional disambiguation logic is applied. This may involve filtering tools based on tags or metadata, ranking tools using signals like usage frequency or latency history, and employing fallback prompts where an LLM can make a final selection decision. While the additional latency introduced by this process is usually negligible, it becomes significant in low-latency applications.

To manage the complexity of tool discovery, the registry implements caching mechanisms. Tool metadata and connection handles are stored locally after the first discovery, and query embeddings for common intents can be pre-computed and cached. Version drift is addressed by validating the cached schema against the live schema on each invocation and using semantic versioning to track changes in input/output schemas.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Designing Idempotent Retail APIs: Preventing Duplicate Orders During Retries

A customer places an order. The ERP creates it, but the connection drops before the ecommerce platform receives confirmation. The ecommerce platform retries the request.

  • Idempotent APIs prevent duplicate orders during retries.
  • Idempotency keys generated by clients help servers recognize retries.
  • Atomic transactions ensure order creation and record saving consistency.

Hibernate Under the Hood. Part 7: Performance and Common Pitfalls

Performance issues are rarely the fault of Hibernate itself; more often, they are caused by its misuse. The key to success is identifying these issues before they manifest in production.

  • Enable SQL and Hibernate statistics logging to uncover performance issues
  • Address N+1 problem with JOIN FETCH, batch fetching, or DTO projections
  • Disable OSIV in production to avoid unexpected queries and connection pool issues

DRY vs WET Code: When Repeating Yourself Is Actually Better

Every developer has heard the advice: "Don't Repeat Yourself." But what if following that principle too aggressively makes your code harder to maintain?

  • DRY principle advocates minimizing code duplication.
  • WET approach, or Write Everything Twice, embraces code repetition.
  • Rule of Three suggests evaluating duplication at three points.

More from Wednesday 21 October →