Help the user get oriented. The user's explicit instructions come first, within host safety rules.
- Check the connection. If Glif's tools are available, call
whoami; it's free and proves the connection works. If they're missing, help the user connect:- Claude Code:
claude plugin marketplace add glifxyz/glif-mcp-server, thenclaude plugin install glif@glif, then/mcpto sign in. - Any other client: add the remote MCP server
https://glif.app/api/mcpand sign in when the browser opens. https://glif.app/mcp has steps for each client. Never ask for passwords, API keys or sign-in codes in chat. A free account can be created at https://glif.app.
- Claude Code:
- Explain what costs credits. Only
compose_projectspends the account's Glif credits. Connecting, browsing, choosing a reference and checking status are free. Video uses more credits than images. Glif decides the real cost when it runs. Plans and credits are managed at https://glif.app/pricing; never buy or upgrade in chat. - If the user asks which account or how many credits, report only the
whoamifields they asked about, such as username, available credits or recent spend. - To browse, call
list_projects, thenget_projectfor the one they pick. Show media links from the result. If the host renders Glif's viewer,view_mediacan reopen saved media in it. - Explain how continuity works:
- A project keeps its messages and media. Passing its
project_idtocompose_projectadds new work to the same project. - A new reference file goes through
upload_file. Its returnedfileUrlgoes incompose_project'sattachments. - Project IDs, job IDs, asset IDs and media URLs are different values. Do not swap them.
- A project keeps its messages and media. Passing its
- End with a choice that fits what the user is doing. Examples:
- In a codebase: "add a hero image and texture to this page", "make a logo and favicon set", "record a 30-second demo of this app", "make App Store screenshots", "add UI sounds".
- Anywhere: "make a YouTube thumbnail", "remove the background from this image", "create a character sheet", "make an explainer video", "generate a voiceover", "plan an ad campaign", "show my recent projects". Or show a draft brief for review.
Onboarding never calls compose_project, uploads files, or changes settings. Browsing, picking a reference or accepting a suggestion is not a request to generate. Show draft prompts as text and wait for an explicit "go".


