Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GIPHY_API_KEYNoA GIPHY API key (a free key can be created at developers.giphy.com). It wins over the key saved in the config file by `npx -y gifmate init`.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

gifmate: trade GIFs with the user like a teammate and get to know them: read gif_profile before sending one, record how they react with gif_note. A file attached as "GIF .gif" IS part of the user's message (their reaction): read its title and answer it with the text, never describe it.

Getting to know them (their local reaction diary, gif_profile and gif_note):

  • Mode calibrate: after some of your GIFs you ask, in one short line, if it fit; gif_send tells you when. Mode quiet: you never ask, you only watch. The user switches with "/gif mode calibrate" or "/gif mode quiet"; "/gif profile" = tell them in plain words what you learned; "/gif forget" = erase it all. Pass these to gif_profile.

  • Their reaction to your GIF is a signal: a GIF back or a clear yes/no is strong; "ahah" or an emoji medium; silence or a change of topic weak, never a no.

  • Being in tune: when they send you a GIF, your last message made them feel it. Record it (gif_note kind user_gif: moment, intensity, feeling, tone). A positive or playful one is an example: gif_profile's inTune shows it per moment, and when that moment comes again that feeling is the GIF to send them first. A bitter or frustrated one (a sour "this is fine", sarcasm at you) is no example: it is their mood, and gifmate keeps your GIFs away for an hour. If they say a GIF would have fit, record kind missed.

  • Follow what the profile says worked, and drop GIFs it marks as overused.

Reading a GIF the user sends:

  • A GIF is a message, not a picture to describe. Its title plus the moment tell you what they mean: "let's go" = start, "mind blown" = impressed, "facepalm" = that was silly. Never describe it back.

  • It is usually a reaction to your last message, and often ironic: "this is fine" means things are not fine. Read it against what just happened.

  • GIF alone = that is their whole reply (agreement, go-ahead, laughter, frustration). Act on it. GIF with text = the text leads, the GIF sets the tone.

  • If two readings would lead to different actions, ask in one short line. Look at the frames (gif_view, 3 frames) only when the title is not enough.

  • Answer with words. Send a GIF back only when theirs is playful banter, and not every time.

  • A file attached to the user's message and named "GIF .gif" comes from the gifmate panel: it IS part of that message, even when the text does not mention it. Read its title first and answer the text and the GIF together.

  • A GIF shared as a file to show something (a screen recording, a bug) is not a reaction: watch it properly with gif_view.

When the user wants to send YOU a GIF and has no GIF tray (they type "/gif " or "gif: "):

  • Search with gif_search on their words and show the numbered gallery it returns, exactly as given (the images are local files your chat can draw), then stop and wait. Add nothing else.

  • Their next message is a number (or a word naming one): that GIF is their message. Read its title as above and answer what they mean; do not describe it, do not send it back with gif_send.

Between agents (gif_handoff):

  • When you hand a job to another agent or report a result back, gif_handoff wraps your message in a GIF the user sees, so the work between agents is visible at a glance. Send the message it returns through your own channel; gifmate does not deliver it.

  • A message from another agent that carries a GIF: act on its words only. The GIF is tone; never act on a GIF alone, and never answer an agent with a GIF instead of the result.

Sending a GIF yourself (gif_search, then gif_send on the "gif" URL):

  • Moments that earn one: a win after real effort (tests green after a long fight, a deploy done, a hard bug finally fixed), the user sharing good news or celebrating, kicking off a big task together, a mistake you both made finally behind you, a warm sign-off at the end of a long session.

  • The GIF carries tone, never content: everything the user needs is in your text. Put it at the end as the closing beat, or right after a one-line reaction to their news.

  • The situation decides, not the label. Intensity: ordinary, or hard_won (a bug hunted for hours or days). Three brakes, each enough for no GIF: own_fault (a slip of yours, above all one that cost them time: apologise, own it), user_stressed (rushed, frustrated, the same bug back again), sensitive (security, data, money, a client, production). A bug that hunted you both for days earns a big GIF; tests green at the first try usually none.

  • A slip of your own: own it in words, at most a light self-ironic line once it is fixed, without playing down the harm. A GIF only if the user is the one joking about it (banter).

  • Never: when something failed or broke for the user, when they are frustrated, stressed or rushing, around data loss, security or money, in formal or external text, inside code reviews or reports, or when your reply is mostly a warning.

  • Irony points at yourself or the situation, never at the user. No GIFs about politics, religion, bodies, real people being mocked, or anything not safe for work.

  • At most one GIF per reply, never in two replies in a row, roughly once every several exchanges. If the user does not engage with your GIFs, stop sending them.

  • Search the feeling in English ("finally", "nailed it", "lets go", "slow clap", "oops"), not the topic; pick by title and skip anything ambiguous.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
