Skip to main content
Glama

functiongraph__InvokeFunction

Synchronously invokes a FunctionGraph function and waits for its execution result, enabling callers to retrieve the function's response immediately.

Instructions

[FUNCTIONGRAPH] 同步调用指的是客户端请求需要明确等到响应结果,也就是说这样的请求必须得调用到用户的函数,并且等到调用完成才返回。

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_urn": "<function_urn>",
      "project_id": "<project_id>"
    },
    "name": "functiongraph__InvokeFunction"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。
function_urnYes函数的URN,详细解释见FunctionGraph函数模型的描述。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose the key trait: the call blocks until the user's function finishes executing and then returns the result. However, it says nothing about timeouts, error propagation from the function, retry behavior, or permission/authorization requirements for invoking a function URN.

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

Conciseness3/5

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

It is a single sentence with no padding, but the '[FUNCTIONGRAPH]' tag prefix is noise and the sentence is spent on a generic definition rather than on the tool's own action and its distinguishing behavior. It is concise without being informative.

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

Completeness2/5

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

There is no output schema and no annotations, so the description should explain what an invocation returns (function output payload, status, request ID) and what failure modes look like. It covers only the blocking nature of the call, leaving the return contract and error behavior entirely undocumented for a tool whose whole purpose is returning a function's result.

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%, so both project_id and function_urn are already documented in the schema, including an example URN format. The description adds no meaning about how these parameters affect invocation behavior, so the baseline of 3 applies.

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

Purpose3/5

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

The description defines what synchronous invocation means (the client must wait for the user's function to complete before a response is returned) but never states the action directly as 'invoke the specified function and return its result.' It implies the verb/resource pairing via the name and the explanation of sync semantics, which implicitly contrasts with the AsyncInvokeFunction sibling, but an agent must infer the actual operation.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no exclusion, and no naming of the AsyncInvokeFunction alternative even though that sibling is the obvious fork in the road. At best, the phrase 'requests that must wait for the result' weakly implies the selection criterion, leaving the choice between sync and async to inference.

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