---
name: "gorilla-openfunctions-api-caller"
description: "Execute complex multi-argument API calls with Gorilla OpenFunctions models."
metadata:
  author: "Shishir Patil"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "call apis with gorilla"
  - "generate rest api function call"
  - "zero-shot function routing"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Gorilla OpenFunctions Zero-Shot API Function Caller

Leverages Gorilla OpenFunctions: formatting API catalogs, selecting matching REST endpoints, resolving nested parameters, and generating executable Python and cURL commands.

## When to Invoke
Invoke this skill whenever you need to:
- call apis with gorilla
- generate rest api function call
- zero-shot function routing

## Execution SOP & Rules
1. Format candidate API definitions with clear parameter names, types, and defaults.
2. Prompt the model using standard Gorilla functions prompt template tokens.
3. Parse generated function calls and validate parameter data types before invoking external endpoints.
4. Handle authentication and header injection separately from model-generated arguments.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
