Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

list_items

Retrieve inventory items from ConsignCloud with filters for price, category, account, status, and location to manage consignment business operations.

Instructions

List inventory items with optional filters. Supports filtering by price, category, account, status, location, and more.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of results to return (default: 1000) pagination is we need more
cursorNoPagination cursor
statusNoFilter by status
categoryNoFilter by category ID
accountNoFilter by account ID
locationNoFilter by location ID
tag_price_gteNoFilter items with price >= this value (in cents)
tag_price_lteNoFilter items with price <= this value (in cents)

Implementation Reference

  • Core handler function that executes the list_items tool logic by querying the /items API endpoint with filters, mapping responses through conversion, and handling pagination.
    async listItems(params?: Record<string, any>): Promise<PaginatedResponse<Item>> {
      const response = await this.client.get('/items', { params });
      return {
        data: response.data.data.map((item: any) => this.convertItemResponse(item)),
        next_cursor: response.data.next_cursor,
      };
    }
  • MCP server handler for the list_items tool call, which prepares parameters, invokes the client listItems method, and returns a formatted text response.
    case 'list_items':
      const itemsParams = { limit: 1000, ...(args as any) };
      return { content: [{ type: 'text', text: JSON.stringify(await client.listItems(itemsParams), null, 2) }] };
  • Tool definition including name, description, and detailed input schema (JSON Schema) for validating list_items tool parameters.
    {
      name: 'list_items',
      description: 'List inventory items with optional filters. Supports filtering by price, category, account, status, location, and more.',
      inputSchema: {
        type: 'object',
        properties: {
          limit: { type: 'number', description: 'Number of results to return (default: 1000) pagination is we need more' },
          cursor: { type: 'string', description: 'Pagination cursor' },
          status: { type: 'string', description: 'Filter by status' },
          category: { type: 'string', description: 'Filter by category ID' },
          account: { type: 'string', description: 'Filter by account ID' },
          location: { type: 'string', description: 'Filter by location ID' },
          tag_price_gte: { type: 'number', description: 'Filter items with price >= this value (in cents)' },
          tag_price_lte: { type: 'number', description: 'Filter items with price <= this value (in cents)' },
        },
      },
    },
  • src/server.ts:415-420 (registration)
    Registers the list_items tool (via createTools()) with the MCP server for listTools requests.
    const tools = createTools();
    
    // Handle list tools request
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools,
    }));
  • Helper function to convert raw API item responses (with cents values) to the client-side Item type with proper currency formatting.
    private convertItemResponse(item: any): Item {
      return {
        ...item,
        tag_price: this.convertFromApiCents(item.tag_price),
        cost: item.cost ? this.convertFromApiCents(item.cost) : undefined,
      };
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions filtering capabilities but doesn't cover critical aspects like pagination behavior (implied by 'limit' and 'cursor' parameters), rate limits, authentication needs, or what happens when no filters are applied. This leaves significant gaps for a tool with 8 parameters.

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 description is a single, efficient sentence that front-loads the core purpose. However, 'and more' is vague and could be eliminated for better precision without losing essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 8 parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain return format, pagination behavior, error conditions, or how filters combine. Given the complexity and lack of structured data, more context is needed for effective use.

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 100%, so the schema fully documents all 8 parameters. The description adds minimal value by listing some filter types ('price, category, account, status, location, and more') but doesn't provide additional semantics beyond what's in the schema. Baseline 3 is appropriate when schema does the heavy lifting.

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 clearly states the verb ('List') and resource ('inventory items') with scope ('with optional filters'), making the purpose specific. However, it doesn't explicitly distinguish this tool from sibling tools like 'list_accounts' or 'list_categories' beyond mentioning inventory items.

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

Usage Guidelines2/5

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

The description mentions 'optional filters' but provides no guidance on when to use this tool versus alternatives like 'get_item' for single items or 'search_suggest' for broader searches. It lacks explicit when/when-not instructions or named alternatives.

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/modellers/mcp-consigncloud'

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