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.