Skip to main content
Glama

functiongraph__ShowTenantMetric

Retrieve FunctionGraph function-flow metrics such as invocation count, errors, runtime, running instances, and rejected requests for a specified project and time range.

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": {
      "project_id": "<project_id>"
    },
    "name": "functiongraph__ShowTenantMetric"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNo时间段,单位为分钟
end_timeNo结束时间,精确到ms的时间戳
project_idYes项目ID。
start_timeNo开始时间,精确到ms的时间戳
metric_typeNo指标类型,为空或不在取值范围内时,查询所有指标。取值范围:totalCount 调用次数;errorCount 错误次数; averageDuration 运行时间;running 运行中个数;rejectCount 拒绝个数。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not say whether the call is read-only, what permissions or project scope are required, whether the time range is mandatory, or what the response contains. For a metric query with zero annotation coverage, this is a substantial gap.

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?

The description is a single short phrase with no wasted words, but its brevity comes from under-specification rather than disciplined concision. There is no structure to front-load because there is essentially no content.

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?

With five parameters, no annotations, and no output schema, the definition needs more than a one-line label. Nothing tells the agent about time-range semantics, default metric aggregation, or return values, leaving the definition inadequate for a moderately complex query tool.

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 the schema already documents period, start_time, end_time, project_id, and metric_type with examples and a value list. The description adds no syntax, format, or constraint detail beyond what the schema provides, so the baseline 3 is appropriate.

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 states a verb and resource ('获取函数流指标' – get function flow metrics), but the Chinese term '函数流' is ambiguous and reads close to the sibling tools ShowWorkFlowMetric and ShowFunctionMetrics. The description does not distinguish what scope of metric this tool covers versus those siblings, so an agent cannot confidently tell them apart.

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?

No when-to-use guidance, no prerequisites, and no alternatives are named. The agent must infer from the name and parameters alone whether to call this or ShowWorkFlowMetric/ShowFunctionMetrics.

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