Skip to main content
Glama
ishan-parihar

facebook-lyr

Add Facebook Account

add_account
Destructive

Add a Facebook identity by saving its session cookies so the agent can act as that account. Requires c_user and xs, and can be set as active.

Instructions

Store a new Facebook identity's cookie set for agent use.

The cookies dict must contain at least c_user and xs (a logged-in facebook.com session). After adding, all tools act as this identity when set_as_active is True (default).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDisplay name for the identity
cookiesYesCookie dict with c_user + xs
usernameNoOptional vanity username
account_idYesThe Facebook account/page id (numeric, from c_user)
identity_typeNouser, page, or profileuser
set_as_activeNoMake this the active identity (default True)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description adds meaningful behavioral context beyond annotations: it explains that adding an account can change the active identity ('when set_as_active is True (default)') and specifies the required cookie fields. This complements the destructiveHint annotation rather than contradicting it. It does not cover every edge case (e.g., what happens if the account already exists), but it discloses the key behavioral impact.

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?

The description is two sentences, front-loaded with the primary purpose, and every sentence carries crucial information. It avoids redundancy and fluff, making it highly efficient for an AI agent to parse quickly.

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?

Given the tool has 6 parameters, a nested object, and an output schema, the description covers the core requirements (cookies, active identity change) without needing to explain return values. It is complete enough for an agent to understand the main use case, though it could mention error conditions or validation behavior for full completeness.

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?

The schema already provides descriptions for all 6 parameters, but the description adds essential semantics for the cookies parameter by specifying it 'must contain at least c_user and xs' as a logged-in session. It also clarifies the effect of set_as_active on subsequent tool actions. This adds value over the schema's terse descriptions.

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 clearly states the tool's action: 'Store a new Facebook identity's cookie set for agent use.' It specifies the resource (Facebook identity cookie set) and scope (new identity), distinguishing it from sibling tools like update_account_cookies or import_account_from_browser. The title 'Add Facebook Account' aligns with this clear purpose.

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 gives solid context for when to use the tool: when you have a logged-in facebook.com session cookie set with at least c_user and xs. It also explains the behavioral consequence ('After adding, all tools act as this identity') but does not explicitly mention alternatives or when not to use it, such as comparing with import_account_from_browser. Thus, clear context but lacking explicit exclusions/alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ishan-parihar/facebook-lyr'

If you have feedback or need assistance with the MCP directory API, please join our Discord server