Skip to main content
Glama
sandervd
by sandervd

get_entity

Fetch a specific class, slot, enum, prefix, or import from a LinkML schema file at a given commit, using the workspace and entity name to locate it.

Instructions

Fetch one LinkML entity from a schema file at a specific commit. entity_type must be class, slot, enum, prefix, or import.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesEntity name to fetch.
pathNoRelative schema path. Defaults to schema.yaml.schema.yaml
commit_idYesGit commit id to inspect.
entity_typeYes
workspace_idYesWorkspace id returned by init_workspace.
Behavior4/5

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

With no annotations, the description carries the full burden. 'Fetch' conveys a read-only operation, and 'at a specific commit' discloses that the lookup is version-pinned. The required entity_type domain is also stated, though error behavior and return format are not addressed.

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?

Two compact sentences with no filler. The action and resource are front-loaded, and the entity_type constraint is cleanly separated for readability.

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 simple single-entity fetch tool, the description plus schema provides enough practical detail: what to fetch, from where, and under which constraints. The main omissions are a direct pointer to read_schema for full-file needs and any hint about the output, but neither is critical for correct invocation at this complexity level.

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 80%, so the schema already documents most parameters. The description only repeats the entity_type enum values, adding little semantic value beyond what the input schema provides.

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 uses a specific verb ('Fetch') with a precise resource ('one LinkML entity from a schema file at a specific commit'). It also enumerates exactly which entity types are allowed, clearly distinguishing it from file-level tools like read_schema or list_files.

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 implies usage: use this when you need a single entity at a pinned commit. However, it never explicitly contrasts it with siblings such as read_schema for whole-schema reads or validate_schema for validation, leaving the decision to inference.

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/sandervd/linkml-mcp'

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