Skip to main content
Glama
profit-lens

profit-lens

Post weekly digest to Slack

post_weekly_digest_to_slack

Generate a weekly profit digest with KPI changes, top leaks, inventory actions, and cash low point, then post it to Slack after preview and confirmation.

Instructions

Builds the weekly profit digest (KPIs vs last week, top leaks, inventory actions, cash low point) and posts it to Slack. Safe by default: returns a dry-run preview unless the server was started with PROFIT_LENS_ENABLE_SLACK_WRITES=true and a SLACK_WEBHOOK_URL, and even then only posts when called with confirm: true. Show the preview to the user and get their OK before confirming.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "post_weekly_digest_to_slack"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional short note from the user, shown at the top of the digest.
confirmNoMust be true to actually post. Leave false to preview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, but the description adds the behavior that matters: the call is a no-op dry run unless two independent gates are satisfied, and publishing is an external side effect. That gating and the required human-approval loop go well beyond what the annotations convey.

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?

Three sentences, front-loaded with what gets built and posted, then the safety gates, then the required workflow. No filler and no repetition of schema text beyond the necessary confirm emphasis.

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?

For a tool with no output schema, the description still tells the agent what a non-posting invocation yields (a dry-run preview), what triggers a real post, and what the user-approval expectation is. Nothing an agent needs in order to call this safely is missing.

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?

Schema description coverage is 100% and both parameters are already documented in the schema, so baseline 3 applies. The description reinforces the meaning of confirm (preview vs post) but adds no syntax or constraints for the note field beyond what the schema states.

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+resource (builds the weekly profit digest and posts it to Slack) and enumerates the digest contents (KPIs vs last week, top leaks, inventory actions, cash low point). The sibling tools are read-only analytics helpers, so an agent can tell this is the only side-effecting publisher without opening any schema.

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?

Gives an explicit operating procedure: preview is the default, actual posting requires both server-side configuration (PROFIT_LENS_ENABLE_SLACK_WRITES + SLACK_WEBHOOK_URL) and confirm: true, and the agent must show the preview and get user approval first. The when-not condition (unconfigured server or confirm false) is spelled out rather than inferred.

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