Skip to main content
Glama

Browse indexed functions and intents

list_function_intents
Read-onlyIdempotent

List indexed functions with their one-line intents, paginated; filter by service or substring. It lists every indexed function, exported or not; a one-line function has intent: null, because the scan does not describe short one-line bodies. Use it to browse what a service contains or compare what sibling repos have built. Pass file to answer "what can I call in this file" without reading it, with compact for signature-only rows. For concept queries ('dedupe users by email'), use search_by_intent instead.

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": "list_function_intents"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoPath suffix of the file to list functions from (e.g. `src/oauth2/service.ts` or `service.ts`). Matched on whole segments, so `gin.ts` never matches `login.ts`.
repoNoYour repo as owner/repo (git remote) or just the repo name. Resolves which Carrick project to query.
limitNoMax functions per page (default 50, max 200). The full org haystack is too large to return inline.
offsetNoNumber of functions to skip before this page (default 0). Pass the `next_offset` from a previous call to page through.
compactNoReturn signature-only rows (name, signature, line span, first sentence of the intent) instead of full detail. Use it with `file` to read what a file offers at a fraction of the source.
projectNoCarrick project slug to query. Omit to auto-resolve via `repo`, or omit both when the workspace has one project.
serviceNoFilter to a specific service (omit for all services)
typed_onlyNoWhen true, return only functions whose signature is fully explicit (every param and the return annotated).
name_containsNoCase-insensitive substring filter on the function name.
exclude_serviceNoService to exclude from results (use this when looking for sibling-repo implementations of work in your current service)
intent_containsNoCase-insensitive substring filter on the intent text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds value beyond that: pagination behavior, the data limitation that one-line functions return intent: null, and that the full org haystack is too large to return inline. It stops short of return-shape details, but that is a minor gap given the rich annotation coverage.

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?

The core scope and the search_by_intent exclusion are front-loaded in the first and last sentences, and every sentence carries information. It is dense with parentheticals, which slightly slows parsing, but nothing is filler.

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?

With 11 optional parameters, no output schema, and no required inputs, the description covers the pagination model, the filter modes, the compact variant, and the notable null-intent edge case. An agent has enough to call it correctly; only the exact row shape is left to the schema.

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 genuine meaning: it explains what `file` answers ('what can I call in this file') and that `compact` is the signature-only mode to pair with it. It also frames `exclude_service` in prose terms (finding sibling-repo implementations), which orients the filter beyond its schema text.

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?

Opens with a specific verb and resource ('List indexed functions with their one-line intents') plus scope ('exported or not'), and explicitly separates itself from search_by_intent. An agent can distinguish this browsing tool from the concept-search sibling without opening either schema.

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

Usage Guidelines5/5

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

Gives concrete when-to-use cases ('browse what a service contains or compare what sibling repos have built') and a named alternative with the condition that selects it ('For concept queries ... use search_by_intent instead'). It also prescribes the `file`+`compact` combination for a specific question, so routing is fully determined.

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.