Skip to main content
Glama

functiongraph__ListFunctionStatistics

Retrieves execution metrics for a specified FunctionGraph function over a chosen time period, helping monitor performance and diagnose runtime behavior.

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": {
      "func_urn": "<func_urn>",
      "period": "<period>",
      "project_id": "<project_id>"
    },
    "name": "functiongraph__ListFunctionStatistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodYes获取最近多少分钟内函数执行的指标。
func_urnYes函数的URN,详细解释见FunctionGraph函数模型的描述。
project_idYes租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must provide all behavioral context. The description contains only the verb 获取 (get), which implies a read operation, and the description does not state authentication or authorization requirements, how much data is returned, the size of the default time window, or the shape or limits of the results.

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?

The description is a single sentence that starts with the key scope, and it contains no redundant wording or padding. Its brevity is efficient rather than padded, although the brevity also shows that necessary detail is missing.

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?

This is a three-parameter tool with no annotations and no output schema. The description says nothing about what metric series are returned, the granularity of those metrics, or any limits on the results, so it is not complete enough for an agent to call it confidently.

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?

The schema description coverage is 100%, so all three parameters (period, func_urn, project_id) are already documented in the schema. The description only acknowledges that a time period exists; it does not add information about units, allowed ranges, or constraints on URN matching beyond what the schema already states.

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: retrieve function runtime metrics for a given time period. An agent can tell it apart from clearly different siblings such as CreateFunction. It does not, however, distinguish this tool from closely named siblings such as ListStatistics or ShowFunctionMetrics.

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?

The description contains no guidance about when this tool should be used, when it should not be used, or which alternatives are available. Because the functiongraph namespace contains several overlapping metrics and statistics tools, this omission is significant.

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