gram-functions

Deploys user-provided JS/TS and Python code as callable tools in Gram via manifests and JWT auth.

258|33|Updated Aug 6, 2025
One-click install
npx skills add https://github.com/speakeasy-api/gram --skill gram-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gram-functions
Source: https://github.com/speakeasy-api/gram/tree/main/.agents/skills/gram-functions
Command: npx skills add https://github.com/speakeasy-api/gram --skill gram-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gram Functions provides a serverless way to deploy and run user-provided code as callable tools within Gram deployments, enabling dynamic tool execution for conversations with AI agents.

Core Features & Use Cases

  • Deploy and run JavaScript/TypeScript or Python code as tools within Gram deployments.
  • Tools can be invoked by AI agents during conversations, enabling dynamic capabilities and integration with MCP servers.
  • Secure execution with JWT authentication and isolated runtimes for reliability.

Quick Start

Upload a ZIP containing your function code and a manifest to initialize a Gram Functions deployment and make your tools callable.

Frequently Asked Questions about gram-functions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy custom Python code as callable tools for AI agents?

To deploy custom Python code as callable tools, package your function code and a manifest file into a ZIP archive, then upload it to initialize a Gram Functions deployment for AI agents to invoke.

Can I run JavaScript and TypeScript functions as serverless tools within MCP servers?

Yes, you can run JavaScript and TypeScript functions as serverless tools. Gram Functions provides isolated runtimes and integrates with MCP servers to enable dynamic tool execution for AI agents.

What is the best way to securely execute user-provided code as tools for AI conversations?

The best way to securely execute user-provided code is using Gram Functions, which provides isolated execution environments and requires JWT authentication to ensure reliable and secure tool invocation.

Do I need a manifest file to deploy serverless functions for AI agents?

Yes, you need a manifest file describing your tools along with your function code in a ZIP archive. This manifest is required to initialize the deployment and make your JavaScript, TypeScript, or Python tools callable.

How does isolated execution work for serverless AI tools?

Isolated execution for serverless AI tools works by running user-provided code in dedicated, separated runtimes for JavaScript, TypeScript, and Python, ensuring reliable and secure operations when invoked by AI agents.

What are the limitations of using Gram Functions for AI tool deployment?

Limitations include being restricted to JavaScript, TypeScript, or Python runtimes, requiring a manifest file for deployment, and needing JWT authentication for secure access during AI agent conversations.