Skip to content

Track MCP tool call arguments

Argument tracking records the values AI agents pass to your MCP server’s tools, one argument at a time. Every tool call is tracked: the tool, its result, its duration, the agent, the country and more. Argument values are not, unless you switch them on. Every switch starts off.

Track only values you are allowed to keep. Arguments often carry what a person typed: names, email addresses, messages, search terms. Don’t switch on an argument that may hold personal data unless your privacy notice and your users’ consent cover it. See Privacy and data.

Admins and Editors can change tracking. Viewers see the same switches, disabled (see Team and roles).

  • During setup, in the Tools step: each tool’s arguments have a Track value switch.
  • Afterwards, in Inspect: expand a tool. Its arguments table starts with a Track column, with a switch on each row that can be tracked. On a phone, each argument shows a Track value switch instead. Changes wait in the bar at the bottom of the page (“1 unsaved change”): choose Save to apply them, or Discard.

Recording starts with the next call after the change reaches the middleware, a few seconds after you save. Values are never recorded for calls made before, and turning a switch off stops recording from then on.

A tool your server no longer offers keeps its switches as they were, but they can’t be changed.

A value is recorded by its path: the argument’s name, and for a field of an object argument, the argument and the field joined by a dot. For a tool with query (text) and filters (an object with currency and price, itself an object with min and max):

PathTrack switchRecorded as
queryYesquery
filtersNoIts fields carry the switches
filters.currencyYesfilters.currency
filters.priceNoIt has fields of its own
filters.price.min, filters.price.maxNoToo deep

The rules, in full:

  • Tracking depth: one level. A value can be tracked at the top level of the arguments or one level below, as a field of a top-level object. Deeper fields are shown but have no switch.
  • An object with declared fields has no switch. Its fields carry them, so you record filters.currency without the rest of filters. A field one level down that has fields of its own can’t be tracked at all.
  • Free-form objects and lists of values are recorded whole, as JSON, at either level: a list of tags, for example.
  • Lists of objects can’t be tracked, whole or by their items’ fields.
  • Some names can’t be tracked. An argument whose name contains ., [ or ] shows “This argument’s name can’t be addressed”.

The table shows nested fields up to three levels below the arguments. Anything deeper is behind View in raw definition.

An object argument that was recorded whole before nested fields could be tracked keeps recording the whole object. Its row shows the switch on, with “Records the whole value” under its name. Turn it off and save to stop it; from then on the row has no switch, and you can track its fields instead. The recorded path then changes, from filters to filters.currency for example, so reports grouped by argument show the two separately.

  • The value as JSON text: a text value keeps its quotes ("EUR"), a number or a yes/no doesn’t.
  • At most 4 KB per value and 32 KB for all the values of one call. A longer value is cut, and the call is marked as truncated.
  • Nothing, when the call doesn’t include the argument or passes null on the way. The call goes through as usual: recording never breaks a call.

The Measure page doesn’t show argument values. Ask MCP Tower’s MCP server instead: its query_tool_calls tool groups and filters calls by a tracked value, written argument:<path>, for example “how many search calls per currency last week, and which currency fails most?” It needs the tool filter, because paths belong to one tool, and it accepts only paths that are switched on. See Use MCP Tower from your AI agent.

Argument tracking is separate from what agents read about your arguments. To change an argument’s description, see Overrides and MCP Tower prompts.