trace_file

Trace API usage in a single file. Detects HTTP calls, GraphQL queries, MCP tool calls, and response property access.

Server Trace MCP mnehmos/mnehmos.trace.mcp
Category Read
Risk class Low
Parameters 00 required

What trace_file does on Trace MCP

AI agents call trace_file to retrieve information from Trace MCP without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

Why trace_file needs a policy

The tool analyzes a file to identify API calls and response property access, but does not execute those calls, modify the file, or trigger any external operations. It is purely a detection and analysis tool for understanding data flow, making it a Read category tool with low severity since misuse would only expose information about code structure rather than causing destructive or operational impacts.

From the tool's definition Tool description states it 'Detects' and 'traces' API usage through static analysis—it performs inspection and extraction of code patterns without modifying any data.

Questions about trace_file

What does the trace_file tool do? +

Trace API usage in a single file. Detects HTTP calls, GraphQL queries, MCP tool calls, and response property access. It is categorised as a Read tool in the Trace MCP MCP Server, which means it retrieves data without modifying state.

How do I enforce a policy on trace_file? +

Register the Trace MCP server in PolicyLayer and add a rule for trace_file: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Trace MCP. Nothing to install.

What risk level is trace_file? +

trace_file is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit trace_file? +

Yes. Add a rate_limit block to the trace_file rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block trace_file completely? +

Set action: deny in the PolicyLayer policy for trace_file. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides trace_file? +

trace_file is provided by the Trace MCP server (mnehmos/mnehmos.trace.mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.