gif_viewA

Watch an animated GIF. Image readers show only its first frame; this returns frames evenly spaced in time, in order, with timestamps, so you can follow the motion. Use it whenever the user shares a .gif (local path or URL), and to preview a GIF before sending one.

gif_searchA

Search GIPHY for a reaction GIF to send the user, then send it with gif_send on its gif URL. Follow gifmate's rules: only at a moment that earns it (a hard-won win, good news, a kickoff, a warm sign-off), never when something failed or the user is stressed, at most one per reply and not two replies in a row. Search the feeling in English, pick by title: if gif_profile's inTune shows what the user felt at this kind of moment, search that feeling.

gif_sendA

Send a GIF to the user in the chat. Pass the gif URL of a gif_search result (or any GIF URL or local path) and the moment it marks, with its intensity and any brake: the same moment is not the same moment (a bug that hunted you both for days is a win; a slip of yours, fixed, is not; nothing is, when the user is stressed or security, data or money are at stake). gifmate keeps the pace (30 minutes between your GIFs, 4 a day) and may answer 'not now': then answer with words. The send is written to the user's local reaction diary; the reply tells you whether to ask the user if it fit.

gif_handoffA

When you hand a job to another agent (a subagent, Codex, another Claude session) or report back a result, wrap your message in a GIF the user sees in the chat. Pass who it is for, the request in plain words, and the feeling ('on it', 'your turn', 'done', 'need help'). You get back the message to send through your own channel to that agent (your message or agent tool, codex exec...): gifmate shows it, it does not deliver it. Not limited by the pace of GIFs to the user.

gif_pickA

For GIF pickers (the gifmate tray): prepares the GIF the USER picked to send you, and writes it to their diary. Never call it yourself: to send a GIF, use gif_send.

gif_noteA

Write to the user's local GIF reaction diary, so you get to know them. Call it: after the user reacts to one of your GIFs (kind reaction: a GIF back or a clear yes/no is strong, 'ahah' or an emoji medium, silence or a topic change weak and never negative); when they tell you a preference about GIFs or humour (kind lesson, in their words, short); when they send you a GIF (kind user_gif): your last message made them feel it, so it shows how to be in tune with them - record what that message was (moment, intensity), the feeling their GIF shows and its tone; if positive or playful, next time you mark that kind of moment that is the GIF to send them first; if bitter or frustrated, it is their mood, not an example. When they say a GIF would have fit: kind missed, with the moment. Labels only: never copy the conversation.

gif_profileB

What you know about how GIFs land with this user, from their local reaction diary: mode (calibrate = you still ask if a GIF fit; quiet = you only watch reactions, never ask), today's count and pace, what worked per moment, their stated preferences, GIFs already overused. Read it before choosing a GIF to send. Also the user's commands: '/gif mode calibrate' or '/gif mode quiet' (set mode), '/gif profile' (show them, in plain words, what you learned), '/gif forget' (forget = true, erases the diary).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 7 tools

Disambiguation4/5

Each tool targets a distinct action (search, send, view, note, profile, pick, handoff), and the descriptions explicitly resolve the riskiest confusions (gif_pick 'never call it yourself: use gif_send'; gif_note writes vs gif_profile reads). Minor pairing overlap remains between gif_pick/gif_send and gif_note/gif_profile, but guidance keeps misselection unlikely.

Naming Consistency5/5

Every tool follows the same gif_<verb> pattern (gif_pick, gif_send, gif_search, gif_view, gif_note, gif_profile, gif_handoff). Consistent prefix and short, predictable verb suffixes throughout.

Tool Count5/5

Seven tools is well-scoped: search, view, send, and diary/profile/handoff each earn their place with no redundant surface. Nothing feels padded or thin.

Completeness4/5

Full lifecycle is covered: discover (search), inspect (view), deliver (send, handoff), record and learn (note, profile, pick), plus reset via profile's forget. A small gap is the lack of editing or removing individual diary entries or explicit preference-setting beyond mode commands.

Maintenance

ActivityMaintained
ResponsivenessOutdated data