Skip to main content
Glama

Get function invocation

get_function_invocation
Read-onlyIdempotent

Retrieve a Firecracker Function invocation's status and usage cost, including output and logs when retained. Use it to monitor execution results and track costs by function and invocation ID.

Instructions

Get a Firecracker Function invocation's status and usage cost. Output/logs are available when output_retained is true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "function_id": "<function_id>",
      "invocation_id": "<invocation_id>"
    },
    "name": "get_function_invocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
function_idYesFunction ID from list_functions
invocation_idYesThe invocation_uuid returned by invoke_function or list_function_invocations

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral context beyond that: it discloses that output/logs are only retrievable when output_retained is true, which the agent could not learn elsewhere. It does not describe pagination or error behavior, but for a read tool this is solid.

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?

Two short sentences, with the core purpose front-loaded and the conditional availability caveat second. Nothing is padded or redundant.

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

Completeness4/5

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

With no output schema, the description carries the burden of describing the return, and it does name the two key returned items (status and usage cost) plus the output-retention caveat. Cross-references to list_functions/invoke_function live in the schema rather than the description, but the essential information for calling correctly is present.

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

Parameters3/5

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

Schema description coverage is 100%: both parameters carry descriptions, including cross-references ('Function ID from list_functions', 'invocation_uuid returned by invoke_function or list_function_invocations'). The description adds no parameter-level detail and instead mentions output_retained, a response field rather than an input. Baseline 3 is appropriate.

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

Purpose4/5

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

States a specific verb and resource ('Get a Firecracker Function invocation's status and usage cost'), which is more informative than a bare restatement of the title. However, it does not explicitly differentiate itself from nearby siblings like get_function or list_function_invocations, leaving the agent to infer the distinction from the resource noun alone.

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

Usage Guidelines3/5

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

The sentence 'Output/logs are available when output_retained is true' functions as an implicit usage cue for when output is worth fetching. There is no explicit when-to-use/when-not-to-use guidance and no named alternative for listing versus fetching a single invocation, so guidance remains implied rather than stated.

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