diff_sessions

[Deprecated: Use aiobs_diff_sessions] Compare two AI agent sessions.

Server Shepherd MCP neuralis-in/shepherd-mcp
Category Read
Risk class Low
Parameters 00 required

What diff_sessions does on Shepherd MCP

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

Why diff_sessions needs a policy

This tool retrieves and compares session data from observability providers (Shepherd/Langfuse). Comparison is an analytical operation that queries existing data without side effects. No data is created, modified, deleted, or executed. The blast radius of misuse is limited to unauthorized information disclosure about AI agent sessions, which is a read-level risk.

From the tool's definition Tool description states it 'Compare[s] two AI agent sessions' - a query/analysis operation with no data modification, deletion, or execution of external operations.

Questions about diff_sessions

What does the diff_sessions tool do? +

[Deprecated: Use aiobs_diff_sessions] Compare two AI agent sessions. It is categorised as a Read tool in the Shepherd MCP MCP Server, which means it retrieves data without modifying state.

How do I enforce a policy on diff_sessions? +

Register the Shepherd MCP server in PolicyLayer and add a rule for diff_sessions: 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 Shepherd MCP. Nothing to install.

What risk level is diff_sessions? +

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

Can I rate-limit diff_sessions? +

Yes. Add a rate_limit block to the diff_sessions 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 diff_sessions completely? +

Set action: deny in the PolicyLayer policy for diff_sessions. 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 diff_sessions? +

diff_sessions is provided by the Shepherd MCP server (neuralis-in/shepherd-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// THE FULL RECORD

diff_sessions is one line of Shepherd's registry record.

The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

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.