Skip to main content
Glama

update_session

Merge newly answered trip fields into this guest's saved context.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "request": "<request>"
    },
    "name": "update_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is largely covered. The word 'merge' adds real value by signaling a partial, non-destructive update rather than a wholesale replacement, which the annotations alone do not convey. It stops short of explaining what happens to fields not supplied, whether array fields like requirements are replaced or appended, or what occurs with an expired/invalid session token.

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 tight sentence with no filler, and the key concept (merge into saved context) is front-loaded. Its brevity is efficient rather than padded, though that same brevity is what leaves the gaps noted in other dimensions.

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

Completeness3/5

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

An output schema exists, so return-value explanation is unnecessary, and annotations cover the mutation safety profile. For a stateful, credentialed mutation on a session store, though, the description omits session validity/expiry behavior and merge semantics for existing fields, leaving an agent to infer how partial updates behave.

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% and the single top-level parameter wraps a nested Update object containing session credentials (session_id, session_token) plus the Trip change set. The description only gestures at the 'trip fields' portion and says nothing about the session identifier/token requirement, nor about which trip fields are updatable or the null-versus-omitted semantics defined in the schema.

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?

The description names a specific operation (merge) and resource (trip fields into the guest's saved session context), which is clearer than a bare restatement of the name. It does not explicitly contrast with get_session or begin_session, but the merge framing is distinctive enough to separate it from a pure read or session-creation tool.

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?

Usage is implied by 'newly answered trip fields', suggesting this is called incrementally as the guest supplies details during a session. There is no explicit when-not guidance, no mention of required preconditions such as an active session, and no named alternative for full replacement versus incremental merge.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources