Skip to main content
Glama

write visual program draft

native.write_visual_program_draft
DestructiveIdempotent

Save a complete bounded graph or TSX scene source checkpoint. Read the visual programs operating contract before authoring. Failed compilation preserves this source and the last usable revision.

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": {
      "work_id": "<work_id>",
      "arguments": "<arguments>",
      "expected_catalog_version": "<expected_catalog_version>",
      "read_skills": "<read_skills>",
      "request_key": "<request_key>"
    },
    "name": "native.write_visual_program_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
work_idYes
argumentsYes
read_skillsYesExact required native skills and their dependencies, copied from the accepted session bootstrap's skills array. Include only entries in that array. General mcp.* guides and native.{studio}.instructions are guidance, not native skill proofs.
request_keyYes
publication_proposal_idNoFor native Social scheduling, the exact server-approved publication proposal. This identifier cannot confer approval by itself.
expected_catalog_versionYesFor a new session, read a studios/{studio}/native/{pack} child toolset and copy invocation.catalog_version from a native tool descriptor. Do not use the top-level library version. For calls in an existing session, use that session proposal's catalog_version.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Beyond the annotations, the description adds a genuinely useful failure semantic: failed compilation preserves the source and the last usable revision, which tells the agent that a rejected write is not data loss. That is real value on top of the declared destructive/idempotent hints. However, it never explains the optimistic-concurrency behavior implied by expected_source_revision or how request_key deduplicates writes, so the mutation contract remains partly opaque.

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?

Three tight sentences with the action front-loaded, followed by the prerequisite and the failure guarantee. No filler or repetition, though the ordering could put the contract-reading prerequisite before the action for even faster scanning.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the failure-preservation note covers the riskiest behavior. Still, for a destructive, idempotent, open-world write with six parameters including a nested arguments object, the description should have stated the revision-conflict contract and the idempotency role of request_key.

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 only 50%, and the description adds no parameter meaning at all: it never explains work_id, request_key, expected_source_revision (the conflict-detection field), or the structure of arguments.source. The fields that are documented in the schema (read_skills, expected_catalog_version, publication_proposal_id) carry their own text, so the description contributes nothing here.

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

Purpose4/5

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

States a specific verb and resource: saving a complete bounded graph or TSX scene source checkpoint. It is clear what the tool writes, but it never contrasts itself with nearby siblings such as native.build_visual_program or native.apply_visual_program, so the agent must infer that this one only persists a draft rather than compiling or applying it.

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

Usage Guidelines3/5

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

The description gives one prerequisite ("Read the visual programs operating contract before authoring") which is useful sequencing guidance. It does not say when to choose this over build/apply visual program, nor what condition should precede a write versus a read via native.inspect_visual_program.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources