# List Functions

> List Functions is a paid API for AI agents from agents.forwardlane.com, paid per call via MPP or x402, $0.02/call, status healthy (last checked 2026-10-13, last successful call 2026-10-07).

List and filter functions extracted from source code in financial-services repositories, with optional filtering by name, repository, and cyclomatic complexity.

## Facts

- Endpoint: GET https://agents.forwardlane.com/api/functions?utm_source=zero.xyz
- Price: $0.02/call
- Payment: MPP, x402
- Status: healthy
- Last checked: 2026-10-13
- Last successful call: 2026-10-07
- Success rate: 100% of calls made through Zero
- Activations on Zero: 4
- Provider: agents.forwardlane.com
- Website: https://agents.forwardlane.com
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agents-forwardlane-com-list-functions-606b178a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xxYaRwqZm2W2eR8krJ0qc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agents-forwardlane-com-list-functions-606b178a
```

Example prompt: Show me all functions from the 'risk-engine' repository that have a cyclomatic complexity of at least 10 — give me up to 200 results.

## When to prefer this

Use this endpoint when you need to enumerate, search, or filter functions extracted from private financial-services source code in the ForwardLane FL Repos Intelligence platform. Prefer it over class or contributor endpoints when your focus is on function-level granularity, cyclomatic complexity filtering, or function name searching. It is the right choice for technical due diligence workflows that require understanding code complexity at the function level.

## Known failure modes

- No functions match the filter criteria — returns empty list
- Invalid or unrecognized repository name — may return empty results or error
- limit value below 1 or above 1000 — validation error
- min_complexity below 1 — validation error
- Payment failure — 402 response if payment not provided or insufficient
- Upstream platform unavailable — 5xx error

## How this service works

List functions extracted from source code.

## Output

Returns a JSON object containing a list of function records extracted from source code in the FL Repos Intelligence platform. Each record includes function name, repository association, and cyclomatic complexity metrics. Results are filtered by the supplied criteria and capped at the specified limit (default 100, max 1000).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "title": "Name",
   "description": "Filter by function name (substring)"
  },
  "repo": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "title": "Repo",
   "description": "Filter by repository name"
  },
  "limit": {
   "type": "integer",
   "title": "Limit",
   "default": 100,
   "maximum": 1000,
   "minimum": 1
  },
  "min_complexity": {
   "anyOf": [
    {
     "type": "integer",
     "minimum": 1
    },
    {
     "type": "null"
    }
   ],
   "title": "Min Complexity",
   "description": "Minimum cyclomatic complexity"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "title": "Response List Functions Api Functions Get",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-forwardlane-com-list-functions-606b178a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.forwardlane.com](https://www.zero.xyz/host/agents.forwardlane.com/llms.txt)
