Skip to main content
Glama

Read project context

get_context
Read-onlyIdempotent

Get this project's context at a progressive depth, degrading gracefully when no ontology has been extracted. Consolidates ontology and schema into one tool. Project knowledge and the glossary are for Full. Depth levels: 'domain' (high-level context, ~500 tokens), 'entities' (each entity with its meaning and how many fields it has, ~4k tokens), 'fields' (every field of every entity, ~8k tokens). An entity is a table of rows or a document: a table carries a row count and its columns, a document carries its grain and its paths, including any region it declared open. At 'domain' depth, project knowledge (business rules, terminology, conventions) is included for Full when it is available. Every depth lists the project's datasources with how their schema is known, how many entities each exposes, and — for one whose schema is declared by a published artifact — whether its connector is bound, with a note naming what binds an unbound one. A project with no entities says which of those states it is in rather than answering an empty domain. Always returns useful information even without ontology extraction - the schema is always available.

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

Input Schema

NameRequiredDescriptionDefault
depthYesDepth level: 'domain' (high-level), 'entities' (each entity and its meaning), or 'fields' (every field of every entity)
includeNoOptional: additional data to include. Supported value: 'statistics' (distinct_count, row_count, null_rate, cardinality_ratio, is_joinable, joinability_reason). Live field values are read per field by probe_column or probe_columns, under their value governance.
entitiesNoOptional: filter to specific entities, by name (for 'entities' or 'fields' depth)
datasourceNoOptional datasource ID to scope 'entities'/'fields' depth to a single datasource. Omit to span all datasources (as get_schema does when no datasource is named); the response reports the resolved scope and tags every table with its datasource_id. Must be a valid datasource UUID when provided. A datasource that has not finished setup is refused with datasource_not_ready.
include_relationshipsNoInclude relationship graph (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description rightly spends its words on behavior: graceful degradation when no ontology is extracted, the always-available schema fallback, and the fact that an entity-less project reports its state instead of returning an empty domain. The datasource reporting rules (how schema is known, entity counts, bound vs unbound connectors) add real operational context; the only gap is that return shape specifics are left implicit since there's no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and depth table are front-loaded and useful, but the long middle passage about datasources, connector binding, and 'any region it declared open' is dense and drifts into detail an agent doesn't need to select or invoke the tool. The undefined 'Full' term costs clarity in otherwise efficient prose.

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 5-parameter, no-output-schema tool with real complexity (ontology vs schema fallback, multi-datasource scoping), the description covers the essential dimensions: content per depth, degradation behavior, and datasource reporting. Only the precise response envelope is unspecified, which is a minor gap given the described structure.

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, but the description adds value beyond it by quantifying each depth level (~500 / ~4k / ~8k tokens) and explaining that project knowledge and glossary surface at 'domain' depth for Full. The scoping semantics of the datasource-spanning behavior largely duplicate what the schema already documents, so it doesn't earn a 5.

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 names a specific verb and resource ('Get this project's context') and enumerates the three depth levels with token budgets, so an agent knows precisely what comes back. It also notes it 'consolidates ontology and schema into one tool', which hints at overlap with get_schema/get_ontology without explicitly routing the agent away from them.

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?

Depth selection is well supported: each of 'domain', 'entities' and 'fields' is described with content and approximate size, which effectively tells an agent when to pick which. What's missing is explicit guidance on when to use this versus get_schema or get_ontology given they overlap, and the reference to 'Full' (an undefined tier) is left unexplained.

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.

Resources