Câu 36: CCA-F: Claude Certified Architect - Foundations
Your MCP server includes archive_file(file_id) and delete_file(file_id) tools. Production logs show the agent calls delete_file when users ask to “remove old backups,” but company policy requires archiving backup files. Both tools currently have minimal descriptions: “Archives a file” and “Deletes a file.” Which chang…
Nội dung câu hỏi
Your MCP server includes archive_file(file_id) and delete_file(file_id) tools. Production logs show the agent calls delete_file when users ask to “remove old backups,” but company policy requires archiving backup files. Both tools currently have minimal descriptions: “Archives a file” and “Deletes a file.” Which change most directly improves tool selection for this scenario?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Expand tool descriptions to clarify use cases, adding guidance like “Do not use for backup files” to delete_file. — đáp án hiện tại
- B. Add a confirmation step that requires users to type “CONFIRM DELETE” before delete_file executes.
- C. Implement server-side validation that rejects delete_file calls for files tagged as backups, returning an error message suggesting archive_file.
- D. Add few-shot examples to the system prompt demonstrating that requests involving “backup” or “old” should use archive_file.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.