/glasser-skills:glasserfrom glasser-skills
Brokers 2,000+ paid data endpoints for person/company enrichment, search, SEO, social media, property data, and scraping. Search, inspect pricing, and pay per call via CLI or MCP server.
Ships in glasser-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Glasser is a broker: it sells runnable third-party API operations ("Endpoints") under a single Key. You search the data sources, inspect an Endpoint's contract and Price, and run it — the response is the provider's own output, nothing renamed or reshaped.
Decide by the actual execution environment, not the product name and not whether a terminal exists. The wrong setup cannot work.
glasser MCP tools already loaded (search, inspect, run,
runs_get, runs_list, runs_stop, balance): nothing to install. The
verbs map one to one onto the CLI commands below; only run differs, in
that it needs an idempotency_key you generate (a UUID). Call balance;
if it succeeds, skip to First run. The rules in this file apply either
way.
Hosted assistant (claude.ai, Claude Desktop chat, Cowork, ChatGPT,
Gemini — even with a code sandbox: it runs in the provider's cloud, not on
the human's machine, and resets between tasks): do NOT install anything.
Tell the human to add Glasser as a custom MCP connector, then stop. In
Claude, give them this link; it opens the Add custom connector dialog
with the name and URL filled in:
https://api.glasser.ai/connect/claude
Then Continue → Add → sign in to Glasser, choose the Workspace, Allow.
Glasser is on in the next chat. Other products: the server URL is
https://api.glasser.ai/mcp; steps per client at
https://glasser.ai/docs/mcp-server.md. If the product has no custom
connectors, say so and point to the same account's coding agent
(ChatGPT → Codex, Gemini → Gemini CLI, Claude → Claude Code).
Local coding agent (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenClaw, Hermes on the user's machine; Grok Bot on its own persistent cloud computer): the human authorized the whole flow by pasting this. If your runtime asks permission for shell commands, request it ONCE and work straight through. Continue to Setup.
Sandboxed agent (cloud container, restricted egress): run
curl -sI https://api.glasser.ai/health first. A proxy 403, DNS failure
or timeout means an egress allowlist. Do not retry, do not try other
hosts. Tell the human api.glasser.ai is blocked by the environment's
network policy, offer the MCP connector or an allowlist for glasser.ai
and api.glasser.ai on 443, then stop.
Never ask the human to paste a Key into chat.
glasser --version 2>/dev/null || npm install -g @glasser-ai/cli@latest
One command when the CLI is missing, and it installs the current version.
Without npm, curl -fsSL https://glasser.ai/install.sh | sh does the same
job. A fresh install selects the latest version, so no separate registry
version check is needed. The installer reports what it needs and where it
wrote the binary — read its output rather than guessing. If the CLI was
already installed, the server tells you when to upgrade (see Upgrading).
For agents with persistent skills, run glasser skill install. It saves
this file for every coding agent it finds (Claude Code, Codex, Cursor, Gemini
CLI, Copilot and others), so future sessions load it; the installer already
ran it. For any other agent, save the complete file from
https://glasser.ai/SKILL.md in your user-level skill directory and enable it
for future sessions. Do this only during setup or CLI upgrades.
Run glasser balance --json. Exit 0 means authentication works; continue to
First run. A missing or rejected Key needs one. Handle other failures
from the error message instead of starting another login.
Where a Key comes from. Two sources, and the environment takes precedence
over the local store. GLASSER_API_KEY needs no file on disk, so it is what
CI, scripts and scheduled jobs use, and it is the source that still works on a
machine whose own store will not outlive the session — a cloud session, a
container. Mint that Key in the console. The local store is what glasser login writes and what glasser keys add --label <l> --key <k> fills by hand;
it lives on the machine the CLI ran on, and lasts as long as that machine does.
With a user present, in this order:
GLASSER_UTM_SOURCE=glasser-skills GLASSER_UTM_MEDIUM=skill glasser login with your shell tool's background execution support.
The CLI opens the sign-in page when possible and prints a fallback URL and
a matching code.Once login succeeds, use the available balance in its output and continue to
First run, unless login warns that GLASSER_API_KEY overrides the saved
Key or the summary has no available balance. In either case, run
glasser balance --json in the environment subsequent commands will use. Login's
summary uses the new Key directly; it does not verify an environment Key.
If that check rejects an environment Key, another login will not fix it.
Preserve runtime-managed authentication: changing the variable or bypassing
it for a command needs the user's authorization. When the user requires it
to stay unchanged, report the blocker and the runtime correction needed.
For other failures, report the actual error; a network failure does not show
that a Key is invalid. If authorization expires, a new login needs a new
URL and code relayed before waiting again.
Never ask the user to paste a Key. glasser login --json is a usage error by
design — that flow needs a human.
Setup is finished when login succeeds and reports the available balance
without an environment Key override, or glasser balance exits 0 in the
environment subsequent commands will use — with the MCP tools, when
balance succeeds.
If setup is blocked, give a brief status, the confirmed cause, and the next
step needed to resolve it. You may state which steps succeeded, but do not
claim readiness or offer task prompts while authentication is blocked.
Login's balance is not usable evidence for commands that use a rejected Key.
Once setup is finished, if the user already gave you a task, continue it. For a setup-only request, reply briefly in the user's language: confirm Glasser is ready, report the available balance from login or the balance check, then recommend one small, ready-to-send example task. Use a conversational lead-in that explains how the suggestion can help the user, rather than a generic list heading. Connect it to their goals when known, or briefly describe what they could accomplish with Glasser.
Base the task on the user's project, interests or goals when that context is available. Otherwise, choose one example from Glasser's capabilities. Give it a concrete subject and a clear result the user can ask for.
For both completed and blocked setup, omit Workspace names/slugs, Key labels/values/prefixes, and installation details such as versions, paths or package-manager output. Name a configuration variable when it explains the blocker. Report useful status, not a transcript of the setup commands.
When a balance response includes first_run_reward.description, relay that
message in the user's language alongside the task suggestion. If absent,
omit rewards. Use glasser balance --json when checking balance through the
CLI. Reuse the setup response; do not call balance just for rewards or delay
an existing task.
For a setup-only request, finish with the task suggestion and wait for the user to choose it. Then follow the normal inspect, pricing and approval rules before a paid Run.
The server tells you when to upgrade — you do not have to compare versions by hand. Upgrade when any of these appears:
client block. It is present only when this CLI is
behind, and it says everything needed to act: client_version,
minimum_version, latest_version, a runnable upgrade_command, and a
reason. It rides in the response body,
so it reaches -j output like any other field;control: "client.version_unsupported". This CLI is
too old to read part of the catalog, and search and inspect are refused
rather than answered with a shortened list — a missing row would be
invisible to you. Run the upgrade_command from details, then retry;Update available notice — the CLI asks the npm
registry at most once every three hours and prints this on stderr. This one
never
appears in -j mode, because both streams stay machine-clean; the client
block above is the -j signal.After upgrading, refresh the installed Skill as described in Setup. The Skill and the CLI update together. Never downgrade. An available update never interrupts work: finish the task at hand, then upgrade before the next one. If the registry is unreachable, proceed with the installed version — do not block the task on an upgrade check.
The task needs a capability (enrich a person or company, search the web, etc.) and no key or integration for it exists in the environment.
Workflow, in order:
0. Every search needs --use-case "<what they asked for>", a browse with no
query included: the user's own request, in their words, with the subject
in it. Search refuses to run without it. One piece of the user's work is
one task. Search prints a task id; pass it back
with --task <id> on every later search, inspect and run for that same
piece of work. Run that first search on its own and wait for the id:
searches started in parallel before you have it each open a separate
task. After that, search in parallel as much as you like, each with
--task <id>. Every command that prints a follow-up command already
carries the id in it, so working from what you are given keeps a task
together with no bookkeeping.
The use case and the task id cost nothing. The task id lets you list one
task's Runs together with glasser runs list --task <id>.
glasser search "<capability>" --use-case "<what they asked for>" — find candidate Endpoints. The
Provider column reads pdl (People Data Labs): the first word is the
slug every -p flag takes, the name in parentheses is who the data
comes from — use it when the user names a vendor, and when you report
the source back. Several Providers may sell the same capability: the
list is ranked by relevance only, the Price sits beside each row, and
the choice is yours.
--cursor to see the rest.- when semantic scoring
did not run. It is a similarity signal for comparing rows on one page,
not a verdict: the row order comes from fusing a keyword and a semantic
ranking, and the ranking always returns its nearest candidates.--cursor, search again
with different words (the catalog is indexed on how each Endpoint
describes itself, which may not be your phrasing), and inspect every
candidate whose name is close to the task — inspect is free.glasser inspect -p <provider> -e <endpoint> — read the Price and
the charge clauses BEFORE running. The Price is what a normal
COMPLETED call costs; the charge clauses list the exceptions (e.g.
NO_RESULT $0.00 means an empty answer is free). For any given
endpoint the clauses are authoritative. Also identify which input
fields control result volume (num, size, limit, arrays of
queries) — the charge rule may read the input, so volume parameters
can change what a call costs. Start small; raise only when the user
needs more.
Follow the inspected input_schema: some Endpoints take an object;
native task submissions take an array of task objects. A completed
submission returns receipts and task IDs. Use the matching task-result
Endpoint to retrieve the data, with a task ID from the same Workspace.glasser run -p <provider> -e <endpoint> -i '<json>' — execute.Run URL (the run_url field
in -j; absent from the -o file): the Workspace console page holding
that Run's records exactly as the Provider returned them, private to
Workspace members. When your answer relies on a Run, cite that URL as
its source — the Run id alone opens nothing for the user.Only the user can add funds, in the console at https://app.glasser.ai/balance —
no command or tool does it. Raise this only when a Run fails with
insufficient balance or the user asks.
| Command | Purpose |
|---|---|
GLASSER_UTM_SOURCE=glasser-skills GLASSER_UTM_MEDIUM=skill glasser login | Browser device authorization; stores a Key |
glasser search ["<query>"] --use-case "<sentence>" [--limit N] [--cursor C] [--task T] | Search Endpoints, 5 per page (max 20); --use-case is required on every search; -q/--query takes the same query; use --query=<query> when it starts with -; the footer prints the match total, the task id, the next-page cursor for --cursor, and a search-again command that carries the task and the use case |
glasser inspect -p <provider> -e <endpoint> [--endpoint-version N] [--task T] | Schemas, current Price, charge clauses, supported version |
glasser run -p <provider> -e <endpoint> [-i '<json>' | -f <file>] [--idempotency-key K] [--task T] [--wait] [--wait-timeout s] [-o file] | Execute an Endpoint |
glasser runs list [--limit --cursor --status --provider --endpoint --task] | List past Runs; --task is an exact match |
glasser runs get -r <runId> [--wait] [-o file] | Fetch one Run |
glasser runs stop -r <runId> | Stop a queued/running Run |
glasser balance | Balance, held and available; doubles as the auth probe |
glasser balance history [--limit --cursor --kind] | Ledger of charges, refunds, top-ups and Grants |
glasser keys add/list/activate/remove | Manage Keys stored on this machine |
Global flags: -j/--json (raw JSON to stdout, errors as a single JSON
object on stderr), --help, --version.
Facts that matter when scripting:
0 success, 1 runtime failure, 2 usage error, 130
interrupted.-j mode, stdout is data only; parse stderr for the error object.-o <file> and read the file selectively —
dumping a full provider payload into your context wastes it.response_file, check its state and body_field.
If its state is link_pending, read the same Run to prepare the link; do not
execute the Endpoint again. -o makes this read automatically, downloads an
available complete JSON file and verifies its byte count
and SHA-256. output: null alone does not mean an empty result. Download
links expire after at most one hour; runs get refreshes them during the
file's 7-day availability period without another execution or charge.
Provider-native download links remain part of the Provider's own output."0.0125"), never a
float. Do not do float arithmetic on it.GLASSER_API_KEY, GLASSER_API_BASE_URL (default
https://api.glasser.ai; point it elsewhere and that stack's Workspace
is what gets billed), NO_COLOR.| Status | Meaning |
|---|---|
QUEUED | Accepted, not yet dispatched to the provider |
RUNNING | Dispatched, provider has not answered yet |
COMPLETED | Terminal — the provider answered (its answer may still be a "not found") |
FAILED | Terminal — no usable provider answer; the failure block says why |
STOPPED | Terminal — stopped via runs stop. Dispatch wins the race: a Run already sent to the provider completes and is charged |
Inspect shows each Endpoint's run mode: a sync Endpoint returns the
finished Run in the same response (its timeout is printed next to the
mode) — --wait on those adds nothing. For anything still QUEUED or
RUNNING, either pass --wait up front or poll with
glasser runs get -r <runId> --wait; interactive sessions that want to
keep talking can fire without --wait and poll between replies.
| Symptom | Meaning / action |
|---|---|
Invalid or missing API key | Check the Key source. If GLASSER_API_KEY is set, correct it through its owner; login does not replace it. With no environment Key, use GLASSER_UTM_SOURCE=glasser-skills GLASSER_UTM_MEDIUM=skill glasser login to replace a missing or rejected local Key |
Exit 2 | Your command line is wrong — fix it from the message; nothing reached the API and nothing was charged |
Input does not match the endpoint's input schema | Read the issues: lines under the error — they name the exact field and constraint. No Run was created and nothing was charged; fix the input and run again |
insufficient balance | The Workspace cannot cover the Price. Tell the user to add funds in the console (see Adding funds) — do not retry |
rate_limited | The Workspace or the endpoint is at its limit. Wait retry_after_ms (the error carries it; the hint prints it), then retry the same command once — do not loop |
| Transport error / timeout with a retry hint | Outcome unknown — a Run may exist. Retry with the SAME Idempotency-Key exactly as the hint prints it |
COMPLETED but the provider answered 4xx / 5xx (provider_response.http_status) | The provider's own error; charge_basis.clause says what it cost: PROVIDER_ERROR, or NO_RESULT when the Endpoint reads that status (often 404) as a miss. Read the provider's message: run the same input once more with a NEW Idempotency-Key when it says so (the same key only replays this Run), then try another Endpoint — the same text can mean a bad input or a provider outage |
FAILED with a charge shown | Legitimate when the charge clauses say so — report both the failure and the charge |
Update available notice | Finish the current task, re-run the installer, then update the installed skill as described in Upgrading |
For a fresh independent lookup, use a fresh random UUID, including repeated lookups with identical inputs on the same day. Reuse the original key only when recovering that same execution after an uncertain outcome. Changing a Task does not reset a key. Read an existing Run for an explicit historical request and retain its observation time.
MCP and Solution results expose request_charge: its created_run_ids identify
new work, replayed_run_ids identify existing work, and charge_usd counts only
newly created Runs for that request. It is null while a created Run is unsettled
or its admission source is unknown. A replay or free read adds zero even when
the original Run has a positive historical Charge. Retain created Run ids across
polls and count each settled Run once in the user's work; a free poll does not
erase the Charge of an earlier creation. If these fields are absent, do not
infer new spending from the historical Run Charge.
run prints Charge: $X (rule) — the amount billed under the
endpoint's charge rule. Report that number to the user.run prints the Idempotency-Key it used (auto-generated when omitted;
--json mode requires an explicit --idempotency-key). On an ambiguous
failure — timeout, dropped connection, nonzero exit with no clear answer —
retry with the SAME key: it returns the original Run instead of
charging again.COMPLETED means the provider answered — a COMPLETED Run
whose payload is a provider 404 ("person not found") is a normal outcome,
not an error. Whether it is charged follows the endpoint's charge clauses
from inspect. Report both the Run status and what the provider actually
said.--wait to block until the Run settles; without it, poll with
glasser runs get -r <runId> --wait.inspect are the source of truth.GLASSER_UTM_SOURCE=glasser-skills GLASSER_UTM_MEDIUM=skill glasser login — never ask the user to paste a Key.--task through one piece of work, the way you carry that
key — search prints it, inspect and run take it.Charge: amount; cite the Run URL,
never the bare Run id, as the source of what your answer used.-o <file> for large outputs; -j when you parse.Update available notice: finish the task,
re-run the installer, then update the installed skill as described in
Upgrading.glasser <command> --help when unsure.rate_limited means back off: wait retry_after_ms, then retry the
same command once; never loop on it.--endpoint-version selects a supported compatible contract. It does not lock Price.
Compatible updates keep the version; older versions work until explicitly retired.
New Runs use the selected version's Price at admission. Accepted Runs keep their original Price.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub glasser-ai/skills --plugin glasser-skills22 skills in this plugin
/ad-intelligenceWhen the user wants to see what a company is running in paid ads — on Meta (Facebook, Instagram, Threads), Google, LinkedIn and TikTok — what the ads say, which creatives have run longest, where they send people, and how the messaging differs by platform. Also use when the user mentions "competitor ads", "ad library", "what are they advertising", "ad teardown", "their Meta ads", "Google Ads transparency", "swipe file", "what hooks are they using", or wants to compare several advertisers. Input is one or more company names or domains; output is a per-advertiser teardown with every cited ad linked to its public ad-library page, plus a cross-advertiser comparison when there is more than one. Runs on Glasser (paid per call). For a company's whole competitive picture beyond ads, see competitor-research. For what is trending organically, see social-trends./ai-search-visibilityWhen the user wants to know whether AI search answers mention or cite their brand — in Google AI Overviews, Google AI Mode, ChatGPT, Perplexity, Gemini, Copilot — which questions trigger it, which pages get cited, who else is cited for the same questions, and how that is changing. Also use when the user mentions "AI visibility", "GEO", "AEO", "LLM visibility", "are we cited by ChatGPT", "AI Overview presence", "share of voice in AI search", "who does AI recommend for", "llms.txt", "are AI crawlers blocked", "is our site citable", or asks to monitor AI search over time. Input is the user's domain; output is a report in two halves — whether AI answers cite the brand, with evidence per question, a category view and live probes; and whether the site is ready to be cited, scored — with an action plan and a comparison to the previous run when there is one. Runs on Glasser (paid per call). For classic search rankings, keywords and backlinks, see seo-audit.Other plugins' skills for the same job