agentleFS
simstudioaisimstudioai/skills/skills/run-tool/SKILL.md

run-tool

Skill2 starsChanged 2 months agoApache-2.0View on GitHub

Call one Sim integration tool directly through the sim CLI, using credentials Sim already holds. Use for a single action against a connected service — send a message, create an issue, scrape a page; not for multi-step logic or anything scheduled, which belongs in a workflow.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. MosoFin/mosofin-mcp-plugin★ 3same name
    2. MosoFin/mosofin-plugins★ 3same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never put a live credential in the command.

    line 9
  2. Very specific:

    Use a Function block for code requiring workflow execution context.

    line 18
  3. Distinctive:

    Read that reason to distinguish execution setup failure from a provider refusal.

    line 64
  4. Distinctive:

    Never print a resolved secret, an OAuth token, or a profile credential.

    line 74
  5. Distinctive:

    Do not retry a failed write blind.

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Run a Sim Integration Tool

Sim holds the credentials. Read what the tool declares, bind auth from that declaration, and run it. Never put a live credential in the command.

Preflight

  • tools execute requires a personal API-key profile; a workspace API key is refused.
  • Find the tool with sim --output json tools list --search <term>, then read it with sim --output json tools get <toolId>. Never guess a tool id or a parameter name.
  • An unversioned name resolves to the newest version visible in the workspace, and the response echoes the id that answered. Use that id in the call.
  • Use a Function block for code requiring workflow execution context. An executor-delegation error from function_execute is not a missing user credential; do not invent internal context fields or change authentication to bypass it.

Bind auth from the declaration, not from habit

tools get labels every parameter with a visibility, and the label says where its value comes from:

  • user-or-llm — you supply it in --input.
  • user-only — you supply it, but pass a reference instead of the secret: {{VAR_NAME}} as the whole value, resolved server-side. List the available names with sim --output json secrets list; values are never returned. Any other value is sent verbatim. One exception: a parameter named credential or oauthCredential is the credential selector, not a secret — see below. It is refused in --input.
  • hidden — Sim fills it. Never put it in --input; it is refused.

Then bind the credential by the tool's own shape:

  • The tool declares oauth.required, or declares a required credential or oauthCredential parameter (Snowflake and others do the latter, with no oauth block) — find the credential with sim --output json credentials list --provider-id <provider> and pass --credential-id. It is the one place a credential is named; Sim places it where the tool expects it. Omitting it fails naming credentialId; putting it in --input under any spelling is refused.
  • hostedApiKey is always, or conditional and this call matches — omit the key entirely; Sim supplies its own and bills the workspace.
  • Otherwise the tool takes its own user-only key parameter; pass a {{VAR_NAME}} reference.

Your Sim login governs platform access; the selected provider credential determines the external identity. A different OAuth connection can act as a different bot or user. Do not substitute one to bypass an ownership error or a mismatch between advertised and accepted authentication modes.

--input accepts exactly what tools get publishes as yours to send. An undeclared key, a hidden one, or a credential under any name is a 400 that names the offending field — read it rather than guessing at a spelling.

Run and read the outcome

sim --output json tools execute <toolId> --credential-id <id> --input '{"...": "..."}'

--input also accepts @path or @-, which is how a payload too large or too awkward to quote reaches the command.

A tool result with status: "failed" exits non-zero and reports its reason in error.message. Read that reason to distinguish execution setup failure from a provider refusal; the status alone does not prove the service received the request. A 403 carrying error.details.code INTEGRATION_NOT_ALLOWED is a workspace policy decision, not a fixable argument — say so and stop.

Tool results follow the provider's pagination contract. When more pages remain, use the published cursor before reporting a total; the CLI's resource-list pagination does not paginate tool results.

Invariants

  • Never print a resolved secret, an OAuth token, or a profile credential. You hold a credential id and a variable name; that is all the call needs.
  • Do not retry a failed write blind. A tool call is not idempotent, and a retry can duplicate the message, issue, or record the first attempt created.
  • Build a workflow instead when the task needs more than one call, branching, or a schedule.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.