Skip to main content
Glama

Get Diff Session

app_get_session

Fetches a complete DiffSession payload by session ID, letting an app inspect all recorded changes and related diff data in one response.

Instructions

App-only tool to fetch the complete DiffSession payload.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "app_get_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations at all, the description carries the full behavioral burden, and it supplies only that the tool is app-only and returns a "complete" payload. It says nothing about read-only nature, permissions, what happens for an unknown or missing session, or the shape/size of the returned payload.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One compact sentence with the key qualifier ("App-only") and the outcome ("complete DiffSession payload") front-loaded. It is efficient and free of filler, though its brevity shades into under-specification handled in other dimensions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a retrieval tool with no annotations and no output schema, the description should at least sketch what the returned payload contains and how sessionId is used. Neither is covered, so an agent knows the tool's label but not how to call it safely or what it will get back.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single sessionId parameter, so the description must compensate and does not. It never mentions sessionId, how it identifies the session, or — notably — what happens when it is omitted, given the schema marks zero required parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Fetch the complete DiffSession payload" gives a specific verb (fetch) and resource (DiffSession), and the word "complete" implicitly contrasts with the sibling app_get_raw_diff. It stops short of naming that sibling, so differentiation relies on inference from the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"App-only tool" conveys an eligibility constraint, which is useful context for an agent deciding whether it can call this at all. However, there is no explicit when-to-use rule, no when-not-to-use, and no named alternative despite app_get_raw_diff and open_diff_viewer existing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.