Skip to main content
Glama

opencode_session_share

Destructive

Share an OpenCode session publicly by providing its session ID, enabling others to access and collaborate on the session.

Instructions

Share a session publicly

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSession ID to share
directoryNoAbsolute path to the project directory. When provided, the request targets that project. If omitted, the OpenCode server uses its own working directory.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
textYes
isErrorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/5.0
Behavior2/5

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

The description adds no behavioral detail beyond what annotations already declare (readOnlyHint=false, destructiveHint=true). It doesn't disclose side effects (e.g., whether the session becomes permanently public, if it requires authentication, or if it affects other users). The annotations cover the mutation aspect, but the description fails to add context about consequences or reversibility.

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?

The description is a single, concise sentence with no redundant words. It is appropriately sized for a simple operation and avoids unnecessary elaboration, earning full marks for conciseness.

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

Completeness2/5

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

The description is too sparse for a mutating tool with no output schema details. It doesn't explain the effect of sharing (e.g., creation of a public URL), whether the operation is reversible (though a sibling unshare exists), or any prerequisites (e.g., session existence). Given annotations indicate destructive behavior, the description should provide more context but does not.

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

Parameters3/5

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

The schema already provides complete descriptions for both parameters (id and directory) with 100% coverage. The description does not mention parameters at all, so it adds no value beyond the schema. Baseline of 3 is appropriate since the schema carries the semantic load.

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 'Share a session publicly' clearly states the action (share) and the resource (a session) with a specific scope (publicly). It distinguishes from the sibling tool opencode_session_unshare by implying the opposite action. However, it doesn't elaborate on what 'publicly' entails (e.g., generating a link, making it visible to all), which is a minor ambiguity.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives like opencode_session_unshare or other session management tools. The description doesn't mention prerequisites, conditions, or when not to use it. The agent must infer usage from the name alone.

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

Deploy Server

Other Tools