Skip to main content
Glama
inbarajaldrin

NetworkX Graph MCP Server

set_edge_condition

Assign condition labels to edges in NetworkX graphs to define branching logic and decision paths for state management and analysis.

Instructions

Set condition label for an edge.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
graph_idYes
fromYes
toYes
conditionNo
Behavior2/5

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

With no annotations provided, the description carries full burden but discloses minimal behavioral traits. 'Set' implies a mutation operation, but it doesn't specify whether this overwrites existing conditions, requires specific permissions, has side effects on graph execution, or what happens if the edge doesn't exist. No rate limits, error conditions, or response format are described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is maximally concise with a single sentence that directly states the tool's function. There's zero wasted language or redundancy. However, this conciseness comes at the cost of completeness, as it leaves many important details unspecified.

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 4 parameters, 0% schema coverage, no annotations, and no output schema, the description is severely incomplete. It doesn't address what the tool returns, error conditions, the nature of 'condition labels' in this graph system, or how this operation fits within the broader graph manipulation context provided by sibling tools.

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?

With 0% schema description coverage for all 4 parameters, the description adds no semantic information beyond what's inferred from parameter names. It doesn't explain what 'graph_id', 'from', 'to', or 'condition' represent, their formats, or constraints. The description mentions 'edge' and 'condition label' but doesn't map these concepts to the specific parameters.

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 'Set condition label for an edge' clearly states the action (set) and target (condition label for an edge), but it's vague about what a 'condition label' represents in this graph context. It distinguishes from siblings like 'add_edge' or 'remove_edge' by focusing on labeling rather than structural changes, but doesn't specify how this differs from 'set_edge_order' or other labeling tools.

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. With siblings like 'add_edge', 'remove_edge', 'set_edge_order', and 'update_node', there's no indication whether this is for workflow conditions, validation rules, or other graph metadata. No prerequisites, exclusions, or complementary tools are mentioned.

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/inbarajaldrin/networkx-graph-mcp-server'

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