Skip to main content
Glama

functiongraph__UpdateFunctionCollectState

Updates a FunctionGraph function’s pinned status (collect state) by function URN and project ID, letting you control whether it appears at the top of function lists.

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>",
      "project_id": "<project_id>",
      "state": "<state>"
    },
    "name": "functiongraph__UpdateFunctionCollectState"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYes置顶状态
func_urnYes函数URN
project_idYes租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/5.0
Behavior2/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 of behavioral disclosure. It does not say whether this mutation requires specific permissions, whether the URN must reference an existing published version, whether the change is reversible, or what the response contains — all relevant for a state-mutating tool.

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 short phrase, front-loaded with the action and the attribute being changed, with no filler. Its brevity is the main weakness, but there is nothing to trim.

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?

For a mutation tool with zero annotations, no output schema, and three required path parameters (including a URN format and a project ID that must be obtained elsewhere), the description omits too much: permission requirements, effect of the state value, and error conditions are all unstated.

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 each of the three path parameters (state, func_urn, project_id) is already documented in the schema. The description adds no further meaning, so the baseline 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?

"更新函数置顶状态" names a specific verb (更新) and a specific attribute (置顶状态) of the function resource, which is more concrete than the many sibling Update* tools. However, it does not distinguish itself from siblings such as UpdateFunctionConfig, which an agent might reasonably confuse it with when looking for a function-level setting change.

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 gives no guidance on when to use this tool versus UpdateFunctionConfig or other Update* siblings, and no prerequisites are stated. The agent must infer usage entirely from the name and the parameter list.

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