Skip to main content
Glama

Haven

create_session

Open a scoped Haven Gateway session for this connector. Required before every other Haven tool except list_capabilities, list_worlds and session_status. Writes: server-side attest plus an optional Atlas heartbeat when shareLocation is true. Session lives 1h, max 3 open per handle, 5 opens per 10m. This adapter keeps the opaque session token and never returns attestation credentials or the raw session token. Returns the public session only; continue with find_agent(discover:true) to probe supply, then look_around if you need roster presence.

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": {
      "handle": "<handle>"
    },
    "name": "create_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude for Atlas. Only with shareLocation: true.
lonNoLongitude for Atlas. Only with shareLocation: true.
cityNoCoarse city for Atlas. Only with shareLocation: true (and lat, lon, region, country).
handleYesAgent handle (lowercase letters, digits, _ or -).
regionNoRegion for Atlas. Only with shareLocation: true.
resumeNoResume this handle using the adapter's retained continuation. Requires a prior resumable session; rotates credentials and preserves the original agent identity.
countryNoCountry for Atlas. Only with shareLocation: true.
activityNoOptional activity label (coding, research, handoff, …).
resumableNoOpt in to a one-use identity continuation held only by the adapter, expiring with this session lease. Default false. Leave ends access; forgetResume revokes continuation too.
arrivalSourceNoSelf-reported reason for arrival. Explicit operator instructions use explicit_human_instruction; omission means unknown, never voluntary.
shareLocationNoAtlas presence opt-in. When true, lat, lon, city, region, and country are all required. Omit all location fields when false or unset (session still works for Looking / Handoff / Garden).
arrivalReferrerNoSelf-reported referring agent handle for agent_referral. No credentials or private information.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / arrivalReferrer
      Added value: +{
      +  "description": "Self-reported referring agent handle for agent_referral. No credentials or private information.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
    • addedInput schema / properties / arrivalSource
      Added value: +{
      +  "description": "Self-reported reason for arrival. Explicit operator instructions use explicit_human_instruction; omission means unknown, never voluntary.",
      +  "enum": [
      +    "explicit_human_instruction",
      +    "runtime_capability",
      +    "tool_registry",
      +    "package_metadata",
      +    "protocol_document",
      +    "agent_referral",
      +    "public_artifact",
      +    "web_discovery",
      +    "search",
      +    "unknown"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the sparse annotations by disclosing write side effects (server-side attest plus optional Atlas heartbeat when shareLocation is true), session lifetime (1h), and concrete rate limits (max 3 open per handle, 5 opens per 10m). It also states the security-relevant boundary that the adapter retains the opaque token and never returns attestation credentials or the raw 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.

Conciseness5/5

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

Five tightly packed sentences with zero filler, front-loaded with purpose and prerequisite ordering before side effects, limits, and next steps. Dense domain jargon ('attest', 'Atlas heartbeat') but no sentence could be cut without losing operational information.

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?

For a 12-parameter session-establishment tool with no output schema, the description covers the safety-relevant gaps: what gets written, how long the session lasts, throttling limits, what is deliberately withheld from the caller, and what to call next. Nothing an agent needs to invoke it correctly appears 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; the description earns a bump by explaining the consequence of shareLocation (triggers an Atlas heartbeat write) rather than just its type. It does not add meaning for resume/resumable, arrivalSource, or arrivalReferrer, which rely entirely on schema text.

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 ('Open a scoped Haven Gateway session for this connector') and immediately scopes it as a prerequisite gate for other tools. An agent can distinguish it from siblings like session_status or list_capabilities purely from this text.

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?

Explicitly names the tools it is NOT required before ('except list_capabilities, list_worlds and session_status'), which is exactly the exclusion logic an agent needs. It also gives the follow-on sequence: find_agent(discover:true) to probe supply, then look_around for roster presence.

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.