Skip to main content
Glama

sortly

Create an alert

sortly_create_alert
Destructive

Create a stock alert on an item (type Quantity, e.g. threshold_method quantity_less_than with threshold_value 5, or less_than_or_equal_to_min_quantity), or a DateReminder on a datetime custom field (custom_attribute_id + before/after/same_day + threshold_interval). WRITE. Sortly: POST /api/v1/alerts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesQuantity = stock threshold; DateReminder = date custom field.
item_idYesThe item the alert watches.
threshold_valueNoThe number compared against (or the interval count).
recipient_groupsNoWho is notified: owners, admins, members, limited, or a custom role name. Default owners.
threshold_methodYesWhat triggers it: a quantity_* method for Quantity, before/after/same_day for DateReminder.
threshold_intervalNoRequired for DateReminder; omit for Quantity.
custom_attribute_idNoFor DateReminder: the datetime custom field to watch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations only give destructiveHint=true, so the description must carry behavioral weight; it does disclose the operation is a WRITE and names the backing endpoint (POST /api/v1/alerts). It does not cover permissions, alert-count limits, idempotency, or error behavior, which is a meaningful gap for a 7-param mutation.

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 core sentence is front-loaded and dense but readable, with the write flag and endpoint trailing as short fragments. The heavy parenthetical nesting of method names makes it slightly harder to scan than a bulleted breakdown would be, but there is no filler.

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 7-parameter write tool with no output schema, the description covers both operational modes and the required field pairing well enough to call it correctly. Remaining gaps are behavioral (auth, limits, failure modes) rather than structural.

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%, but the description adds cross-field coupling semantics that the flat schema does not express as clearly: which threshold_method values pair with which type, and that DateReminder needs custom_attribute_id plus an interval unit. The concrete example (quantity_less_than with threshold_value 5) is genuinely useful context.

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 ('Create a stock alert on an item') and immediately enumerates the two supported alert shapes. It is trivially distinguishable from siblings like sortly_list_alerts or sortly_create_item, which target 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 Guidelines4/5

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

The description tells the agent how to choose between the two modes (Quantity vs DateReminder) with concrete method examples. It does not name any alternative tool or state when-not-to-use (e.g., use list_alerts to inspect existing alerts), so it falls short of full routing guidance.

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.