Skip to main content
Glama

API Keg — Context Crush (Transcript, Email & Workspace Compactor)

Compact Slack Export or Jira v3 ADF JSON

compact_workspace_export
Read-onlyIdempotent

Compacts Slack channel/thread JSON (resolving <@U...> mentions, dropping join/leave noise, grouping thread_ts replies, formatting reactions, stripping Block Kit) or Jira v3 Issue/ADF JSON (rendering headings, tables, code blocks, lists, mentions, comments while dropping avatarUrls and null customfield_* keys). Pricing: $0.001 base (up to $0.005 max ($0.001 base + $0.0005 per 50KB of input, capped at $0.005 for payloads up to 2MB), x402 variable settlement). Pass ?dry_run=true on REST to validate schema free.

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": {
      "content": "<content>"
    },
    "name": "compact_workspace_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
usersNoOptional Slack user ID to display handle map (e.g. { "U01ABC": "alice" }) used to resolve <@U...> mentions.
formatNoWorkspace JSON format; defaults to automatic Slack vs. Jira ADF detection.auto
contentYesRaw Slack channel/thread JSON export or Jira Issue / Atlassian Document Format (ADF v3) JSON payload.
includeReactionsNoRender concise Slack reaction badges such as '[+3 👍]'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, non-open-world, so the bar is lower, and the description still adds real substance: which elements are resolved, grouped, or stripped (mentions, join/leave noise, thread_ts replies, Block Kit, avatarUrls, null customfield_* keys). Deductions for the muddled pricing clause and the '?dry_run=true on REST' note, which does not map to any parameter in this tool's schema and is therefore unusable guidance for an MCP caller.

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?

Purpose is front-loaded in the first clause, which is good, but the second sentence is a dense tangle of nested parentheticals around pricing and a REST-only dry-run hint that is off-channel for a JSON-schema tool call. Both could be trimmed without loss to the calling agent.

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

Completeness3/5

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

There is no output schema, so the description should ideally say what comes back (a compacted string? structured JSON?), and it never states the return shape or whether ordering/structure of the compacted output is stable. Inputs and transformations are well covered, so the tool is callable, but the result contract is a gap.

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%, so users, format, content, and includeReactions are already documented in the schema itself. The description restates the accepted payload types but adds no syntax, sizing, or ordering detail beyond what the schema provides; baseline 3 applies.

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 names a specific verb (compacts) plus two concrete resources (Slack channel/thread JSON, Jira v3 Issue/ADF JSON) and enumerates the transformations applied to each. This clearly separates it from siblings like compact_email_thread and compact_transcript, which handle different input types.

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 establishes clear usage context: feed it raw Slack exports or Jira ADF JSON, with format auto-detection as the default. It also offers a validation path ('Pass ?dry_run=true on REST to validate schema free'). It stops short of explicit when-not guidance or naming a sibling tool.

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