Skip to main content
Glama

VisioForge SDK Assistant

get_code_example

Read-onlyIdempotent

Get a code example for a common VisioForge SDK scenario. Returns complete, working C# code snippets that demonstrate how to use the SDK for tasks like video capture, RTSP streaming, media playback, and more.

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": {
      "scenario": "<scenario>"
    },
    "name": "get_code_example"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenarioYesScenario name. Available: 'webcam-capture' (capture from webcam to MP4), 'rtsp-playback' (play RTSP stream), 'rtsp-to-mp4' (record RTSP to MP4 file), 'webcam-to-rtmp' (stream webcam to RTMP/YouTube/Facebook), 'file-playback' (play a media file), 'video-editing' (basic video editing), 'screen-capture' (capture screen to file), 'media-info' (read media file information), 'pipeline-basic' (build a basic media block pipeline), 'virtual-source' (generate test video/audio), 'hls-streaming' (stream to HLS), 'audio-capture' (capture audio only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful return-shape context that the annotations and absent output schema do not: the result is a complete, working C# snippet, which tells the agent what it will get and in what language.

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?

Two sentences, front-loaded with the core action and return type. The trailing 'and more' is minor filler but the rest earns its place.

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?

With no output schema, the description correctly compensates by stating the return format (complete working C# code snippets). Combined with a fully documented single parameter and clear read-only annotations, an agent has everything needed to invoke it correctly.

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 coverage is 100% and the scenario property already enumerates and explains all twelve accepted values. The description's phrase 'tasks like video capture, RTSP streaming, media playback, and more' merely restates a subset of that enum, adding no syntax or selection guidance beyond the schema.

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 ('Get a code example for a common VisioForge SDK scenario') and lists concrete scenario families (video capture, RTSP streaming, media playback). It does not explicitly distinguish itself from similar snippet-producing siblings like get_pipeline_template or get_nuget_packages_snippet, so it stops short of a 5.

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?

Framing the tool around 'common SDK scenarios' implies when to reach for it, but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g. use get_pipeline_template for pipeline scaffolding). The guidance is inferable rather than stated.

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.