Skip to main content
Glama
facebook-mcp

facebook-mcp

by IvanBBaev

List labels

facebook_list_labels
Read-onlyIdempotent

Lists a Page's custom Messenger labels, or the labels on one person using their PSID, to identify and apply inbox thread tags.

Instructions

List the Page’s custom Messenger labels (id and name), or — with psid — the labels on one person. Labels tag a thread in the Page inbox label view. Needs a Page token with pages_manage_metadata and the MESSAGING task, and accepted Page Contact Terms.

Input Schema

NameRequiredDescriptionDefault
psidNoOnly the labels on this person (their PSID, from a conversation).
afterNoOpaque forward cursor from a previous call's `nextCursor`. Omitted ⇒ start from the first page. Cursors expire; on an expiry note, restart the listing without this argument.
limitNoMaximum items to return in this page (1–100). Defaults to 25. Large values risk truncation by the result budget.
profileNoPage profile key (e.g. "brand-a") or a raw Page ID. Omitted ⇒ the default Page (FB_PAGE_ID).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that by naming the required token scopes, the MESSAGING task and the accepted Page Contact Terms, plus the fact that labels tag threads in the inbox label view.

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?

Two sentences, no filler. The core listing behavior and its psid variant come first, and the auth constraints follow, which is the right order for an agent deciding whether it can call this.

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?

Return fields (id and name) are stated despite there being no output schema, and the auth prerequisites are fully enumerated. Pagination is delegated to the schema, and edge cases such as an empty label list are not covered, but nothing essential to a correct call 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%, so psid, after, limit and profile are already documented in the schema. The description only restates the psid behavior ('the labels on one person') and adds nothing about cursor, limit or profile semantics, so the 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?

States a specific verb (List) and resource (the Page's custom Messenger labels), plus the exact shape of each item (id and name). It also carves out the psid variant, which clearly separates it from create_label, delete_label and assign_label in the sibling set.

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?

Gives explicit context for both modes: no psid = all Page labels, with psid = labels on one person. Prerequisites (Page token, pages_manage_metadata, MESSAGING task, Page Contact Terms) tell the agent when the call will fail, but no sibling is named as an alternative.

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