Skip to main content
Glama

Ecosphere design system

Get an Ecosphere component's API

get_component
Read-onlyIdempotent

Get the full API of one Ecosphere component for Vue or React: every prop with type, default and description, events, slots, v-model bindings (Vue) or controlled props and callbacks (React), the import line, and the ecosphere.dev docs URL plus its markdown version with Vue and React examples. Also answers composables/hooks (useToast, useConfirm, useEcoId), guides and markup patterns (loading-state, table-fixed). Accepts EcoDataTable, DataTable, data-table or "data table".

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

Input Schema

NameRequiredDescriptionDefault
nameYesComponent, composable or page name, e.g. "EcoDialog", "date-picker", "useToast", "loading-state".
frameworkNovue (vue-ecosphere, default), react (react-ecosphere) or both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and closed-world, so the safety profile is covered. The description adds the valuable behavioral detail of what is returned (props with type/default/description, events, slots, v-model vs controlled props, import line, docs URL and markdown version), which goes beyond the annotations.

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?

Front-loaded with the core action and resource, and every clause (return payload, composables, guides, aliases) carries information. The single dense sentence is slightly run-on but not padded.

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?

No output schema exists, and the description compensates by describing the return contents and the Vue/React divergence. For a two-parameter read tool with full annotation coverage, this is nearly complete, though the exact response shape (field names, error behavior for unknown aliases) is left unstated.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description earns an extra point by documenting accepted name aliases (EcoDataTable, DataTable, data-table, "data table") and by contrasting Vue v-model bindings with React controlled props/callbacks, meaning beyond the raw 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 the full API of one Ecosphere component', and enumerates the returned artifacts (props, events, slots, import line, docs URL). The singular 'one component' plus 'full API' implicitly separates it from list_components/search_components, though no sibling is named.

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?

Clear about the scope of questions it answers — component APIs, composables/hooks (useToast, useConfirm, useEcoId), guides and markup patterns — which tells an agent when to reach for it. It never explicitly excludes alternatives or names search_components/list_components as the option for browsing.

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.