Skip to main content
Glama

functiongraph__UpdateTracing

Configure or update a function's tracing settings by enabling or changing APM access keys, or disable tracing by passing empty AK/SK values.

Instructions

[FUNCTIONGRAPH] 修改函数调用链配置,开通/修改传入aksk,关闭aksk传空

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__UpdateTracing"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。
tracing_akNoapm的ak
tracing_skNoapm的sk
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?

No annotations are supplied, so the description carries the full burden. It does disclose a genuinely non-obvious behavior – that an empty aksk turns tracing off, while a non-empty one enables or updates it – but it says nothing about required permissions, the effect on existing tracing data, or whether the change is reversible.

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 action stated first and the parameter rule second; nothing is wasted. It is dense and the joined term 'aksk' is slightly terse, but the structure is front-loaded and readable.

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?

For a 4-parameter mutation tool with full schema coverage and no output schema, the description covers the action and the one non-obvious parameter rule. Missing are permission/prerequisite context and the effect of the change, which keeps it out of the top band.

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, and the description exceeds it by explaining the operational semantics of tracing_ak/tracing_sk: they are the enable/modify switch, and an empty value disables tracing. That is meaning the schema's bare 'apm的ak'/'apm的sk' labels do not convey.

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 states a specific verb and resource ('修改函数调用链配置' – modify the function's tracing/call-chain configuration), which is clearly distinguishable from the sibling ShowTracing. It does not name any sibling explicitly, but the read/write split is obvious from the verb.

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?

It gives conditional guidance for the aksk parameters (pass aksk to enable or modify, pass empty to disable), which tells the agent how to operate the tool. It stops short of saying when to use this tool versus alternatives such as ShowTracing, or what prerequisites (APM availability, permissions) must hold before calling it.

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