[ts-morph] Add, remove, or reorder parameters of a function/method/arrow-function and propagate the matching argument changes to every call site in the project. When to use - Adding a required parameter to a function with many callers (LLM single-edit reliably misses some — this tool guarantees e...
AI agents invoke change_signature_by_tsmorph to trigger actions in MCP ts-morph Refactoring Tools. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
This tool performs broad, programmatic modifications across an entire codebase — rewriting function signatures and updating all call sites. While the changes are technically reversible (via version control), the scope of automated multi-file edits makes it an Execute-class tool with high severity due to the blast radius: a misconfigured invocation could silently corrupt function signatures and arguments across the…
From the tool's definition 'Add, remove, or reorder parameters of a function/method/arrow-function and propagate the matching argument changes to every call site in the project'
Risk signalsBulk/mass operation — affects multiple targets
Documented attack patterns abuse exactly the kind of access change_signature_by_tsmorph gives an agent:
PolicyLayer is an MCP gateway — it sits between your AI agents and MCP ts-morph Refactoring Tools, and nothing reaches the server without passing your rules. This is the rule we recommend for change_signature_by_tsmorph:
{
"version": "1",
"default": "deny",
"tools": {
"change_signature_by_tsmorph": {
"limits": [
{
"counter": "change_signature_by_tsmorph_rate",
"window": "minute",
"max": 10,
"scope": "grant"
}
]
}
}
} change_signature_by_tsmorph stays usable, but rate-capped — a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
Free to start. No card required.
[ts-morph] Add, remove, or reorder parameters of a function/method/arrow-function and propagate the matching argument changes to every call site in the project. When to use - Adding a required parameter to a function with many callers (LLM single-edit reliably misses some — this tool guarantees every call site is updated via the type checker). - Removing or reordering parameters of a function that is imported, re-exported, or accessed through a method chain. - Inserting a context-like first parameter (\. It is categorised as a Execute tool in the MCP ts-morph Refactoring Tools MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the MCP ts-morph Refactoring Tools MCP server in PolicyLayer and add a rule for change_signature_by_tsmorph: 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 MCP ts-morph Refactoring Tools. Nothing to install.
change_signature_by_tsmorph is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the change_signature_by_tsmorph 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 change_signature_by_tsmorph. 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.
change_signature_by_tsmorph is provided by the MCP ts-morph Refactoring Tools MCP server (sirosuzume/mcp-ts-morph). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Start from MCP ts-morph Refactoring Tools, add the rest of your stack, and see everything your agents can call. Then put policy on all of it.
Free to start. No card required.
8 MCP ts-morph Refactoring Tools tools catalogued and risk-classified — across an index of 43,000+ MCP servers.