endorlabs/skills-ideas · Archived

endor-api

Execute custom queries against the Endor Labs API for advanced use cases. Use when the user asks to query findings, projects, packages, or metrics directly, says "endor api", "raw api query", "custom query", "list resources", or needs to run API filters not covered by other endor skills. Do NOT use for standard scanning (/endor-scan), dependency checks (/endor-check), or finding display (/endor-findings).

First seen Mar 21, 2026

Installation

$ npx skills add endorlabs/skills-ideas --skill endor-api

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from endorlabs/skills-ideas · top by installs.

npx skills add endorlabs/skills-ideas

Browse all from endorlabs/skills-ideas

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,972 B
  • docs SUMMARY.md 425 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Endor Labs Direct API Access

Execute custom queries against the Endor Labs API.

API Endpoints

Base URL: https://api.endorlabs.com

Endpoint Description
GET /v1/namespaces/{ns}/findings Query findings
GET /v1/namespaces/{ns}/projects List projects
GET /v1/namespaces/{ns}/package-versions Package versions
GET /v1/namespaces/oss/metrics OSS package metrics
POST /v1/namespaces/{ns}/version-upgrades Upgrade analysis
GET /v1/namespaces/{ns}/version-upgrades/{uuid} Upgrade results

Workflow

Step 1: Understand the Query

Parse the user's request for:

  1. Resource type: findings, projects, packages, metrics, etc.
  2. Filter: severity, category, package, date, etc.
  3. Output: what data to return

Step 2: Execute Query

MCP Tools (preferred):

MCP Tool Use For
scan Scan repo for vulnerabilities, secrets, SAST, dependencies
get_resource Retrieve any resource by UUID or name
checkdependencyfor_vulnerabilities Check a package version for known CVEs
checkdependencyfor_risks Check a package for vulnerabilities AND malware (prefer over above)
getendorvulnerability Get detailed CVE/GHSA info
security_review AI-powered code diff security review (Enterprise only)

CLI (for operations not covered by MCP):

npx -y endorctl api list --resource {Resource} -n $ENDOR_NAMESPACE --filter "{filter}" 2>/dev/null
npx -y endorctl api get --resource {Resource} -n $ENDOR_NAMESPACE --uuid {uuid} 2>/dev/null
npx -y endorctl api create --resource {Resource} -n $ENDOR_NAMESPACE --data '{json}' 2>/dev/null

For CLI parsing gotchas, read references/cli-parsing.md.

Common Resource Types: Finding, Project, PackageVersion, DependencyMetadata, FindingPolicy, ExceptionPolicy, RepositoryScan

Step 3: Filter Syntax

field==value                          # Equality
field contains value                  # Contains
field not contains value              # Not contains
field1==value1 and field2==value2     # AND
field in [value1, value2]             # In list
field > value / field < value         # Comparison

Filter examples:

# Critical reachable vulnerabilities
--filter "spec.level==FINDING_LEVEL_CRITICAL and spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION"

# Findings for a project
--filter "spec.project_uuid=={project_uuid}"

# Projects by name
--filter "meta.name contains '{name}'"

# Package metrics (use oss namespace)
npx -y endorctl api list --resource Metric -n oss \
  --filter "meta.name==package_version_scorecard and meta.parent_uuid=={pkg_uuid}" 2>/dev/null

Step 4: Present Results

## API Query Results

**Resource:** {resource_type}
**Filter:** {filter}
**Results:** {count}

### Data

{Formatted table or structured output}

For Finding field paths, read references/cli-parsing.md.

For data source policy, read references/data-sources.md.

Error Handling

Error Action
Invalid filter syntax Show correct syntax with examples
Resource not found Verify resource type and namespace
Permission denied Check namespace access
Auth error Suggest /endor-setup
Rate limited Wait and retry, or reduce page size

Safety

  • Read operations (list/get) by default
  • Create/update/delete require explicit user confirmation
  • Never pass sensitive data in filter strings