Skip to main content
Glama

workspaces_context_fields_list

Context fields are the schema for the context JSON blob on every lead: which keys exist, what they mean, and what type they hold.

Returns a flat array by default. Pass ?page=N to get the paginated shape {count, num_pages, page, per_page, results} instead — the flat default is kept because several callers consume the list directly.

Method: GET /api/v1/workspaces/{workspace_sqid}/context-fields/

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "workspaces_context_fields_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
qfNoAd-hoc column filters as a JSON array, ANDed on top of the other query parameters. Each entry is `{"field": <key>, "op": <operator>, ...}` where `op` is `in` (with `values`, a `null` element meaning blanks) or one of `=`, `!=`, `>`, `>=`, `<`, `<=`, `contains`, `is empty`, `is not empty` (with `value`, except for the last two). Entries are ANDed; values within one `in` entry are ORed. Example: `[{"field":"is_active","op":"=","value":true}]`.
searchNoA search term.
orderingNoWhich field to use when ordering the results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does disclose a genuinely non-obvious behavioral trait: the default response is a bare array and pagination is opt-in, with the exact paginated shape spelled out. The GET method line confirms read-only semantics, but it does not mention auth/scope requirements or how the qf/search filters interact with the response shape.

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?

Three short blocks, front-loaded with the definition and the return-shape caveat, and the parenthetical rationale for the flat default earns its place. The trailing 'Method: GET /api/v1/...' line is mostly redundant given the tool identity.

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?

There is no output schema, so the description usefully compensates by describing both possible return shapes. Combined with a fully documented input schema, an agent has enough to call it correctly; the only loose end is the undocumented `page` parameter versus the documented filter parameters.

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 coverage is 100%, so the qf/search/ordering parameters are fully documented in the schema and a baseline of 3 applies. The description adds no meaning for those three parameters, and instead references a `page` parameter that is absent from the input schema, which is a mild mismatch an agent might trip over.

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 states the resource concretely ('Context fields are the schema for the `context` JSON blob on every lead') and describes the output shape, so an agent knows this enumerates field definitions rather than lead data. The listing verb is only implied through 'Returns a flat array' rather than stated outright, and there is no explicit contrast with `workspaces_context_fields_retrieve` or the create/destroy siblings.

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?

It gives clear guidance on choosing between the flat default and the `?page=N` paginated shape, including the rationale that several callers consume the list directly. It gives no guidance on when to call this versus sibling tools such as `workspaces_context_fields_retrieve` (single field), `context_fields_facets`, or the create/rename variants.

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.