Skip to main content
Glama

Invoke Firecracker Function

invoke_function
DestructiveIdempotent

Run a VPSnet Firecracker function and optionally wait for output; poll the returned invocation UUID for status and usage billing.

Instructions

Invoke a Firecracker Function. PAID per invocation (CPU/memory usage billed from account). Use wait=true when output/logs are needed; asynchronous invocations do not retain output. Poll get_function_invocation using the returned invocation_uuid for status and usage. One Idempotency-Key is generated per tool call unless idempotency_key is supplied; reuse an explicit key only for an exact retry so the same logical step is not double-run or double-billed (response may include replayed=true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNoWait synchronously for the result
inputNoInput payload passed to the function (string; JSON text is fine)
function_idYesFunction ID from list_functions
idempotency_keyNoOptional stable key for this exact logical invoke (e.g. agent step id). Exact retries with the same key return the original invocation; changed input or wait semantics are refused.
acknowledge_usage_billingNoConfirm the customer requested this execution and understands that it uses their VPSnet balance. Required for OAuth connections.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructive/openWorld/idempotent, but the description adds context they cannot: per-invocation billing charged to the account, that async invocations do not retain output, that a key is auto-generated per call, and that replays may surface a replayed=true marker. These are operationally critical traits beyond the structured hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action, then cost, then execution mode, then idempotency. Four dense sentences with no filler; each one carries a distinct, decision-relevant fact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A paid, asynchronous-by-default, idempotent invocation tool with no output schema needs exactly this: cost disclosure, sync/async tradeoff, polling path, and retry semantics. Nothing required to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline is 3, but the description adds the rationale behind wait ('when output/logs are needed') and the auto-generation/reuse lifecycle of idempotency_key, which the schema only partially captures. acknowledge_usage_billing is left to the schema, so it is not a full 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Invoke a Firecracker Function') and immediately differentiates itself from the sibling get_function_invocation by assigning that tool the polling role. An agent can tell what this does and how it relates to list_functions/get_function without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit conditions: use wait=true when output/logs are needed, otherwise poll get_function_invocation with the returned invocation_uuid, and reuse an explicit idempotency_key only for an exact retry. This is the when/when-not/alternative pattern done well.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools