Skip to main content
Glama

get_session

Read-onlyIdempotent

Check if the MCP server has an Odoo.sh session and report its source, user, and remaining seconds before expiry.

Instructions

Report whether the server has an Odoo.sh session, where it came from and who it belongs to.

Returns: whether a session is available, its source, its user and the seconds left before its max age. Touches: reads only Bounds: one request to Odoo.sh, none when there is no session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
problemYes
identityYes
availableYes
seconds_leftYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely new behavioral context beyond them: the request bound (one call to Odoo.sh, zero when no session exists), which tells the agent about cost and side-effect-free fallback behavior.

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?

Nicely front-loaded with labelled sections (Returns/Touches/Bounds) and each line is short. There is mild redundancy: the opening sentence's 'where it came from and who it belongs to' is restated as 'its source, its user' in the Returns line.

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

Completeness4/5

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

An output schema exists, so enumerating return fields is optional padding rather than required content. With annotations carrying the safety profile and the bounds line carrying the operational cost, the only real gap is the absence of guidance on when this check should be invoked relative to the sibling tools.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing for the description to disambiguate; baseline 4 applies. No parameter claims are made or needed.

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

Purpose5/5

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

States a specific verb (Report) and resource (Odoo.sh session) with the exact fields surfaced: availability, source, user, and seconds until max age. This is clearly separable from the build/branch/project/log siblings, none of which touch session state.

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 only implied — an agent can infer this is a diagnostic/authentication-state check to run before other Odoo.sh operations. There is no explicit when-to-use, no prerequisite statement, and no named alternative or condition for skipping it.

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