Agents Can Fix Their Own Argument Typos, If the Server Tells Them
Dated article; use the maintained reference for current instructions. Example version: FrontMCP 1.13.2. Technical checks recorded: 2026-11-27. How checks work.
An agent asked a build tool to wait half an hour. It kept getting an answer after 45 seconds. On one team’s servers, the agent made the same call 420 times across 192 sessions. The team’s bug report
The tool expected a timeout in seconds, under timeoutSec. The agent sent milliseconds under timeoutMs. The tool’s Zod schema dropped the unknown key, so every call used the default. Nothing in the reply told the agent what had gone wrong.
Since FrontMCP 1.13.0, the reply names the ignored argument and suggests a close match for a top-level typo, and since 1.13.2 for a nested one. Here that gives the agent a way to correct both the spelling and the units on its next call.
The team worked around the typo by converting timeoutMs to seconds and rejecting any other unknown key in an Around('validateInput') hook.
What the agent sees since FrontMCP 1.13
In this Playground, build-42 is a simulated build that takes ten minutes. The tool answers immediately with the status a real wait would see. With the default warn policy, the Call tab shows two lines. The tool reports that the build is still running. FrontMCP tells the agent it ignored timeoutMs and suggests timeoutSec.
build-42 is still running after 45 s.
These arguments are not declared and were ignored: 'timeoutMs' (did you mean 'timeoutSec'?).
The Tests tab sends the corrected call. It uses timeoutSec: 1800, so the build fits within the thirty-minute wait. The whole reply is build-42 finished after 600 s.
The server logs each ignored key once per tool. It compares names without regard to case, so it also suggests timeoutSec for TimeoutSec. The closest name qualifies if it takes at most one edit per two characters of the longer name.
Try waitMinutes on the same build. Neither taskId nor timeoutSec is close enough. The wait still uses 45 seconds, and the last line is These arguments are not declared and were ignored: 'waitMinutes'.
Refusing calls with unknown arguments
An ignored timeout can mean another wait call. An ignored filter on a delete tool could mean deleting every record. Set input.undeclaredKeys to "fail" to reject unknown keys before the tool runs. The same timeoutMs call now gets INVALID_INPUT with this message.
Unknown arguments: 'timeoutMs' (did you mean 'timeoutSec'?)
A tool's setting overrides its app's, and the app's overrides the server's. Set the policy to "strip" to drop unknown keys silently as in 1.12 and earlier. Each line below shows a setting on a separate class.
@FrontMcp({ info, apps: [TeamApp], input: { undeclaredKeys: "fail" } }) // every tool on the server
@App({ id: "team", name: "Agent team", tools, input: { undeclaredKeys: "fail" } }) // every tool in the app
@Tool({ name: "wait_for_task", description, inputSchema, input: { undeclaredKeys: "fail" } }) // one tool
Here the server sets "fail". The tests record which calls reach the wait tool. The list stays empty for timeoutMs. Sending timeoutSec: 1800 puts build-42 on the list. The read-only list_tasks tool overrides the server with "warn", so it still returns tasks when a call includes an unknown limit.
FrontMCP adds the warning to content. A client that forwards only structuredContent gives the model the task list without the warning. A refused call returns an error with no structuredContent.
Nested keys since FrontMCP 1.13.2
To find running tasks, the agent can filter the team's list by status. This Playground calls list_tasks with { filter: { stauts: "running" } } on the team server from the first example. FrontMCP drops stauts, so the tool returns both tasks, including the finished one.
Since 1.13.2, FrontMCP looks inside filter for a close match and suggests its full path. The example opens on its Wire tab, because the Call tab shows only the two tasks from structuredContent. The reply's last text line is These arguments are not declared and were ignored: 'filter.stauts' (did you mean 'filter.status'?). Before 1.13.2, that line named filter.stauts without a suggestion. SDK change #1486
Array items get suggestions too. When the items of a lines array declare sku, an undeclared SKU in one of them is named lines[].SKU, with the suggestion lines[].sku. Under "fail", the refusal names the same path and suggestion: Unknown arguments: 'filter.stauts' (did you mean 'filter.status'?).
Where this can go next
What if the agent fixes the key but keeps the milliseconds? The wait tool caps timeoutSec at 3,600. Sending timeoutSec: 1800000 on 1.13.2 gets INVALID_INPUT, and the error includes Too big: expected number to be <=3600. A subtler mistake would pass that check. Thirty seconds fits the schema even when the user asked for thirty minutes.
Design sketch. We're exploring a plugin that makes a decision about the values before the tool runs. It would hook the same validateInput stage the #1481 team used, after the keys are checked, and decide one of three things: let the call run, answer with a suggested correction, or ask a person through elicitation to approve it first. A refund fifty times the account's usual amount might warrant that question. We haven't committed to a release or an API.
CodeCall already reviews calls in a script. For an integer parameter, a literal limit: "20" gets needs_changes with the suggestion limit: 20. In the review example, a destructive call gets needs_approval, and the run pauses for a person to approve it.
A tool can already ask the user a question during a call through elicitation. To require a person's approval before a tool runs, use the Approval plugin. The approval lesson shows how to record the user's answer.
What we checked
The team that filed #1481 counted the calls on their own servers. We didn't replay those sessions. Our Playgrounds run on FrontMCP 1.13.2 in Node and in the browser. The tests check what the server returns for the typo and for the corrected call. They don't measure how often a model reads the hint and fixes its next call.
Try it
Pick a tool whose Zod schema gives an optional field a default value. Change the case of that key and send the call. With "warn", the tool uses the default and the last text block names the ignored key. Correct the spelling and compare the two replies.
Tools that take JSON Schema input, such as those from a remote app or the OpenAPI adapter, keep extra arguments. The input policy reference covers which tools the check applies to.