find_modern_equivalent
Use when the agent suspects the code it's about to write uses a deprecated API — e.g. tokio::Runtime::new() (now tokio::runtime::Runtime::new()), chrono::DateTime::from_str (now feature-gated), or any path that points to a yanked or RustSec-advisory'd crate version. The substrate returns the curr...
This record as markdown: /tools/dev-codeitall-codeitall/find-modern-equivalent.md
What find_modern_equivalent does on Codeitall
AI agents call find_modern_equivalent to retrieve information from Codeitall without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
language | string | — | |
deprecated_call | string | Yes |
Parameters from the server's own tool schema.
Why find_modern_equivalent is rated Low
This tool queries a behavioral oracle database to find alternative APIs and deprecation information. It retrieves and presents data (canonical alternatives, yank status, advisory information) without side effects. No code execution, data modification, deletion, or financial impact occurs. The 'if probed' phrasing indicates conditional information retrieval, not action execution.
From the tool's definition Tool performs lookup and retrieval operations: 'returns the current canonical alternative with a behavior summary if probed, and surfaces yank-status / advisory rows verbatim.' It searches for deprecated APIs and returns information about their modern…
Attacks that exploit this kind of access
The rule that runs find_modern_equivalent safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Codeitall, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For find_modern_equivalent, this is the rule to start with:
find_modern_equivalent is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Codeitall, apply this rule, and every find_modern_equivalent call is checked against it from then on.
Questions about find_modern_equivalent
Use when the agent suspects the code it's about to write uses a deprecated API — e.g. tokio::Runtime::new() (now tokio::runtime::Runtime::new()), chrono::DateTime::from_str (now feature-gated), or any path that points to a yanked or RustSec-advisory'd crate version. The substrate returns the current canonical alternative with a behavior summary if probed, and surfaces yank-status / advisory rows verbatim. For TypeScript/Next.js pass language='ts' with a deprecated Next.js API — e.g. next/router (now next/navigation), getServerSideProps (now an async Server Component), @next/font (now next/font), next/legacy/image (now next/image) — and the substrate returns the modern equivalent with the official upgrade-guide citation and how prevalent the deprecated vs modern form is across the live Next.js corpus. It is categorised as a Read tool in the Codeitall MCP Server, which means it retrieves data without modifying state.
find_modern_equivalent accepts 2 parameters: language, deprecated_call. Required: deprecated_call. The full parameter table on this page comes from the server's own tool schema.
Register the Codeitall MCP server in PolicyLayer and add a rule for find_modern_equivalent: 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 Codeitall. Nothing to install.
find_modern_equivalent is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the find_modern_equivalent 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.
Set action: deny in the PolicyLayer policy for find_modern_equivalent. 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.
find_modern_equivalent is provided by the Codeitall MCP server (https://api.codeitall.dev/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Codeitall, and thousands of servers like it.
This server
Across the catalogue