Skip to main content
Glama
brightlikethelight

NetworkX MCP Server

set_edge_attributes

Set or update edge attribute values in a NetworkX graph by specifying source, target, attribute, and value, enabling custom metadata on specific edges.

Instructions

Set attributes on one or more edges

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
graphYes
attributesYesList of {source, target, attr, value}
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, but it only says 'Set attributes.' It does not clarify whether existing attributes are overwritten, whether edges are created if missing, side effects, error handling, or permission requirements. This is a significant transparency gap.

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 concise sentence with no fluff. It is appropriately short for a simple tool, though it could include more useful detail without becoming verbose.

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?

The tool involves a nested parameter structure and has no annotations or output schema. The description is too minimal to provide complete context for an AI agent, lacking information about return values, expected errors, edge cases, or operational behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%: only the 'attributes' parameter has a minimal description ('List of {source, target, attr, value}'), while 'graph' has none. The tool description adds no parameter-level meaning, failing to compensate for the low coverage. It doesn't explain what types 'graph' expects or the semantics of attr/value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is a clear, specific verb+resource statement: 'Set attributes on one or more edges.' It establishes the exact action (set), target (edges), and scope (one or more). It also distinguishes from sibling tools like set_node_attributes by explicitly stating edges.

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 provides no guidance on when to use this tool versus alternatives, nor does it mention prerequisites such as the graph existing or edges already being present. Usage is only implied by the name/description, with no explicit when or when-not scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/brightlikethelight/networkx-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server