Settings

Theme

Show HN: Gram Functions – Serverless platform for turning code into LLM tools

speakeasy.com

23 points by disintegrator 2 months ago · 0 comments · 2 min read

Reader

Hi HN, Georges from the Gram team here. We're really excited to share a major update to Gram, our platform for curating tools for agents, in the form of Gram Functions. Gram initially started out by letting users upload OpenAPI documents and turning them into tools that can be curated into small MCP servers that power your agentic use cases.

We've known for quite some time that many existing REST APIs are simply not suitable as LLM tools and we wanted to solve this problem by letting users simply write code and we would take care of deploying that code for them and hosting MCP servers. We call this Gram Functions and you can get started with it today by running `pnpm create @gram-ai/function` (or `bun create ...`, `npm create ...`).

Under the hood, when you send us code, we provision fly.io machines that run this code behind a Go server listening for tool calls. Once you've deployed, you'll be able to use the Gram dashboard to create a number of MCP servers that have tools generated from this code and any OpenAPI documents you may want to upload. The key thing is you create small MCP servers for your different agents by cherry picking from these sources. This approach to curation helps manage context bloat that massive MCP servers tend to introduce.

Hope you give it a try! The team will be around to respond to questions and feedback.

PS: If you'd like to poke at some code, Gram's code is up here: https://github.com/speakeasy-api/gram

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection