Skip to main content
Glama

Telegram intake: Assign label

intake_assign_label
Destructive

Put captures under a client label, or mark them the caller's own. Pass 'capture_ids' or a 'session' id, and one of: 'label' (id or name; with 'create_if_missing' a new label is made from the name), 'own': true, or 'clear': true. By default the forwarded senders involved are learned, so the bot recognises them next time ('learn': false to skip). Undo by assigning again. CONFIRMATION: this tool runs immediately when the caller asks for it — it writes only their own record, and they can undo it from this same surface, so the request is taken as the instruction. You get an ordinary result, not a plan_token. Everything destructive, outbound or financial still proposes and waits.

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": "intake_assign_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownNo
clearNo
labelNoA client label id, or its name/alias.
learnNo
sessionNo
capture_idsNo
create_if_missingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds genuinely non-obvious behavior beyond the annotations: forwarded senders are learned by default with an opt-out ('learn': false), and the operation is reversible by re-assigning. It also discloses the confirmation model (runs immediately, no plan_token, only the caller's own record). Minor tension: annotations flag destructiveHint=true while the description frames it as trivially undoable and immediate, but it never claims the call is read-only, so this is framing rather than contradiction.

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?

Front-loaded with the core action and input shape, then the side effect, then the confirmation policy in a labeled block. Dense but nearly every clause carries information; the CONFIRMATION paragraph is longer than strictly needed for this tool since most of it describes tools other than this one.

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 destructive mutation with no output schema, the description covers the operation, its side effects, reversibility, and the confirmation contract. It stops short of stating precedence or conflict behavior when capture_ids and session are both supplied, or what happens if 'label' names a nonexistent label without create_if_missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 14% schema description coverage, the description carries the load and does so: it defines 'label' as id or name/alias, explains 'create_if_missing' makes a new label from the name, clarifies 'own' and 'clear' as alternatives, and explains what 'learn' toggles. Only 'capture_ids'/'session' mutual exclusivity and the 500-item cap are left to the schema.

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 ('Put captures under a client label, or mark them the caller's own') and enumerates the three mutually distinct outcomes (label, own, clear). An agent can tell this is a labeling/marking operation on intake captures rather than a query or a label-management call.

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?

Specifies the input shape to use ('Pass capture_ids or a session id, and one of: label, own: true, or clear: true') and gives an undo path ('Undo by assigning again'). It does not explicitly route the agent away from the sibling label-management tools (intake_manage_labels, intake_list_labels), though 'create_if_missing' implicitly covers the create-a-label-while-assigning case.

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