Skip to main content
Glama

Bowmark web data: LinkedIn, Amazon, YouTube, Reddit, Airbnb, Instagram

Call one Bowmark function and keep the session open for the next call

session_call
Destructive

Runs ONE library function in a Bowmark session, so a flow that needs several calls in the SAME session can finish: a booking that texts the user a code, a cart filled over several steps, a form that waits on an answer from the user. run cannot do these, because every run starts fresh and nothing it held survives to the next run.

path is the function as a script writes it after bowmark., split on the dots: ["providers","opentable","startBooking"]. args are its arguments, in order. Look both up in get_library first. Omit sessionId on the first call: a session opens and its sessionId comes back. Pass that sessionId on every later call so it runs in the same session. A session runs one call at a time: never send parallel calls to the same sessionId with Promise.all. Each call waits for the previous one. For parallel work, open separate sessions or use run instead.

The answer is { sessionId, ok, status, result, logs, error?, code? }. status is ok, error or needs_user. needs_user pauses only this call for a sign-in and the session stays open: give the user meta.handoff.url, then repeat the call. A session closes itself after a few idle minutes, so ask the user for anything you need (a texted code) right away and make the next call as soon as they answer. Functions that decide per call whether they need a browser, including web_form_fields, must go through run, not session_call. Call session_close when the task is done.

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": {
      "path": "<path>"
    },
    "name": "session_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoThe function's arguments, in order, exactly as a script passes them.
pathYesThe function to call, as the path a script writes after `bowmark.`: `["providers","opentable","startBooking"]` for `bowmark.providers.opentable.startBooking`.
sessionIdNoThe `sessionId` an earlier `session_call` returned. Omit it on the first call and a new session opens.

Output Schema

NameRequiredDescriptionDefault
okNoTrue when the call completed without an error.
errorNoWhat went wrong, when it did.
runIdNoThe run's id; pass it back to resume or collect it.
resultNoWhat the call returned.
statusNoHow the call ended: `ok`, `partial`, `error`, `paused`…
messageNoWhy the call failed, when `ok` is false.
expiresAtNoWhen an idle session ends (ISO 8601).
sessionIdNoPass it to the next `session_call` and to `session_close`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "error": {
      +      "description": "What went wrong, when it did."
      +    },
      +    "expiresAt": {
      +      "description": "When an idle session ends (ISO 8601).",
      +      "type": "string"
      +    },
      +    "message": {
      +      "description": "Why the call failed, when `ok` is false.",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "True when the call completed without an error.",
      +      "type": "boolean"
      +    },
      +    "result": {
      +      "description": "What the call returned."
      +    },
      +    "runId": {
      +      "description": "The run's id; pass it back to resume or collect it.",
      +      "type": "string"
      +    },
      +    "sessionId": {
      +      "description": "Pass it to the next `session_call` and to `session_close`.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "How the call ended: `ok`, `partial`, `error`, `paused`…",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations, which only flag destructive/openWorld/non-idempotent. It discloses the one-call-at-a-time serialization rule with an explicit Promise.all warning, the idle-timeout expiry, the `needs_user` pause-and-resume flow including `meta.handoff.url`, and the excluded function class that must use `run`. Those are the operational traits an agent would otherwise discover only by failing.

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?

Front-loaded with the core distinction from `run`, then follows a sensible order: path/args, sessionId lifecycle, concurrency rule, return shape, expiry, exclusions. Dense but nearly every sentence carries a constraint; the bolding and a small amount of restatement ('one call at a time' then 'each call waits') are acceptable for a high-risk tool.

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

Completeness5/5

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

Complete for a complex session-orchestration tool: it covers setup, continuation, return shape, the `needs_user` pause/resume branch, timeout behavior, concurrency limits, excluded functions, and teardown. With an output schema present, restating the response fields is extra but harmless, and nothing an agent needs to call it correctly is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the dotted-path convention with a concrete mapping (`["providers","opentable","startBooking"]` → `bowmark.providers.opentable.startBooking`), positional `args`, and the requirement to resolve both via `get_library` first. It reinforces rather than duplicates the sessionId semantics.

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 and resource ('Runs ONE library function in a Bowmark session') and immediately pins the scope that distinguishes it from `run` ('every run starts fresh and nothing it held survives'). An agent can route between `run` and `session_call` from the first two sentences alone.

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

Usage Guidelines5/5

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

Gives explicit when-to-use cases (booking that texts a code, multi-step cart, form awaiting an answer), explicit when-not (parallel work, functions that decide per call about browsers such as `web_form_fields`), and names the alternatives (`run`, separate sessions). It also prescribes the exact session lifecycle: omit `sessionId` first, pass it thereafter, and call `session_close` when done.

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.