New Tool Radar

AI Concepts

How to Log and Review MCP Tool Calls After a Session

Record which tools were called, with what arguments, and check each call against the task before the next session.

Schematic with three steps: Capture the calls as they happen; Check each call against the task; Record the verdict for next time.

A tool call is an action taken on your behalf, and without a record you cannot tell afterwards what a server did. The specification requires hosts to obtain explicit user consent before invoking a tool, and it warns that token passthrough without audience validation breaks the audit trail, since the downstream logs then show the wrong identity. Keep your own record: which tool, which arguments, and whether the result matched the task.

What you need

  • A client that shows or logs tool calls, or the MCP Inspector monitoring view
  • The task the session was meant to do
  • A note of which tools are allowed to write

Step 1: Capture the calls as they happen

During the session, note each tool name and its arguments, or save the client log. The MCP Inspector monitoring sidebar shows the JSON-RPC exchange while you work, which is the most complete record.

Step 2: Check each call against the task

After the session, go through the list and confirm every call served the task you set. A call to a tool the task never needed, or with arguments outside the task, needs an explanation.

Step 3: Record the verdict for next time

Write down which tools behaved, which were blocked, and whether any approval rule should change. If a tool acted beyond its approval rule, disconnect the server until the cause is found.

Worked example: synthetic audit of one session

The table below is a synthetic example. It shows the expected result of auditing a session; no session was logged.

Tool call Arguments Verdict
search_contacts name: Alice Served the task
create_task title: Follow up Approved, served the task
delete_record id: 42 Not in the task – blocked
list_files folder: notes Served the task

Expected result (UNTESTED). 3 of 4 calls served the task, and the delete call was blocked because it was never part of the task. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • If a server passes tokens without validating their claims, the downstream logs may show the wrong identity, which makes incident investigation harder.
  • A log only helps if you read it: review the calls before the next session, not after a problem appears.
  • The Inspector record is a test record; a production client needs its own logging.
  • Keep logs that contain personal data under the same access control as the data itself.

Sources

See all