CCAR-F practice › Tool Design & MCP Integration · Question 44 of 105
Tool Design & MCP Integration
An agent needs to change one timeout value in a YAML file that has three identical service blocks, each containing "timeout: 30". Its Edit call keeps failing. What should it do next?
Show answer and explanation
Answer: B — Read the full file, change only the intended block, and Write the file back
Edit needs anchor text that matches exactly one place. With three identical matches it fails every time. Read + Write is the reliable fallback: load the whole file, make the change with full context, and write it back (b). Retrying (a) or relocating the file first (c) fails the same way. Changing the user's configuration to suit the tool (d) is the wrong way around.
Keep going
More Tool Design & MCP Integration questions
- Before deprecating formatCurrency, an agent Greps for that name and finds 6 callers. A…
- In a research system, the analysis subagent has two tools: analyze_content, described as…
- A support agent has a tool whose entire description is "Queries the v2 inventory…
- A developer productivity agent has a web_search tool and an MCP code_search tool. Both…
- A support agent's lookup_order tool wraps its database call in a catch-all that returns…