Skip to main content
Glama
LibreDesk MCP

LibreDesk MCP

by Passe12345

create_shared_view

Create a saved conversation filter as a shared view for all agents or a specific team, so everyone sees the same filtered conversation list in the sidebar.

Instructions

Create Shared View Creates a shared view: a saved filter on the conversation list that appears in the sidebar of every agent (visibility all) or of the members of one team (visibility team with team_id). Requires the shared_views:manage permission. The filters are validated: an unknown field is refused. Editing and deleting a view stay in the web UI. Example, the open conversations carrying tag 3: {"name":"Compromise alerts","visibility":"all","filters":{"logic":"AND","rules":[{"model":"conversations","field":"tags","operator":"contains","value":"[3]"},{"model":"conversations","field":"status_id","operator":"not equals","value":"4"}]}}. POST /api/v1/shared-views Tags: Views

Input Schema

NameRequiredDescriptionDefault
nameYes(body)
filtersYes(body) Either a group (logic + rules, nested one level at most) or a condition (model, field, operator, value). Allowed model.field pairs: conversations.status_id, priority_id, assigned_team_id, assigned_user_id, inbox_id, last_message_at, last_interaction_at, last_interaction_sender, created_at, waiting_since, next_sla_deadline_at, snoozed_until, sla_policy_id, tags; conversation_statuses.id, name; users.email, external_user_id; inboxes.channel. There is no subject or content field: a view cannot filter on text
team_idNo(body) Required when visibility is team
visibilityYes(body) all: every agent. team: the members of team_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the whole behavioral burden. It discloses the permission requirement, the fact that filters are validated and unknown fields are refused, and the visibility semantics, which is good. It does not say what the tool returns (for example, a view ID) or whether name collisions fail, so the disclosure is incomplete for a mutation tool.

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?

The description is front-loaded with the definition, then permissions, validation, and a worked example. It is dense but every sentence carries information. The inline JSON example makes the paragraph long, though it is justified by the nested schema.

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 tool with nested filter objects, no output schema, and no annotations, the definition covers permissions, validation rules, scoping, and a concrete example. The only real gap is the return value, which matters if the agent must reference the new view afterward.

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 already 100%, so the baseline is 3. The description goes beyond the schema by working through a full example payload that shows the nested rules structure, the tags 'contains' value format as a text array, and how status and tag conditions combine, which is real added meaning for a complex nested parameter.

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 description gives a concrete verb and resource ('Creates a shared view') and immediately defines what a shared view is: a saved filter on the conversation list, scoped to every agent or to one team. It also draws a boundary by noting that editing and deleting happen in the web UI, so this tool cannot be confused with update_shared_view or delete_shared_view.

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?

The description states the prerequisite (`shared_views:manage` permission) and where the tool's scope ends (editing and deleting are web-UI only). It does not name a read tool such as get_all_shared_views, but it gives a clear context for use and an explicit exclusion.

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