Skip to main content
Glama
GameMaker Documentation MCP Server

GameMaker Documentation MCP Server

by Petah

lookup_gamemaker_function

Retrieves GameMaker Language function documentation by name, including optional code examples, to help developers understand and use GML functions.

Instructions

Look up GameMaker Language (GML) function documentation

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": {
      "function_name": "<function_name>"
    },
    "name": "lookup_gamemaker_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
function_nameYesThe name of the GML function to look up (e.g., "draw_sprite", "instance_create_layer")
include_examplesNoWhether to include code examples in the response (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.12

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, yet it discloses nothing about the response shape, behavior on an unknown function name, or whether results are cached/static. The read-only nature is inferable from "look up" but nothing beyond that is stated.

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?

A single short sentence with zero filler and the key noun phrase front-loaded. It is efficient, though the terseness contributes to the missing guidance rather than earning the space back.

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?

For a simple two-parameter read tool with a fully documented schema and no output schema, the definition is minimally sufficient to invoke it. It falls short on what a caller would want to know: return content, behavior for unknown names, and when to prefer the sibling search tool.

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%, with both function_name and include_examples fully described including an example and a default, so the schema already does the work. The description adds no additional meaning such as exact-match vs partial-match semantics for function_name or how include_examples affects response size.

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?

The description states a specific verb ("Look up") and resource ("GameMaker Language (GML) function documentation"), so the agent knows exactly what it retrieves. It does not distinguish this from the sibling search_gamemaker_docs or list_functions_by_category, leaving the agent to guess which lookup path to take.

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?

There is no when-to-use guidance, no exclusions, and no mention of the sibling documentation-search tool. The description gives no signal about whether this is for exact-name lookups versus keyword search, which is precisely the ambiguity an agent faces given the siblings.

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