reliable-tool-context

reliable-tool-context is a skill for Claude Code, Codex from lourencomaciel/sift-gateway. It costs 21 tokens per session (837 once invoked), scanned A, original, MIT.

A method for turning command output into small, repeatable data queries before an agent analyzes it. It uses saved artifacts so the original result can be reused, checked, and continued when output is paginated.

In plain words
What is it for?
Use it when analyzing command results, handling pagination, checking uncertain JSON structures, or requiring reproducible and auditable queries. It recommends direct command output only for clearly small, one-off inspections.
Why use it?
Raw command output can be large, incomplete, inconsistent, or difficult to reproduce. This method keeps the agent's working context compact while preserving a reliable record of the source data.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it when analyzing command results, handling pagination, checking uncertain JSON structures, or requiring reproducible and auditable queries. It recommends direct command output only for clearly small, one-off inspections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lourencomaciel/sift-gateway/openclaw
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lourencomaciel/sift-gateway --skill openclaw
Clone the repo
git clone --depth 1 https://github.com/lourencomaciel/sift-gateway

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reliable-tool-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/lourencomaciel/sift-gateway/openclaw/github.svg)](https://agentmods.dev/skills/lourencomaciel/sift-gateway/openclaw)
Your own site
<a href="https://agentmods.dev/skills/lourencomaciel/sift-gateway/openclaw"><img src="https://agentmods.dev/badge/skills/lourencomaciel/sift-gateway/openclaw/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reliable-tool-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/lourencomaciel/sift-gateway/openclaw"><img src="https://agentmods.dev/badge/skills/lourencomaciel/sift-gateway/openclaw.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 837 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00837
Opus 5 $0.00010 $0.00418
Sonnet 5 $0.00004 $0.00167
Haiku 4.5 $0.00002 $0.00084

Measured 9d ago against content hash f242c15caec4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

reliable-tool-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/openclaw/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reliable Tool Context

Use this skill to build reliable tool context whenever command output will be analyzed by the model and correctness matters. Capture once, query from artifacts, and return compact answers without copying raw payloads into model context.

CLI Decision Rule

Use Sift to establish reliable tool context when any of these are true:

  • Output will be consumed by the model (analysis, transformation, or follow-up querying).
  • Pagination exists or may exist (pagination.next.kind=="command").
  • JSON schema/root confidence is low, or rows may be heterogeneous (even for small payloads).
  • You need reproducibility, redaction discipline, or auditability.

Use direct CLI only when all of these are true:

  • Output is clearly small.
  • Schema/root path is obvious.
  • It is a one-off human inspection with no follow-up model reasoning.

Required workflow

  1. Capture output as an artifact:
sift-gateway run --json -- <command>
  1. Keep only artifact_id plus a short summary in prompt context.
  2. Handle pagination explicitly only when present. If pagination.next.kind=="command", continue with:
sift-gateway run --json --continue-from <artifact_id> -- <next-command-with-next_params-applied>
  1. Query artifacts with explicit root path and compact output:
sift-gateway code --json <artifact_id> '$' --code "def run(data, schema, params): return [{'id': row.get('id'), 'status': row.get('status')} for row in data[:20]]"
  1. Resolve root path from response hints, not guesswork:
  • Current run behavior uses canonical root path $; use $ for follow-up code queries.
  • If response_mode=="schema_ref" and schemas are present, use schema root_path as the source of truth.
  • Treat sample_item as a preview row only.

Schema discovery protocol

  • Do not use jq '.[0]' (or equivalent "first-item" shortcuts) to infer schema or root path. Many payloads are object-wrapped, have multiple candidate roots, or include heterogeneous rows where first-item heuristics are misleading.
  • In Sift responses, sample_item is emitted only when Sift can verify consistent item shape across the resolved list. If sample_item is absent, inspect schemas; for current run captures, schema root_path should be $.
  • If sample_item_text_truncated is true, treat long text fields as truncated previews and confirm details with a focused code query.

Read the full file on GitHub · 81 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 81 lines · 21 tokens per session scan A f242c15caec4

Subscribe to this mod's changes

reliable-tool-context is a skill published in the GitHub repository lourencomaciel/sift-gateway (31 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 837 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

lc-curate-context

Decide which files a task actually needs, record that as a reusable llm-context rule, verify it against the codebase - including the files your selection references but leaves out - and pack it for your own context, a chat, or a sub-agent you dispatch. Load when choosing what code to put in front of a model, packing…

cyberchitta/llm-context.py · 90 tokens

authoring

Add or edit an MCP server entry in mcptoon's config correctly — stdio/streamable-http/sse shapes, command rules, placeholders, and validation.

activeing123/mcptoon · 36 tokens

connect

Connect any AI agent to MCP servers through mcptoon — one config synced everywhere, one stdio gateway, 99.2% fewer tokens on tool discovery.

activeing123/mcptoon · 35 tokens

triage

Diagnose and fix broken MCP servers in mcptoon — doctor, health, per-server probes, and the common failure playbook.

activeing123/mcptoon · 30 tokens

mcptoon

Compress MCP tool discovery with the mcptoon CLI. Trigger when a session has a large MCP tool catalog (many servers/tools), when the user mentions token cost, tool discovery, mcptoon, or asks to list/call MCP tools efficiently. mcptoon compresses 71,929 tokens of tool schemas to 581 (-99.2%) and serves as an MCP…

activeing123/mcptoon · 92 tokens

debugging-workflows

Systematic troubleshooting for Falcon Foundry CLI errors, manifest validation failures, deploy failures, artifact runtime errors, and development server issues. TRIGGER when user encounters CLI errors, foundry ui run not working, deploy failures, authentication issues, function execution failures, "debug my function"…

CrowdStrike/foundry-skills · 90 tokens