Back to products
Gram Functions

Gram Functions

Define agent tools in TypeScript & deploy as MCP servers

Overview

What it is

Speakeasy is a platform that provides developers with the tools they need to craft exceptional API experiences. You can use Speakeasy to generate SDKs, build MCP servers, create Terraform providers and automate documentation.

Intent

I need it when

Secure AI tool access with OAuth and environment-based permissions

Gram Functions integrates OAuth authentication and environment configuration, enabling organizations to control which AI agents and users can access specific tools with granular permission scoping

Deploy MCP servers to production with minimal infrastructure overhead

Gram Functions supports deployment to Cloudflare Workers and custom hosting, allowing teams to host MCP servers without managing complex infrastructure while maintaining full control over tool execution

Build TypeScript-based AI tools and functions that agents can call

Gram Functions provides a TypeScript framework for creating agent-callable tools with type safety and built-in MCP support, enabling developers to define functions that AI agents can discover and execute directly from code

Monitor and observe AI tool usage across the organization

Gram Functions integrates with Speakeasy's observability platform to track tool calls, usage patterns, and agent interactions, providing visibility into how AI tools are being used across teams

Create curated toolsets for different teams and AI agents

Gram Functions allows teams to organize tools into custom toolsets with role-based access control, enabling different departments to access only approved tools relevant to their workflows

Drop

Not a fit when

  • User needs a fully managed SaaS solution with no deployment or infrastructure setup required
  • Organization requires pricing transparency and clear cost structure before evaluation
  • Team lacks TypeScript expertise or prefers low-code/no-code tool creation without code
  • Use case requires real-time data synchronization rather than discrete tool calls
  • Project needs immediate production deployment without custom configuration or environment setup
Commercials

Pricing

Pricing not specified