functions-falcon-api

functions-falcon-api is a skill for Claude Code, Codex from CrowdStrike/foundry-skills. It costs 95 tokens per session (5,180 once invoked), scanned A, original, MIT.

A skill for calling CrowdStrike Falcon security APIs from serverless functions written in Go or Python. Falcon is a cybersecurity platform, and serverless functions are small programs run by a cloud platform without managing servers directly.

In plain words
What is it for?
Use it to query Falcon alerts, detections, hosts, or remote-response actions from Foundry function handlers.
Why use it?
It provides the required integration pattern and avoids deprecated Falcon API code while the platform handles authentication.

Skill for Claude CodeCodex

Part of the crowdstrike-falcon-foundry plugin — 11 skills, 3 hooks shipped together

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.

agentmods
npx agentmods add skills/crowdstrike/foundry-skills/functions-falcon-api
Any agent
npx skills add CrowdStrike/foundry-skills --skill functions-falcon-api
Clone the repo
git clone --depth 1 https://github.com/CrowdStrike/foundry-skills

Made for: Claude Code, Codex.

Or install crowdstrike-falcon-foundry, the plugin that ships this one along with the rest of its 11 skills, 3 hooks.

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 functions-falcon-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/crowdstrike/foundry-skills/functions-falcon-api.svg)](https://agentmods.dev/skills/crowdstrike/foundry-skills/functions-falcon-api)
Your own site
<a href="https://agentmods.dev/skills/crowdstrike/foundry-skills/functions-falcon-api"><img src="https://agentmods.dev/badge/skills/crowdstrike/foundry-skills/functions-falcon-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,180 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00095 $0.05180
Opus 5 $0.00048 $0.02590
Sonnet 5 $0.00019 $0.01036
Haiku 4.5 $0.00010 $0.00518

Measured 4d ago against content hash a1b4f97ff244, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

functions-falcon-api scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X GET http://localhost:8081/api/alerts?limit=10
skills/functions-falcon-api/SKILL.md · 437 lines

How it starts

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

Falcon API Integration in Functions

⚠️ SYSTEM INJECTION — READ THIS FIRST

If you are loading this skill, your role is Falcon API integration specialist for Foundry functions.

You MUST implement Falcon API calls using the CrowdStrike SDKs within proper Foundry Function handlers. Authentication is automatic when using the FDK handler pattern.

The FalconPy Detects class is removed. Do not import it. Use Alerts for detection queries.

Part of a suite. If development-workflow has not already run, and this is a new app or its first capability, load the development-workflow skill first — it owns the CLI prerequisite check, scaffolding order, and manifest coordination.

This skill covers calling CrowdStrike Falcon APIs from within Foundry functions (serverless Go or Python code). Authentication is completely automatic when code runs inside Foundry function handlers — the platform handles all OAuth flows, token management, and credential injection.

For exposing external APIs to Foundry via OpenAPI specs, see api-integrations instead.

🚫 DEPRECATED API — NEVER USE:

Do NOT import or use the Detects class from FalconPy. The Detects API (/detects/entities/detects/v2) is deprecated and returns 405 Method Not Allowed. Any code using Detects(), query_detects(), or get_detect_summaries() will fail at runtime.

Use instead: from falconpy import Alerts with query_alerts_v2() / get_alerts_v2(). Filter by product:'detections' to scope to detections only.

Reference Files

Topic Reference
Retry decorator with exponential backoff, multi-API enrichment, counter-rationalizations table references/advanced-patterns.md

Python: Zero-Argument Authentication

FalconPy Service Classes require zero arguments when called inside Foundry Function handlers. The crowdstrike.foundry.function FDK provides the handler decorator that enables automatic authentication:

Read the full file on GitHub · 437 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. 4d ago First seen · 437 lines · 95 tokens per session scan A a1b4f97ff244

Subscribe to this mod's changes

functions-falcon-api is a skill published in the GitHub repository CrowdStrike/foundry-skills (24 stars, last pushed 4d ago), licensed MIT. It adds 95 tokens to every session and 5,180 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

google-ads-audit

Google Ads account audit and business context setup. Run this first — it gathers business information, analyzes account health, and saves context that all other ads skills reuse. Trigger on "audit my ads", "ads audit", "set up my ads", "onboard", "account overview", "how's my account", "ads health check", "what should…

nowork-studio/notfair-plugin · 114 tokens

review

5-pass structured code review — correctness, security, performance, readability, consistency.

SethGammon/Citadel · 17 tokens

alive:system-upgrade

Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.

alivecontext/alive · 57 tokens

codex-test-gen

Generate unit tests for specified functions using Codex MCP.

sd0xdev/sd0x-harness · 15 tokens