Skip to main content
Glama

functiongraph__UpdateFuncSnapshot

Enable or disable FunctionGraph function snapshots for Java runtime functions, excluding latest versions, to control snapshot availability.

Instructions

[FUNCTIONGRAPH] 禁用/启动函数快照,仅支持java运行时函数,且为非latest版本才能开启函数快照功能。

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": {
      "action": "<action>",
      "function_urn": "<function_urn>",
      "project_id": "<project_id>"
    },
    "name": "functiongraph__UpdateFuncSnapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes禁用/启用
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

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that this is a mutating enable/disable toggle plus runtime and version eligibility constraints. It does not say what actually happens on enable (snapshot creation cost, latency, reversibility, permissions) or whether disable undoes anything.

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

Conciseness4/5

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

A single compact sentence with the eligibility constraints front-loaded, no filler. The bracketed product prefix is minor noise but not harmful.

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

Completeness3/5

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

For a 3-parameter mutation with no annotations and no output schema, the description covers eligibility but not effect, idempotency, or error conditions (e.g., what happens when called on latest or non-Java functions). Adequate minimum, with clear gaps.

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 coverage is 100% and the action enum (enable/disable) is already documented, so the schema does the heavy lifting. The description adds one relevant constraint on function_urn — the referenced function must be Java runtime and a non-latest version — but says nothing about project_id or the URN format.

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?

The description gives a specific verb pair (禁用/启动) and resource (函数快照), so the agent can tell it toggles snapshot state rather than querying it like ShowFuncSnapshotState. It is clear but does not explicitly contrast with that sibling.

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

Usage Guidelines4/5

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

It states real preconditions for use: only Java-runtime functions and only non-latest versions can have snapshots enabled. What is missing is any routing to alternatives (e.g., ShowFuncSnapshotState for reading state) or explicit when-not guidance beyond the runtime/version limits.

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