Skip to main content
Glama
mumez

smalltalk-interop-mcp-server

by mumez

Get Class Source

get_class_source
Read-only

Retrieve the source code of a Smalltalk class by providing its name. Use it to inspect class definitions directly from a local Pharo or Squeak image.

Instructions

Get the source code of a Smalltalk class.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
class_nameYesThe name of the class to retrieve source for

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.3.0

TDQS

B3.4/5.0
Behavior2/5

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

The description adds no behavioral context beyond what the readOnlyHint annotation already conveys. It does not mention return shape nuances, error behavior, or whether the source includes comments; the output schema would cover return format, but the description itself contributes no extra transparency.

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?

A single, direct sentence that front-loads the core purpose with no filler words. It is appropriately sized for a simple one-parameter tool.

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

Completeness4/5

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

For a read-only, one-parameter tool with a complete input schema and an output schema, the description is mostly sufficient for correct invocation. It falls slightly short only because it omits usage guidance to disambiguate from closely related class/method source tools.

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 description coverage is 100%, and the single parameter class_name is already described in the schema as 'The name of the class to retrieve source for.' The tool description repeats the same concept without adding detail about formatting, case sensitivity, or fully qualified names.

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?

The description states a specific action ('get') on a specific resource ('source code of a Smalltalk class'), clearly distinguishing it from siblings like get_method_source and get_class_comment. The class scope is unambiguous.

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?

No guidance is given on when to use this tool versus siblings such as get_method_source, get_class_comment, or search_classes_like. There are no explicit context cues or exclusions; an agent must infer usage from the name alone.

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