Skip to main content
Glama

get_fields

Retrieve a list of fields from a .NET or Mono assembly type, including name, field type, visibility, and static/read-only modifiers.

Instructions

List the fields of one type (Mono / .NET pure assembly).

Same routing pattern as :func:get_methods. The CLI subcommand is list-fields in :mod:Re.Dotnet.Cli.Ops.MetadataOps.

A12 (v2.8.1): added so the CD-3 patch coordinates (which need the field name _isSteam) can be discovered without decompile_type first.

Args: path: path to a .dll / .exe .NET or Mono assembly fqn: fully-qualified type name limit: max rows to return (default 200)

Returns::

{"path": "...", "fqn": "...", "type_fqn": "...",
 "count": N,
 "fields": [{"name": "...", "field_type": "...",
             "is_public": bool, "is_static": bool,
             "is_read_only": bool, "is_literal": bool,
             "constant": "..."}, ...]}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
fqnYes
limitNo
Behavior4/5

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

No annotations provided, so description carries full burden. Describes the read-only listing behavior, default limit (200), and detailed return structure. No side effects mentioned but not needed for a listing tool.

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 sections, front-loads main purpose. Some technical references (CLI subcommand, version note) add length but are contextually relevant. Not overly verbose.

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?

No output schema, but description provides full return JSON structure. No annotations, but covers all necessary behavioral and param details. Complete for a 3-parameter listing tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage 0%, but description includes Args block explaining each parameter: path (path to .dll/.exe), fqn (fully-qualified type name), and limit (max rows, default 200). Adds meaning beyond schema titles and types.

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?

Clearly states 'List the fields of one type (Mono / .NET pure assembly).' Verb 'list' and resource 'fields of a type' are specific. Distinguishes from siblings like `get_methods` (methods) and `decompile_type` (full decompilation).

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

Usage Guidelines4/5

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

Provides usage context: same routing as `get_methods`, and a version note explaining its use case for discovering field names without `decompile_type`. Lacks explicit when-not or exclusion scenarios, but gives clear context.

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/Heretek-RE/re-dotnet'

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