Skip to main content
Glama

Choose who sees a library item

library_set_audience

Set a library item's audience to private, team, or public so you control who sees and can use it.

Instructions

Keep a library item to yourself, share it with your team, or send it for review to share it with everyone. The person agrees first.

Choose who sees a library item. Who sees one of your library items: private (only you), team (everyone in your team, at once and without review: the same trust as sharing a project; it needs a team, and the team's admins can take it back), or public (sent for review as library.submit; once approved anyone can find, use and change it, under CC BY 4.0). Any kind but integration. A team admin may set private on an item shared with their team.

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": {
      "itemId": "<itemId>",
      "audience": "<audience>"
    },
    "name": "library_set_audience"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNopublic only: a note for the reviewer.
itemIdYesThe item: its id or its slug (library.list items[].id or .slug).
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
audienceYesWho sees it: private (only you), team (your team, at once, no review), or public (sent for review; everyone once approved).
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false but say nothing about consequences, so the description carries real weight here: it discloses that team sharing happens instantly with project-level trust, that public sharing is gated by review and CC BY 4.0 so 'anyone can find, use and change it,' and that a reviewer agreement precedes publication ('The person agrees first'). It does not spell out the confirmation_required handshake or what happens to an existing audience when the item is already public, which keeps it below a 5.

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

Conciseness3/5

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

The substance is front-loaded well, but the three audience options are stated three times over (first sentence, 'Who sees one of your library items:' list, and again in schema prose), and 'Choose who sees a library item' merely echoes the title. The fragment 'The person agrees first.' is stranded without saying what agreement produces, costing space without adding a callable instruction.

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

Completeness4/5

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

For a non-idempotent, non-destructive mutation with five parameters and no output schema, the description supplies the missing context an agent needs: the meaning of each audience, the permission model, the review gate, and the licensing consequence. The remaining gap is the error/confirmation flow — nothing here tells the agent it must re-invoke with confirm and idempotencyKey after a confirmation_required result, that detail living only in the schema.

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 schema already documents itemId, audience, note, confirm and idempotencyKey, and the baseline would be 3. The description earns above baseline by adding constraints not present in the schema: the item may be 'any kind but integration,' a team admin may downgrade an item shared with their team, and public submissions carry a review step — all of which shape which audience value is legal for a given item.

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?

The definition opens with a specific verb and resource ('Choose who sees a library item') and immediately enumerates the three concrete end states (private, team, public) with what each means. An agent can tell this apart from review-flow siblings such as approve_library_item or reject_library_item because the description frames the tool as the visibility switch, not the review decision.

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

Usage Guidelines4/5

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

It gives clear contextual guidance: 'team' requires an existing team and the team's admins can revoke, 'public' routes through review as library.submit, and it explicitly scopes applicability with 'Any kind but integration.' What is missing is an exclusion clause naming the alternative paths an agent might confuse with this one (unpublish_library_item, withdraw_library_item) when the person actually wants to take an item back rather than change who sees it.

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