Skip to main content
Glama
chadrik

maya-mcp-server

by chadrik

add_session

Add a Maya session manually by specifying host and port. Use this when auto-discovery does not find your Maya session.

Instructions

Manually add a Maya session at a specific host and port.

Use this when auto-discovery doesn't find your Maya session, or to connect to a Maya instance on a specific port.

Args: host: The session host (default: "127.0.0.1") port: The session port number (default: 7001)

Returns: Session information for the added session

Before using this, ensure Maya has a Python command port open. In Maya's Script Editor (Python), run: import maya.cmds as cmds cmds.commandPort(name=':7001', sourceType='python')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNo127.0.0.1
portNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidYes
hostYes
portYes
userYes
scene_nameNo
scene_pathNo
session_keyYes
maya_versionNo
Behavior4/5

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

Describes the action as manual addition, notes prerequisites (open command port), and mentions return type. Lacks detail on potential side effects, but given no annotations, it is fairly transparent.

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?

Well-structured with clear sections (use case, args, returns, prerequisites). The code example adds length but is helpful. Concise overall.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers when to use, prerequisites, parameter defaults, and return type. Adequate for a two-parameter tool with an output schema.

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?

Parameters are described minimally as host and port, with defaults. Schema coverage is 0%, so description adds some value but doesn't provide deeper semantics like valid ranges or formats.

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?

Explicitly states it manually adds a Maya session at a specific host and port, distinguishing from auto-discovery. Clear verb-resource combination.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to use when auto-discovery fails or for specific ports, and provides prerequisite steps with code example.

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/chadrik/maya-mcp-server'

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