Skip to main content
Glama

set_docs_shared

Destructive

Set who can read a line's generated API docs. Use the lowest level that achieves what the user asked for: link is enough to share with specific people. Set public only when the user has explicitly asked for public docs, and pass userApprovedPublic: true to confirm it. off: only project members, through the panel. link: anyone holding the unguessable address in docsUrl reads them without an account; search engines and AI crawlers are asked to stay out. public: anyone can read them at a stable address, and search engines and AI assistants can find them. replaceLink: true (only with link, on a line already shared by link) retires the current address at once, even in draft mode, and returns the new docsUrl. The docsSharing and docsUrl fields on each line read (list_lines) reflect the current state. Requires edit access.

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": {
      "lineKey": "<lineKey>",
      "level": "<level>"
    },
    "name": "set_docs_shared"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelYesWho can read the docs: off, link or public.
lineKeyYesThe line key, e.g. "v1".
commitModeNoDefaults to publish. Draft writes require draftRevision.
replaceLinkNotrue to replace the current link with a new one; valid only with level "link" on a line already shared by link. Takes effect at once, never staged.
draftRevisionNoCurrent line draft revision, required for draft writes.
userApprovedPublicNoRequired as true to move a line to level "public" from another level; confirms the user explicitly asked for public docs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / enabled
      Removed value: -{
      -  "description": "true to publish the line's public docs; false to take them down.",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / level
      Added value: +{
      +  "description": "Who can read the docs: off, link or public.",
      +  "enum": [
      +    "off",
      +    "link",
      +    "public"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / replaceLink
      Added value: +{
      +  "description": "true to replace the current link with a new one; valid only with level \"link\" on a line already shared by link. Takes effect at once, never staged.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / userApprovedPublic
      Added value: +{
      +  "description": "Required as true to move a line to level \"public\" from another level; confirms the user explicitly asked for public docs.",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "lineKey",
      -  "enabled"
      -]New value: +[
      +  "lineKey",
      +  "level"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / commitMode
      Added value: +{
      +  "description": "Defaults to publish. Draft writes require draftRevision.",
      +  "enum": [
      +    "draft",
      +    "publish"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / draftRevision
      Added value: +{
      +  "description": "Current line draft revision, required for draft writes.",
      +  "type": "integer"
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag readOnlyHint=false and destructiveHint=true, and the description adds substantive context beyond that: replaceLink 'retires the current address at once, even in draft mode,' plus the access requirement ('Requires edit access') and the crawler policy per level. This tells the agent exactly what gets destroyed and when.

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-loads the purpose, then walks level-by-level in a predictable order with no filler sentences. It is dense and semicolon-heavy, with slight duplication of the replaceLink constraint already in the schema, but nothing is genuinely wasted.

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?

Covers all six parameters' behavioral consequences, mutation semantics, draft-vs-publish nuance, authorization requirements, and where to verify resulting state via list_lines. With no output schema, this is sufficient for an agent to call it correctly and safely.

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 baseline is 3; the description still adds meaning by explaining what each level actually grants ('unguessable address in docsUrl' vs. 'stable address' discoverable by search engines) and why userApprovedPublic exists. Some of the replaceLink constraint text restates the schema description, which keeps it from a 5.

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?

Opens with a specific verb and resource: 'Set who can read a line's generated API docs.' This is immediately distinguishable from siblings like set_key_policy or set_member_role, which govern different resources.

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 routes the agent: use the lowest level that satisfies the request, 'link' is enough for sharing with specific people, and 'public' only when the user explicitly asked, with userApprovedPublic: true. It also points to list_lines for current state, giving a concrete alternative for the read side.

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.

Resources