Skip to main content
Glama

Open Direct Session

open_direct_session
Idempotent

Execute the canonical Direct Session open_direct_session operation. Requires an Authorization: Bearer header.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesCanonical model argument for the open_direct_session Direct Session operation.
offer_idYesCanonical offer id argument for the open_direct_session Direct Session operation.
delegation_idNoCanonical delegation id argument for the open_direct_session Direct Session operation.
max_spend_cptmYesCanonical max spend cptm argument for the open_direct_session Direct Session operation.
idempotency_keyYesRequired mutation idempotency key, shared across REST, MCP, and A2A.
duration_secondsYesCanonical duration seconds argument for the open_direct_session Direct Session operation.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesTrue when the upstream exchange call succeeded (HTTP status < 400).
dataYesCanonical open_direct_session result. Null when ok is false.
errorYesIn-band error code or message when ok is false; null on success.
statusYesUpstream HTTP status code returned by the Conductor Relay API.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed5 schema fields changed
    • addedInput schema / properties / delegation_id / description
      Added value: +"Canonical delegation id argument for the open_direct_session Direct Session operation."
    • addedInput schema / properties / duration_seconds / description
      Added value: +"Canonical duration seconds argument for the open_direct_session Direct Session operation."
    • addedInput schema / properties / max_spend_cptm / description
      Added value: +"Canonical max spend cptm argument for the open_direct_session Direct Session operation."
    • addedInput schema / properties / model / description
      Added value: +"Canonical model argument for the open_direct_session Direct Session operation."
    • addedInput schema / properties / offer_id / description
      Added value: +"Canonical offer id argument for the open_direct_session Direct Session operation."
  2. Added

TDQS

D1.7/5.0
Behavior3/5

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

Annotations already indicate this is a mutation (readOnlyHint=false) and idempotent (idempotentHint=true). The description adds the useful auth requirement ('Requires an Authorization: Bearer header'), which is extra context. However, it does not disclose side effects or what constituting an 'open' operation entails, so it only partially compensates.

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

Conciseness2/5

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

The description is short but not effective. The sentence 'Execute the canonical Direct Session open_direct_session operation' is wasteful repetition of the tool name; only the auth header clause is useful. It fails the principle that every sentence should earn its place.

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

Completeness1/5

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

With 6 parameters, 5 of them required, and an output schema present, this complex mutation tool needs a proper explanation of what the operation does and what the return value represents. The description provides none of that. An agent has virtually no context to decide when or how to invoke this tool.

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?

Although schema_description_coverage is 100%, every parameter description is a circular placeholder ('Canonical X argument for the open_direct_session Direct Session operation'). The tool description itself provides no additional meaning for parameters like offer_id, max_spend_cptm, or duration_seconds, leaving the agent without real semantic guidance.

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

Purpose1/5

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

The description is a tautology: 'Execute the canonical Direct Session open_direct_session operation' merely restates the tool name without explaining what opening a direct session actually does. It fails to distinguish this from siblings like get_direct_session or close_direct_session.

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

Usage Guidelines1/5

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

No guidance is given about when to use this tool versus alternatives such as approve_direct_session or claim_job. The description provides no context, prerequisites, or exclusions.

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.