put_strategy_reaction_code_id
Update code reaction. PUT /api/v2/strategy/reaction/code/{id}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| body | Yes |
Update code reaction. PUT /api/v2/strategy/reaction/code/{id}
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| body | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is covered, but the description adds almost nothing on top of that. It does not explain PUT semantics (full replace vs. merge), what happens to body fields that are omitted, permission requirements, or side effects of changing code/signals on a running reaction.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
It is compact and front-loaded, so nothing is bloated. However, the second sentence is a raw endpoint string that adds negligible selection or invocation value on top of the tool name, and the overall brevity comes at the cost of substance rather than through efficiency.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool with a large nested body, two required top-level params, no output schema, and no annotation detail about side effects, the description is far too thin. An agent cannot learn from it whether the update replaces or merges fields, what the required data_webhook_id/code pair implies, or what to expect on success.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Top-level schema description coverage is 0%: neither id nor the body wrapper is described, and the description supplies no parameter meaning to compensate. The nested body properties do carry descriptions in the schema, which limits the damage, but the description itself contributes zero semantic detail about which fields are honored on update.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a verb and resource ("Update code reaction") but is essentially the tool name expanded, and it gives no way to tell this apart from close siblings such as put_strategy_reaction_llm_id, put_strategy_code_id, or the _public/_reset/_status variants. The appended HTTP path anchors it to an endpoint but does not clarify what a "code reaction" is or how it differs from an LLM reaction or a strategy code.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use or when-not-to-use guidance and no mention of alternatives, despite many near-identical put_* siblings for reactions, llm sessions, and strategies. An agent must infer from the name alone that this mutates an existing code reaction rather than creating, resetting, publishing, or toggling the status of one.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.